Stephen Hess
62a2aa827f
added api.requestRetries to schema and tests
8 years ago
Stephen Hess
73ef71d863
moved helper functions outside of setup scope
8 years ago
Stephen Hess
901b6826ca
updated wording of test names and comments
8 years ago
Stephen Hess
11b39b3f54
removed unused mock backend response
8 years ago
Stephen Hess
3c9d39d1df
removed unused file
8 years ago
Stephen Hess
5148198e1d
added helper functions
8 years ago
Stephen Hess
ac0776e2be
match error handling to controller/search
8 years ago
Stephen Hess
9da4b9d236
standardized on name to match controller/search
8 years ago
Stephen Hess
ece98a2ae6
converted to let/const
8 years ago
Stephen Hess
6425cc6444
added request retries for ES request timeouts
8 years ago
Stephen Hess
89d9943f26
removed unused mock object
8 years ago
Stephen Hess
d5ff417bf5
removed require's for mock backend/query
8 years ago
Stephen Hess
a4a6a691c8
cleaned up log message parts
8 years ago
Stephen Hess
96f9d12ff5
rewrote tests to proxyquire service/search to reduce complexity
...
added a few more tests for coverage, removed unused things from unit/mock/backend
8 years ago
Stephen Hess
c7b83e96d5
added tests for case where error is a string, not an object
8 years ago
Stephen Hess
fbe0de386e
added ending ']'
8 years ago
Stephen Hess
bf62a1844b
added tests for verifying request retry behavior
...
limited retry behavior to errors with status 408 (request timeout). this also reduces reliance on unit/mock/backend and unit/mock/query.
8 years ago
Stephen Hess
995b6109e3
removed used variable
8 years ago
Stephen Hess
0121d3db2a
get # of retries from API config instead of ES client
8 years ago
Stephen Hess
67bba11001
removed object indirection in favor of function for easier proxyquire
8 years ago
Stephen Hess
e83c12cd0e
added test for early bail when errors are present
...
simplified conditionals using lodash `.get`
8 years ago
Stephen Hess
f1e5edb4cf
added back logging statement for fallback queries
...
added unit tests to cover conditionals, simplified conditional
8 years ago
Stephen Hess
b2ebdd9f4b
moved require to top
8 years ago
Stephen Hess
40e6b1b3b7
renamed variable for clarity
8 years ago
Stephen Hess
055bbeacba
removed performance-now dependency
8 years ago
Stephen Hess
fe0457cb8b
removed maxRetries default
8 years ago
Stephen Hess
4ed4b8b357
added retry support for ES requests that timeout
8 years ago
Stephen Hess
d5d08e8f45
moved esclient instantiation to function scope
8 years ago
Stephen Hess
330e7570d7
added reverse and autocomplete to queries object
8 years ago
Stephen Hess
8c249c26f4
initialize esclient in routes/v1, eliminating need for src/backend
8 years ago
Stephen Hess
53283eb178
actually remove debug this time
8 years ago
Stephen Hess
00234265e6
always inject backend instead of require'ing inside
8 years ago
Stephen Hess
948c6a9de5
enable all unit tests
8 years ago
Stephen Hess
5be3765ece
removed debug
8 years ago
Stephen Hess
511fbe41b4
removed unneeded require
8 years ago
Stephen Hess
0bd983e2cd
removed geopipes-elasticsearch-backend dependency
8 years ago
Stephen Hess
de2ff8cad7
removed debug
8 years ago
Stephen Hess
e35ba28137
add proxyquire to tests for pelias-logger to swallow some error logging
8 years ago
Stephen Hess
a4b4e286d3
replaced map of singletons in backend with single singleton
8 years ago
Stephen K Hess
d5c251e61d
feat: Merge pull request #775 from pelias/add-configuration-validation
...
added configuration validation + tests
8 years ago
Stephen Hess
d8cffe4b9b
added configuration validation + tests
8 years ago
Julian Simioni
60d52b1985
Merge pull request #729 from pelias/adjust_autocomplete_focus_boost
...
Adjust autocomplete focus boost
8 years ago
Julian Simioni
abb4fa6113
Adjust autocomplete focus boost
...
This lowers the autocomplete focus boost from 40 to 15. The idea is
that, because the boost for population is 20, the focus can't possibly
override a popular city, but it can come close.
On our default dev build, no acceptance tests fail but the san francisco
autocomplete test now passes!
It's not clear if this fixes WOF venue issues yet, since the latest
build there failed :(
8 years ago
Diana Shkolnikov
df683c8092
Merge pull request #772 from pelias/empty-parsed-text-values
...
Empty values in parsed text caused exceptions
8 years ago
Diana Shkolnikov
4f999adce1
fix: empty values in parsed text caused exceptions
8 years ago
Stephen K Hess
e99da45b1d
Merge pull request #767 from pelias/add-mt-st-ft-normalizing
...
Add Mt/St/Ft normalizing
8 years ago
Stephen Hess
9e569bae17
renamed mt/st/ft sanitizer to something more generic
8 years ago
Stephen Hess
183f824577
fix comments grammar
8 years ago
Stephen Hess
8f6d820b43
streamlined standardizer
...
more accurate since it's smarter about where to replace periods
8 years ago
Stephen Hess
35ab050341
transliterate mt/ft/saint/sainte into mount/fort/st/ste
...
respectively
8 years ago