Horace Williams
c7ae37980d
Remove Quattroshapes deprecation notice
...
Fixes #1132
The Quattroshapes source has been deprecated from
some time now, and any users for whom the deprecation
notice was helpful have presumably either upgraded
or moved on by now.
7 years ago
Stephen Hess
30b7290990
added stub request_language sanitizer that just allows lang param
7 years ago
Lily He
cafb7d9277
created new debug helper class and debug sanitizer
8 years ago
Lily He
1f527be3e3
call runAllChecks for search, search_fallback, autocomplete & structured sanitizing
8 years ago
Lily He
40ca17b886
passed down peliasConfig.api schema to sanitizers
8 years ago
Lily He
2e2ae9b005
added location_bias sanitizer to autocomplete, search, and structured_geocoding
8 years ago
Stephen Hess
9e569bae17
renamed mt/st/ft sanitizer to something more generic
8 years ago
Stephen Hess
35ab050341
transliterate mt/ft/saint/sainte into mount/fort/st/ste
...
respectively
8 years ago
Peter Johnson
f087a5badc
improvements for handling non-scalar request params. fixes #744
8 years ago
Stephen Hess
be2a336038
updated naming from component to structured
8 years ago
Stephen Hess
b18cb234b2
added sanitizer to convert country iso2->iso3
8 years ago
Stephen Hess
08f4aa4b95
renamed files to be more indicative of what the function is
8 years ago
Stephen Hess
d03a8c4586
added support for component geocoding
...
- created `/component` route
- broke out trimByGranularityComponent but could conceivably be combined with existing
- added `address` support to text_parser
- added `component` sanitizer wrapper
8 years ago
Stephen Hess
3763d0b503
renamed `sanitise` -> `sanitize`
8 years ago
Stephen Hess
85dab16869
refactored search sanitiser tests
...
the tests removed were testing far more than was appropriate since the functionality of the individual sanitisers is tested elsewhere. in this case, the test has been reduced to just testing that all the sanitisers were actually called.
8 years ago
Diana Shkolnikov
818711f509
Add categories sanitizer to search
9 years ago
Peter Johnson
7f18561595
remove focus.viewport API
9 years ago
Peter Johnson
5b8a9a31d2
wrap coordinates at poles
9 years ago
Stephen Hess
bd3b8e7bbe
switched to pelias-text-analyzer package since that responsibility has been moved to there
9 years ago
Peter Johnson
51279ce2cf
quattroshapes deprecation warning and wof fallback
9 years ago
Julian Simioni
e97d72d7b6
Send warning when sources=quattroshapes
9 years ago
Diana Shkolnikov
af8044ef29
Fix all unit tests
9 years ago
Julian Simioni
ef78b2e0fd
Filter source and layer by new fields
...
This is functionally the same code as before, except that it uses the
new source and layer mapping.
9 years ago
Julian Simioni
59b70f7c7e
Rename helper/query_parser to helper/text_parser
9 years ago
Julian Simioni
06b44e5355
Disallow specifying both focus.point and focus.viewport
9 years ago
Julian Simioni
9dcc296a70
Add focus.viewport rect sanitizer to search
9 years ago
Julian Simioni
36925ca874
Remove bbox sanitizer functionality tests from search sanitizer tests
...
Full functionality testing for the bbox sanitizer should be in the
sanitizer/_geo_common tests. In the search sanitizer tests, only testing
the inclusion of the correct sanitizers, and the interactions between
them, really seems to make sense.
9 years ago
Julian Simioni
db8f98a51f
Remove completed @todo
9 years ago
Julian Simioni
415029e02b
Use groups sanitiser in sanitize_rect and sanitize_point
9 years ago
Stephen Hess
e90f70ce3d
added sanitizer that verifies that all parameters are single scalar values
9 years ago
Peter Johnson
82ab899ecc
progress commit
9 years ago
Julian Simioni
97044f655b
Flatten structure of clean for /search focus.point.lat|lon
9 years ago
Julian Simioni
1bfa2fde40
Remove empty test of invalid lats
9 years ago
Julian Simioni
a5ba251afe
Remove brittle test fixture from search sanitiser
...
Some of the tests were checking the entire clean object, when they only
cared about one tiny element. This made making changes really hard.
9 years ago
Julian Simioni
66e1cab007
Whitespace
9 years ago
Diana Shkolnikov
f1fdc2bc26
Remove categories from response json
9 years ago
Peter Johnson
7c46aed4a7
expose error messages in geojson
9 years ago
Stephen Hess
d07a501682
requirements updates
...
set boundary country to iso3 instead of iso2
set to undefined if boundary.country input is not a string
9 years ago
Peter Johnson
a1efb0c6d0
lodash-ify some array functions; remove 'yes' and 'y' from thruthy
9 years ago
Peter Johnson
e726636c3d
merge with master
9 years ago
Peter Johnson
bf42290c7c
refactor sanitizers: first pass
9 years ago
Diana Shkolnikov
c069933d5b
Refactored layers and sources into a common targets module
9 years ago
Diana Shkolnikov
feb1b0a6cd
Update /reverse endpoint params and query as per API spec
9 years ago
Stephen Hess
a2b1579b3e
incorporated _private sanitizer into search endpoint
9 years ago
Stephen Hess
e52c9e4ab9
moved details tests out to separate file
9 years ago
Julian Simioni
3176a61596
Rename /search lat/lon to focus.point.lat/lon
9 years ago
Julian Simioni
6c1cfbb4ad
Compare latitude values only, instead of full sanitiser output
9 years ago
Julian Simioni
5d69c8016b
Remove lat/lon params from tests that don't use it
...
This just removes clutter and possible confusion from our test cases.
9 years ago
Julian Simioni
fd3b12cfa9
Remove all references to non-existent zoom parameter
9 years ago
Julian Simioni
040871cbe4
Whitespace
9 years ago