Stephen Hess
ce4c23f4a5
add predicate that looks for a parameter in req.clean
7 years ago
Stephen Hess
40ddc93bbf
added conditional fallback to addressit
7 years ago
Stephen Hess
442c2b5c9b
add ability to skip filters in placeholder
7 years ago
Stephen Hess
3257ea6b9b
fixed tests for model 4.9.0 changes
7 years ago
Stephen Hess
9ae838903a
converted to 'any' property for brevity
7 years ago
Stephen Hess
adff256583
set query_type for placeholder to enable confidencescores
7 years ago
Stephen Hess
98b6829e31
exclude venue, address, and street from layers filter
7 years ago
Stephen Hess
147d76f9d7
added controller for searching with ids
7 years ago
Stephen Hess
e158c21685
added has_parsed_text_property predicate
7 years ago
Stephen Hess
4271f574ab
updated tests for pelias-model 4.9.0 changes
7 years ago
Stephen Hess
580a9b16c8
set query_type for placeholder to enable confidencescores
7 years ago
Stephen Hess
2ba23cbb62
added warning if boundary.circle.radius is defined
8 years ago
Stephen Hess
1c9c68e5e3
switched to t.plan for easier testing with next()
8 years ago
Stephen Hess
976f252e3f
remove address/venue/street from requested layers when creating results
...
refactored for cleanliness and clarity
8 years ago
Stephen Hess
615f7b720e
switched to t.plan for easier testing with next()
8 years ago
Stephen Hess
d67830ca48
removed unneeded conditional for abbreviation set
8 years ago
Stephen Hess
f721d68e9c
removed alpha3 set
8 years ago
Stephen Hess
39e91d8233
remove address/venue/street from requested layers when creating results
...
refactored for cleanliness and clarity
8 years ago
Stephen Hess
ecf7a90f68
add test that req.clean.layers should be unmodified
8 years ago
Stephen Hess
6e693db87e
added support for non-coarse req.clean.layers
8 years ago
Stephen Hess
e97950c142
adapted coarse reverse controller to generic service
8 years ago
Stephen Hess
c602794ed8
added predicate for finding results at given layers
8 years ago
Stephen Hess
c5f16e32ad
added support for `boundary.rect` and `boundary.circle`
...
- tigthened up parsing of string-ish numbers to deal with lodash weirdness
- added lots of guard clauses to deal with bad data
8 years ago
Stephen Hess
ba7a81123c
added support for popularity from placeholder
8 years ago
Stephen Hess
2ad3bec3b4
added guard clause for string/negative population
8 years ago
Stephen Hess
d1b87235c4
pull population from placeholder repsonse
8 years ago
Stephen Hess
a6f6d3d6cd
filter out results and hierarchies that don't match boundary.country
8 years ago
Stephen Hess
83101505c0
removed support for alpha3 since it's not used anywhere
8 years ago
Stephen Hess
8a14dcc48a
guard clauses, more tests, code cleanup
8 years ago
Diana Shkolnikov
c1daf18d68
fix tests
8 years ago
Stephen Hess
b04309c533
added conversion to number before finite check
8 years ago
Stephen Hess
5734d35656
filter synthesized docs on boundary.country
8 years ago
Stephen Hess
4a8711017e
filter placeholder results by requested layers
8 years ago
Stephen Hess
1f6fefb3eb
converted placeholder controller to use generic service
8 years ago
Stephen Hess
39a5312140
added guard clauses for bbox and centroid
8 years ago
Stephen Hess
fa95fe510a
handle case where result has data but no lineage
8 years ago
Stephen Hess
539edf09b7
added better error handling
8 years ago
Stephen Hess
8a7ba3d8de
added support for do_not_track header
8 years ago
Stephen Hess
f14400ebce
added placeholder service support to API for admin-only queries
...
Adds a controller, service (which could probably be made more generic and share with pointinpolygon), and predicates for determining when placeholder should be called.
This also renames `is_pip_service_enabled.js` to `is_service_enabled.js` since it's generic. If placeholder returns a non-empty response then `res.data` is populated, otherwise `res.data` is not populated, allowing fallback to existing production behavior.
8 years ago
Stephen Hess
d80d34cfd9
actually pass do-not-track to service
8 years ago
Stephen Hess
f06704985e
renamed predicates to be more accurate
8 years ago
Stephen Hess
0d1d67d6a2
added street layer
8 years ago
Stephen Hess
58701f0169
return do-nothing PiP lookup function if config lacks `pipService`
...
- added URI-formatted `api.pipService` config support in schema
- added predicate that determines whether pipService is enabled/disabled
- reworked should-execute conditions for non-coarse reverse
8 years ago
Stephen Hess
52a6ec68ff
added support for coarse reverse geocoding
...
several things are in this commit:
- coarse reverse controller / pip service
- inject "conditional execute" predicate into search service to shortcut execution conditions
- added coarse reverse controller to precede standard reverse controller
- lots of tests!
8 years ago
Stephen Hess
901b6826ca
updated wording of test names and comments
8 years ago
Stephen Hess
ac0776e2be
match error handling to controller/search
8 years ago
Stephen Hess
6425cc6444
added request retries for ES request timeouts
8 years ago
Stephen Hess
d5ff417bf5
removed require's for mock backend/query
8 years ago
Stephen Hess
96f9d12ff5
rewrote tests to proxyquire service/search to reduce complexity
...
added a few more tests for coverage, removed unused things from unit/mock/backend
8 years ago
Stephen Hess
c7b83e96d5
added tests for case where error is a string, not an object
8 years ago