Diana Shkolnikov
553f9780c5
Remove admin matching when address is not parsed
9 years ago
Diana Shkolnikov
cbca5452d0
Merge pull request #288 from pelias/dianashk-patch-1
...
Lock down the pelias-query version
9 years ago
Diana Shkolnikov
3476831b6b
Lock down the pelias-query version
...
Allowing for even the smallest changes to pelias-query is problematic.
9 years ago
Stephen Hess
a21a4476d1
added ciao tests
9 years ago
Stephen Hess
e90f70ce3d
added sanitizer that verifies that all parameters are single scalar values
9 years ago
Julian Simioni
3809ae55cd
Merge branch 'production'
9 years ago
Diana Shkolnikov
d8f983c981
Merge pull request #282 from pelias/spec_conformance
...
more conformance
9 years ago
Peter Johnson
348d2e70e2
more conformance
9 years ago
Diana Shkolnikov
55afbb7558
Merge pull request #274 from pelias/243-reverse-confidence-scores
...
243 reverse confidence scores
9 years ago
Julian Simioni
9ce44c4cfe
Merge branch '259-rename-place-id-to-ids'
9 years ago
Julian Simioni
72e3ea1381
Use check-types.contains to express intent a bit better
9 years ago
Julian Simioni
16450087ee
Use simpler, clearer error on invalid ids length
9 years ago
Julian Simioni
edaf175aa7
Provide better, more consistent, errors on invalid ids
...
All error messages for invalid id formats now use a common format that
explains the nature of the error a bit better.
9 years ago
Julian Simioni
73b289e9e5
Consider tests refactored :)
9 years ago
Julian Simioni
3101aad399
Simplify ids sanitizing logic
9 years ago
Julian Simioni
9d21832874
Reformat test for clarity
9 years ago
Julian Simioni
8897c71664
Remove complicated error value test
...
It's better to just specify a few cases if needed
9 years ago
Julian Simioni
18de9a6766
Replace giant switch-statement test with multiple tests
9 years ago
Julian Simioni
03387722fb
Move _ids sanitiser tests to separate file
9 years ago
Julian Simioni
5721841fb3
Clarify name and error message in ids test
9 years ago
Julian Simioni
1b6c61c92e
Leave clean.ids undefined on error
9 years ago
Julian Simioni
65b7db94d6
Fix typo
9 years ago
Julian Simioni
1b512fc643
Remove empty array check that will always fail
...
Even splitting on an empty string returns an array of one element
9 years ago
Julian Simioni
399e566551
Remove unnecessary calls to function
9 years ago
Julian Simioni
cd63209085
Error on multiple ids parameters instead of warning
9 years ago
Julian Simioni
2bfe8785e5
Rename sanitiser/_id.js to sanitiser/_ids.js
9 years ago
Julian Simioni
c687102374
Rename /place id parameter to ids
9 years ago
Julian Simioni
8592c37bf6
Expect multiple ids to be specified as a comma-delimited string
...
Disallow the other way that Node.js allows, which is to list the id
parameter multiple times in the querystring. See #272 .
9 years ago
Julian Simioni
47701277a3
Rename test with duplicate, non descriptive name
9 years ago
Julian Simioni
2cc9107114
Add test for multiple ids
9 years ago
Julian Simioni
bd4fbfe3bd
Whitespace
9 years ago
Peter Johnson a.k.a. insertcoffee
c5ab64ffbf
Merge pull request #280 from pelias/spec_conformance
...
progress commit
9 years ago
Peter Johnson
82ab899ecc
progress commit
9 years ago
Diana Shkolnikov
537effa8bf
Fix distance calculation to use 'point.lat' instead of 'lat'
9 years ago
Diana Shkolnikov
87e387ba07
Merge remote-tracking branch 'origin' into 243-reverse-confidence-scores
9 years ago
Diana Shkolnikov
f63533dd9c
Switch to res.data instead of req.results.data
9 years ago
Diana Shkolnikov
1752155e0d
Merge remote-tracking branch 'origin' into 243-reverse-confidence-scores
9 years ago
Julian Simioni
4ad640c7a4
Merge branch 'refactor/flat-clean-object'
9 years ago
Julian Simioni
f3acf3b308
Check for numeric value of lat/lon to avoid null island bug
...
Using the check-types module, check that lat/lon values are numbers,
instead of checking their truthyness, to ensure that queries for null
island work correctly.
9 years ago
Julian Simioni
dd9654657e
Use flat clean structure in query/autocomplete.js
9 years ago
Julian Simioni
109c28a588
Use flat point.{lat|lon} in query/reverse.js
9 years ago
Julian Simioni
190304b039
Use flat structure for focus.point.{lat|lon} in query/search.js
9 years ago
Julian Simioni
d6abe09447
Use flat clean structure in /reverse
9 years ago
Julian Simioni
97044f655b
Flatten structure of clean for /search focus.point.lat|lon
9 years ago
Julian Simioni
4260442f59
Change boundary.circle params to flat string structure
9 years ago
Julian Simioni
e5ed04858b
Test individual clean attribute intead of using deepEquals
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
Peter Johnson a.k.a. insertcoffee
aa361e68c4
Merge pull request #276 from pelias/ciao
...
fix ciao tests
9 years ago