Stephen Hess
|
2288e227a3
|
converted configValidation to basic schema object
to inject into `config.generate`
fixed tests
|
8 years ago |
Stephen Hess
|
6918d866b8
|
added comments clarifying retry logic
|
8 years ago |
Stephen Hess
|
5d28044f4f
|
removed unused file
|
8 years ago |
Stephen Hess
|
bfecda2c07
|
refactored search service tests to inline mock callbacks
|
8 years ago |
Stephen K Hess
|
dec06da364
|
feat: Merge pull request #782 from pelias/add-elasticsearch-retries
Add elasticsearch retries
|
8 years ago |
Peter Johnson
|
f034fc562d
|
Merge pull request #769 from pelias/interpolation
interpolation: integration v1
|
8 years ago |
Diana Shkolnikov
|
307598ccd5
|
Merge pull request #780 from pelias/fix-match-type-structured
All structured queries show result match_type as fallback
|
8 years ago |
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 |
greenkeeperio-bot
|
92fc161bc9
|
chore(package): update express-http-proxy to version 0.11.0
https://greenkeeper.io/
|
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 |
missinglink
|
3a4d26077a
|
interpolation: fix: source_id mapping
|
8 years ago |
missinglink
|
1216ca783d
|
deps: version bump pelias-config
|
8 years ago |
Peter Johnson
|
d135596c80
|
service: interpolation: typo
|
8 years ago |
Peter Johnson
|
f948ab26fc
|
service: interpolation: remove non-production host name
|
8 years ago |
Peter Johnson
|
5c278b22e9
|
service: interpolation: handle backend timeouts
|
8 years ago |
Peter Johnson
|
69be6e062a
|
service: interpolation: tests
|
8 years ago |
Peter Johnson
|
33341b7c99
|
service: interpolation: tests
|
8 years ago |
Peter Johnson
|
3881861886
|
typo
|
8 years ago |
Peter Johnson
|
576d1a1809
|
interpolation: integration v1
|
8 years ago |
Diana Shkolnikov
|
30590a41d3
|
fix: match_type and confidence score were not correct for certain queries
|
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 |