Stephen Hess
02cfa36d24
switched structured query tests away from fixtures
7 years ago
Stephen Hess
da07463999
set req.clean.parser to 'libpostal' when it's called
7 years ago
Stephen Hess
3a862c17ec
move empire include/exclude logic to eojsonify_place_details
7 years ago
Stephen Hess
e4e8d9b0bf
if country_gid exists, remove empire fields
7 years ago
Stephen Hess
05da79923f
wrap interpolation service call to intercept errors
7 years ago
Stephen Hess
18e7673dc1
added empire to coarse translation
7 years ago
Stephen Hess
2df5d6d23b
add empire to coarse reverse controller
7 years ago
Stephen Hess
5b86fbd7d8
add layers parameter support to PointInPolygon service request
7 years ago
Stephen Hess
214c3807eb
added continent, ocean, and marinearea to geojsonify
7 years ago
Stephen Hess
9d54735e41
converted geojsonify_place_details to return instead of modify
7 years ago
Stephen Hess
cd99f87c04
inlined and condensed doc setup
7 years ago
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
8 years ago
Lily He
bf234f5539
flag_bool expects parameter opts.paramName
8 years ago
Lily He
a5cf44bef4
clarify _text sanitizer test message
8 years ago
Lily He
8e45af1e49
adapt defer_to_addressit to new sanitizer format
8 years ago
Lily He
db56ce45c3
remove exporting sanitize for testing
8 years ago
Lily He
9a88d5a28b
unmerge nearby sanitizers from reverse sanitizer_list
8 years ago