Peter Johnson a.k.a. insertcoffee
e4caca0b28
Merge pull request #438 from pelias/test_utils
...
add common.diff() function for test debugging
9 years ago
missinglink
cd16ff92b1
add common.diff() function for test debugging
9 years ago
Julian Simioni
0c87cbcf7b
Merge pull request #435 from pelias/abbr-to-a
...
Use new admin fields
9 years ago
Julian Simioni
3a85392862
Update _type value in ES response fixtures
...
osmnode and osmway are not types anymore!
9 years ago
Julian Simioni
40d89d7960
Add link to WOF license file
9 years ago
Julian Simioni
a2950eebc4
Cleanup renamePlacenames
9 years ago
Julian Simioni
aebaf52f61
Remove pelias-schema from dependencies
9 years ago
Diana Shkolnikov
4dc1da27a5
Upgrade pelias-query to 6.0.0
9 years ago
Diana Shkolnikov
b2accb71e9
Get rid of QS references
9 years ago
Diana Shkolnikov
b3939efb21
Fix ciao tests
9 years ago
Diana Shkolnikov
b7bc3593c2
Lint cleanup
9 years ago
Diana Shkolnikov
e9ceb25ca0
Fix crash when dedupe was comparing arrays as stings for parent properties
9 years ago
Diana Shkolnikov
af8044ef29
Fix all unit tests
9 years ago
Diana Shkolnikov
f3ba492e05
Remove all usage of alpha3/admin0/admin1, update query building to reflect new names in pelias-query
9 years ago
Diana Shkolnikov
3daec67b6b
Fix helper unit tests
9 years ago
Diana Shkolnikov
31374b5381
Fix middleware unit tests
9 years ago
Diana Shkolnikov
83de24d3c4
Middleware: remove all use of alpha3/admin0/admin1
9 years ago
Diana Shkolnikov
7aeea99ea7
Remove quattroshapes and admin0/admin1 from layers
9 years ago
Diana Shkolnikov
b8ab7c00f7
Cleanup the label generation code just a bit
9 years ago
Diana Shkolnikov
4219cefd56
Add new parent properties and take the first one in each property if it is an array
9 years ago
Diana Shkolnikov
e14697fe40
Remove adminFields because it is not needed anymore
9 years ago
Julian Simioni
cb7c51a3d7
Merge pull request #407 from pelias/new_wof_model_format
...
New wof model format
9 years ago
Julian Simioni
79883594b8
Use clean.layers to determine types
...
This allows removing the types middleware and simplifies some code.
9 years ago
Julian Simioni
692b6da17d
Use layer instead of _type field to determine layer
9 years ago
Julian Simioni
74d05867cf
Update mock Elasticsearch response data
9 years ago
Julian Simioni
ab9dbdf7f0
Update ciao tests
9 years ago
missinglink
67449dcae0
Tweak weights for focus
9 years ago
Julian Simioni
616dd606a7
Add sources and layers sanitiser
...
This sanitiser can do a better job of determining when an invalid
combination of sources and layers was specified, and produce helpful
error messages.
9 years ago
missinglink
ce292baeaf
fixes for focus.point to work with wof integration
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
8fdb522f11
Upgrade to pelias-query 5.1.0
9 years ago
Julian Simioni
0ee1fdb4d9
Remove obsolete Geonames ID tests
...
These are fixed now with our better source/layer mapping
9 years ago
Julian Simioni
fa07ba9ddc
Add much needed whitespace
9 years ago
Julian Simioni
9ec2cd41d9
Remove unused file: sanitiser/_source.js
...
It was replaced by the dual purpose sanitiser/_targets.js
9 years ago
Julian Simioni
cdd00af6bc
Build responses with new source and layer fields
...
There is no longer any ambiguity in the source field and the layer
(which is stored as _type), so a lot of logic to compute them can simply
read from the elasticsearch document. Hooray!
9 years ago
Julian Simioni
f3386399ae
Merge pull request #430 from pelias/add-iso3-to-USA-results
...
Add iso3 to usa results
9 years ago
Stephen Hess
d1dc88cefd
added tests for `default` schema
9 years ago
Stephen Hess
0f6059c05a
Refactored to use a function for looking up value for a label
...
The reason for this switch is that special case logic is needed to determine the US state name to display. All other fields can be looked up by name.
The burden of fallback functionality is now in `helper/labelSchema` so the burden of unit testing is now in `test/unit/helper/labelSchema.js`
9 years ago
Stephen Hess
431fe44f05
converted labelSchema to .js with module.exports
...
this is in preparation to introduce functions into the schema instead of strings
9 years ago
Stephen Hess
08f414b3d5
fixed encoding error that came from master
9 years ago
Stephen Hess
7b5b9dee61
added comments illustrating the subtleties of label generation
9 years ago
Stephen Hess
f7260c63a0
added tests for USA local and regional fallbacks for label generation
9 years ago
Stephen Hess
5456632cdf
Added flag to not include `default.name` in label
...
when source=`geonames` or `whosonfirst` and layer=`region`
This will stop, say, a search for "New Mexico" resulting in the label "New Mexico, NM, USA"
9 years ago
Stephen Hess
3e11e6687c
added `country_a` to label for all USA results
9 years ago
Stephen Hess
3e8d1bfd9b
broke country-specific label tests out to own file for easier testing
9 years ago
Stephen Hess
515d4aeb94
extracted `getSchema` helper method
9 years ago
Julian Simioni
5419c8dfa7
Merge pull request #427 from pelias/greenkeeper-pelias-schema-3.0.0
...
Update pelias-schema to version 3.0.0 🚀
9 years ago
greenkeeperio-bot
0c3e4de0ad
chore(package): update pelias-schema to version 3.0.0
...
http://greenkeeper.io/
9 years ago
Julian Simioni
70caa5b064
Merge pull request #412 from pelias/greenkeeper-morgan-1.7.0
...
Update morgan to version 1.7.0 🚀
9 years ago
greenkeeperio-bot
46afbc09fd
chore(package): update morgan to version 1.7.0
...
http://greenkeeper.io/
9 years ago