missinglink
cd16ff92b1
add common.diff() function for test debugging
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
Julian Simioni
2e4f658694
Merge pull request #411 from pelias/greenkeeper-lodash-4.5.0
...
Update lodash to version 4.5.0 π
9 years ago
greenkeeperio-bot
358cee5407
chore(package): update lodash to version 4.5.0
...
http://greenkeeper.io/
9 years ago
Julian Simioni
47e4beaea7
Merge pull request #405 from pelias/greenkeeper-update-all
...
Update all dependencies π΄
9 years ago
Julian Simioni
4c924605f8
Keep stats-lite at version 1 to avoid using ES6 features
...
Once we are using Node 4+, we can upgrade. See
ttps://www.npmjs.com/package/stats-lite
9 years ago
Julian Simioni
769f190eab
Replace depricated Lodash function unique with uniq
...
See https://github.com/lodash/lodash/wiki/Changelog#jan-12-2016--diff--docs
9 years ago
Julian Simioni
cb7b38bc75
Replace check-types depricated unemptyString with nonEmptyString
...
See https://www.npmjs.com/package/check-types#what-changed-from-4x-to-5x
9 years ago
Julian Simioni
f4a5dd812b
Replace depricated Lodash function contains with includes
...
See https://github.com/lodash/lodash/wiki/Changelog#jan-12-2016--diff--docs
9 years ago
greenkeeperio-bot
b95e175bb5
chore(package): update dependencies
...
http://greenkeeper.io/
9 years ago
Julian Simioni
129242b7cf
Merge pull request #408 from pelias/greenkeeper-geojson-0.3.0
...
Update geojson to version 0.3.0 π
9 years ago
Julian Simioni
96acbef30c
Merge pull request #421 from pelias/remove_examples.md
...
Remove out of date EXAMPLES.md file
9 years ago
Julian Simioni
59c030e76f
Merge pull request #422 from vesameskanen/log-queries
...
Add query/response logging in debug mode to place controller, too
9 years ago
Julian Simioni
1cb210164e
Fix test suite name
9 years ago
Julian Simioni
05cb582500
Add TravisCI settings for compiling node 4 modules
9 years ago
Vesa Meskanen
269dff9dd1
Add query/response logging in debug mode to place controller, too
9 years ago
Julian Simioni
06e412776e
Merge pull request #417 from vesameskanen/log-queries
...
Debug log full queries and responses between Pelias and Elasticsearch
9 years ago
Julian Simioni
d8426b3ecb
Remove out of date EXAMPLES.md file
9 years ago
Julian Simioni
90ccef168d
Merge pull request #420 from pelias/precommit-hook-3
...
Upgrade to precommit-hook 3.0.0
9 years ago
Julian Simioni
e8fb26ea85
Add precommit-hook sections to package.json
9 years ago
Julian Simioni
e50bce47c7
Upgrade precommit-hook to 3.0.0
...
It just handles linting better.
9 years ago
Vesa Meskanen
899d520cd7
Debug log full queries and responses between Pelias and Elasticsearch
9 years ago