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
Julian Simioni
92aaf960c3
Upgrade tap-dot to 1.0.4
9 years ago
Julian Simioni
e13d00eb4d
Merge pull request #415 from pelias/tap-dot-branch
...
Use patched branch of tap-dot
9 years ago
Julian Simioni
d31fae3bd2
Use patched branch of tap-dot
...
Our test printer has a bug where a zero-test suite will pass. Usually,
and definitely for this repo, the only way a test suite will not have
any tests is if there was an error in the test program before it even
ran any tests ([example](https://travis-ci.org/pelias/api/jobs/110970031 )).
Until my PR or something similar is merged into tap-dot, we should use
this branch.
9 years ago
Julian Simioni
f846cc7b11
Merge pull request #406 from pelias/improve-travis
...
Update TravisCI config
9 years ago
greenkeeperio-bot
00b76c6e81
chore(package): update geojson to version 0.3.0
...
http://greenkeeper.io/
9 years ago
Julian Simioni
79cd746d71
Update TravisCI config
...
Adds Node 4.x versions, and containerized builds (faster).
Connects pelias/pelias#258
9 years ago
Julian Simioni
7925054c63
Merge branch 'master' into staging
9 years ago
Julian Simioni
1d4226e2dc
Merge pull request #403 from pelias/fix_docs_generation
...
Make doc generation a bit easier
9 years ago
Julian Simioni
c9f32f3589
Merge pull request #404 from pelias/handle-geonames-gids
...
Handle geonames gids
9 years ago
Julian Simioni
0e78167f17
[/place] Accept any valid layer for geonames
...
Instead of checking if the source/layer combination for geonames is
valid, always use the geoname type if the source is set to geonames,
regardless of which layer is in the gid.
This helps us better handle the case where people directly take gids
from our API responses.
Note: this functionality shouldn't be permanent and should be removed
once our new source/layer mapping system is in.
9 years ago