Stephen Hess
5e1360f022
refactored geojsonify, improved test coverage
7 years ago
Stephen Hess
27194a620e
added tests for geocode_place_details
7 years ago
Stephen Hess
e70a668056
added support for continent, ocean, and marinearea placetypes
...
`coarse` now maps to these as well
7 years ago
missinglink
69a820fae0
feat(coarse_reverse): ignore empty abbr properties from PIP service
7 years ago
Diana Shkolnikov
40870c4e04
check for missing parent object in confidence score computation
7 years ago
Diana Shkolnikov
b60e0113b3
check for missing parent object in confidence score computation
7 years ago
missinglink
3913c836e2
feat(coarse_reverse): improve logger assertions
7 years ago
missinglink
b88d2a0abe
feat(coarse_reverse): add try/catch block around synthesizeDoc code
7 years ago
missinglink
45f313d8d9
feat(coarse_reverse): improve logger assertions
7 years ago
missinglink
c72822b805
feat(coarse_reverse): add try/catch block around synthesizeDoc code
7 years ago
Stephen Hess
e67e49421b
updated test
7 years ago
Adam Rousell
8d7c01dcbe
Added tests for postcode fix
7 years ago
Julian Simioni
a233e11d59
Remove Access-Control-Allow-Credentials header
...
This header is only relevant if dealing with authentication via cookies
or other methods in HTTP requests. The Pelias API intentionally doesn't
deal with authentication at all, assuming anyone who wants
authentication will deal with it using a service placed between Pelias
and end users.
Additionally the CORS spec [does not allow](https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS#Credentialed_requests_and_wildcards )
specifying this header while setting a wildcard for
`Access-Control-Allow-Origin`, so it can cause problems in some cases.
Fixes https://github.com/pelias/api/issues/971
7 years ago
Stephen Hess
42097fafb2
treat undefined text-analyzer response as no house number available
7 years ago
Stephen Hess
30b7290990
added stub request_language sanitizer that just allows lang param
7 years ago
Lily He
7ecf770d79
create stackTraceLine helper to debug predicates
7 years ago
Lily He
af03e706b2
debug push takes function & beginTimer returns Date
7 years ago
Sergey Zelenov
1f3bb4608c
Fix typo in test/unit/controller/search_with_ids
...
Seems like a typo, should be `deepEqual` instead of `ok`
7 years ago
Stephen Hess
ab332e43ee
removed unused is_service_enabled predicate
7 years ago
Stephen Hess
951b18e656
switched to has_parsed_text_properties
7 years ago
Stephen Hess
99d6c6ba11
removed language service from schema
7 years ago
Stephen Hess
cf167ce933
map sources from helper/type_mapping.js
7 years ago
Stephen Hess
3c8bfa196e
added interpolation service to schema
...
refactored similar service tests to iterate list of services instead of duplicating many tests for each service
7 years ago
Stephen Hess
cd6b9d9ed6
updated service name
7 years ago
Stephen Hess
c8c969db74
added predicate for any/all parsed_text fields
7 years ago
Stephen Hess
41831ab7a0
converted middleware/interpolate to use injected service
7 years ago
Stephen Hess
d1461621c6
added ServiceConfiguration implementation for Interpolation
7 years ago
Stephen Hess
d1886a5073
removed unused modules
7 years ago
Stephen Hess
92d18af886
updated changeLanguage to injection model
7 years ago
Stephen Hess
518240dcec
added new tests
7 years ago
Stephen Hess
3663067698
added Language ServiceConfiguration implementation
7 years ago
Stephen Hess
de11322702
added language service to schema + tests
7 years ago
Stephen Hess
83d5cf1bd5
added ServiceConfiguration for Language call
7 years ago
Lily He
cafb7d9277
created new debug helper class and debug sanitizer
7 years ago
Lily He
bf234f5539
flag_bool expects parameter opts.paramName
7 years ago
Lily He
a5cf44bef4
clarify _text sanitizer test message
7 years ago
Lily He
8e45af1e49
adapt defer_to_addressit to new sanitizer format
7 years ago
Lily He
db56ce45c3
remove exporting sanitize for testing
7 years ago
Lily He
9a88d5a28b
unmerge nearby sanitizers from reverse sanitizer_list
7 years ago
Lily He
07c7e7d483
test reverse, nearby, place sanitizer wrappers w/ proxyquire
7 years ago
Lily He
80a3a259ef
remove callback in sanitizeAll.runAllChecks for sync processing
7 years ago
Lily He
a27ac0fc88
use strict for ecmascript 6 syntax, fix typos
7 years ago
Lily He
b9de4b6788
additional test to verify runAllCheck works for sanitizeAll
7 years ago
Lily He
279b70b7d7
typo: delete mentions of joi in sanitizers
7 years ago
Lily He
670c673419
call runAllChecks for nearby, reverse, and place sanitizing
7 years ago
Lily He
1f527be3e3
call runAllChecks for search, search_fallback, autocomplete & structured sanitizing
7 years ago
Lily He
af906c05a8
sanitizeAll validates req.query parameters, export async runAllChecks function
7 years ago
Lily He
a683e27a87
removed 'parsed_text' from list of expected params for _text
7 years ago
Lily He
368c0aa4cb
added expected parameters list to _text_addressit
7 years ago
Lily He
13a7b42de7
Standardize sanitizers to export setup function that returns sanitize and expected function
7 years ago