Stephen Hess
9ec1840594
moved sorting above deduping since the latter trims
8 years ago
Stephen Hess
2c722c2536
set pelias-sorting version
8 years ago
Stephen Hess
502b9b13b8
removed carat
8 years ago
Stephen Hess
445ad0ba74
added missing pelias-model that got skipped in rebase
8 years ago
Stephen Hess
5a8ddd6268
added debug logging for sorting
8 years ago
Stephen Hess
2164d7d696
added github dependency for pelias/sorting
8 years ago
Stephen Hess
71394d4139
added comment about when geonames warning can go away
8 years ago
Stephen Hess
234f9f9738
fixed bug where _geonames_warnings was throwing exception on undefined clean.parsed_text
...
refactored a bit for clarity
8 years ago
Stephen Hess
1711b6e325
added predicate for only sorting when results are admins-only
8 years ago
Stephen Hess
238b49a0d8
added should_execute to sortResponseData
8 years ago
Stephen Hess
c602794ed8
added predicate for finding results at given layers
8 years ago
Stephen Hess
446d428292
don't reassign, sort works inline
8 years ago
Stephen Hess
3ae431073d
removed debug line
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
e3408e49a7
bumped lodash version to latest
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
5d7a467909
added response data sorting middleware
8 years ago
Stephen Hess
d1b87235c4
pull population from placeholder repsonse
8 years ago
Stephen Hess
8429e0f22a
added response data sorting middleware
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
Stephen Hess
7983e979d0
remove spurious '+'
8 years ago
Diana Shkolnikov
a3e8f8d566
fix exception when no ids are found in placetype
8 years ago
Diana Shkolnikov
c1daf18d68
fix tests
8 years ago
Diana Shkolnikov
6cc53e4e0b
merge multiple hierarchies into arrays and use first ones
8 years ago
Stephen Hess
8ebae9a2ae
added warnings/errors when sources includes geonames
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
471f565997
converted placeholder to microservice-wrapper
8 years ago
Stephen Hess
49fd5655c0
fixed case of require file... Macs, amirite?
8 years ago
Stephen Hess
03667b0711
fixed error message
8 years ago
Stephen Hess
904ce71e37
removed superseded service/placeholder and dependency
8 years ago
Stephen Hess
080eb269eb
added comments, simplified logic
8 years ago
Stephen Hess
3bf40fe51e
refactored ServiceConfiguration to be a class
8 years ago
Stephen Hess
1f6fefb3eb
converted placeholder controller to use generic service
8 years ago
Stephen Hess
5515fa4b6c
added placeholder config, added tests for http_json service
8 years ago
Stephen Hess
e5a5fe8f3f
more strictly enforce valid bbox content
8 years ago
Stephen Hess
0f0bd3e4ce
added initial attempt at generic http json service
8 years ago
Stephen Hess
c3be7844cb
added comments, made code conciser
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
f38987d7b9
removed hardcoded URL in favor of config URL
8 years ago
Stephen Hess
8a7ba3d8de
added support for do_not_track header
8 years ago
Stephen Hess
0adc76eca6
treat 404's from placeholder the same as other errors
8 years ago
Stephen Hess
94f512fe94
added placeholderService to schema
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