Julian Simioni
10241047a6
fix(interpolation): Ensure proper sorting of streets with interpolated addresses
...
In cases where several conditions are met, it is possible for results to
be returned from the API that are not sorted as they were intended.
These conditions are:
* over 10 results total were returned from Elasticsearch
* the interpolation middleware was called
* not all street results end up with possible interpolated address
matches, and some of those streets come before other interpolated
address records, necessitating a re-sorting of the results in the
interpolation middleware
In these cases, the ordering of streets as defined by Elasticsearch,
such as by linguistic match or distance from a focus point, will no
longer be respected in the results.
This is because Node.js's `Array.prototype.sort` uses an
[*un*stable QuickSort for arrays of size 11 or greater](https://github.com/nodejs/node/blob/master/deps/v8/src/js/array.js#L670 ).
The solution is to switch to a sorting algorithm that is always stable.
This ensures that whatever ordering was specified in the Elasticsearch
queries is observed, without any of that logic having to be duplicated,
and then possibly conflict.
Stable sorting is provided by the [stable](http://npmjs.com/stable ) NPM
package.
7 years ago
greenkeeper[bot]
84cac12fa9
chore(package): update pelias-mock-logger to version 1.3.0
7 years ago
greenkeeper[bot]
5f565583f0
fix(package): update pelias-microservice-wrapper to version 1.4.0
7 years ago
greenkeeper[bot]
152897714e
fix(package): update pelias-logger to version 0.4.1
...
Closes #1144
7 years ago
greenkeeper[bot]
1fbb81a1a4
fix(package): update pelias-config to version 3.0.1
...
Closes #1136
7 years ago
missinglink
20e7db3091
package: bump config version
7 years ago
missinglink
2dd2061f8e
feat(targets): configuration-based filter targets
7 years ago
greenkeeper[bot]
03d8732606
fix(package): update joi to version 13.1.3
7 years ago
Julian Simioni
d19a641627
Disable semantic-release success actions
...
The default is to comment on every issue which made it into the release.
Possibly convenient, definitely spammy.
See https://github.com/semantic-release/semantic-release/blob/caribou/docs/usage/plugins.md#success-plugin
and https://github.com/semantic-release/github
7 years ago
Julian Simioni
27385da8dd
Change default NPM package name
7 years ago
Julian Simioni
01ca6e6c65
Remove npm-check
7 years ago
Julian Simioni
06f7099598
Fix semantic release run
7 years ago
Julian Simioni
37430d5dab
Run semantic-relase on the production branch
...
This change will make semantic-release run only on the `production`
branch. This means only merges to production will create new NPM
packages, GitHub releases, git tags, and `:latest` Docker images on
Docker hub.
Connects https://github.com/pelias/pelias/issues/721
7 years ago
greenkeeper[bot]
c4330c8af1
chore(package): update proxyquire to version 2.0.0
7 years ago
greenkeeper[bot]
922fc24049
chore(package): update semantic-release to version 15.1.4
...
Closes #1094
7 years ago
Julian Simioni
db8194b0de
Increase Node.js requirement to 6.0.0 or higher
7 years ago
Julian Simioni
8bccfc4fd2
Remove other instances of Mapzen
7 years ago
missinglink
e01fdb85c9
support aliases for label generation
7 years ago
greenkeeper[bot]
152e7cf7c4
fix(package): update elasticsearch to version 14.2.1
...
Closes #1062
7 years ago
Julian Simioni
a8a6991b26
Avoid NPM when starting Dockerfile
7 years ago
greenkeeper[bot]
b8494ae41b
fix(package): update pelias-logger to version 0.3.1
7 years ago
greenkeeper[bot]
8f4069d91c
fix(package): update pelias-model to version 5.3.2
...
Closes #1065
7 years ago
greenkeeper[bot]
533cb4b39e
fix(package): update pelias-config to version 2.14.0
7 years ago
greenkeeper[bot]
c007245a5a
chore(package): update source-map to version 0.7.0
7 years ago
Stephen Hess
e0c25d0f57
convert libpostal calls to a microservice
7 years ago
Julian Simioni
28f5aa5d6b
Update npm audit script
...
The location of the nsp binary changed, probably a while ago.
7 years ago
greenkeeper[bot]
f023facc97
chore(package): update nsp to version 3.0.0
7 years ago
greenkeeper[bot]
bdd6573118
fix(package): update pelias-query to version 9.1.1
...
Closes #844
7 years ago
greenkeeper[bot]
bd940ec691
fix(package): update pelias-sorting to version 1.1.0
7 years ago
greenkeeper[bot]
c730513084
fix(package): update pelias-microservice-wrapper to version 1.3.0
7 years ago
greenkeeper[bot]
ca99382394
fix(package): update pelias-text-analyzer to version 1.10.2
7 years ago
Stephen Hess
393a51703d
revert joi version, keep pelias-text-analyzer
7 years ago
greenkeeper[bot]
d7e4ebdafb
chore(package): update dependencies
7 years ago
greenkeeper[bot]
d8ddfdc174
fix(package): update pelias-text-analyzer to version 1.10.0
7 years ago
greenkeeper[bot]
b7984a9e6a
fix(package): update pelias-logger to version 0.3.0
7 years ago
greenkeeper[bot]
68eec00609
fix(package): update pelias-model to version 5.2.0
7 years ago
greenkeeper[bot]
9df6817652
fix(package): update pelias-config to version 2.13.0
7 years ago
greenkeeper[bot]
b7f110cfa4
fix(package): update predicates to version 2.0.0
7 years ago
greenkeeper[bot]
2ec1af4856
fix(package): update joi to version 12.0.0
7 years ago
greenkeeper[bot]
5d7a0bfd1c
fix(package): update pelias-text-analyzer to version 1.9.5
7 years ago
greenkeeper[bot]
1f3393a5c3
fix(package): update pelias-logger to version 0.2.1
7 years ago
greenkeeper[bot]
02bccfa1ad
fix(package): update pelias-labels to version 1.7.0
7 years ago
Stephen Hess
6ee5e897b1
removed unused dependency
7 years ago
Stephen Hess
cc0200dcc9
added prune target to pre-commit to avoid npm weirdness
7 years ago
greenkeeper[bot]
5d1d827bad
chore(package): update source-map to version 0.6.0
7 years ago
greenkeeper[bot]
78beaece67
fix(package): update pelias-microservice-wrapper to version 1.2.1
7 years ago
greenkeeper[bot]
7aacf987ea
fix(package): update pelias-model to version 5.1.0
7 years ago
greenkeeper[bot]
af25ab9763
chore(package): update pelias-mock-logger to version 1.2.0
7 years ago
greenkeeper[bot]
7f516ab1b5
chore(package): update semantic-release to version 8.0.0
7 years ago
greenkeeper[bot]
7acb1c094a
fix(package): update pelias-config to version 2.12.1
7 years ago