New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove "ok" : true from successful REST responses #4310
Labels
Comments
+1 |
ghost
assigned dakrone
Dec 6, 2013
Merged in d23f640 |
javanna
added a commit
that referenced
this issue
Jan 16, 2014
- Removed "ok": true from response examples - Added "created" flag to index response examples - Replaced exists flag with found in delete response examples
brusic
pushed a commit
to brusic/elasticsearch
that referenced
this issue
Jan 19, 2014
- Removed "ok": true from response examples - Added "created" flag to index response examples - Replaced exists flag with found in delete response examples
meveridge
added a commit
to meveridge/SugarES
that referenced
this issue
Feb 13, 2014
ES 1.0.0 removed the ok result from connection: elastic/elasticsearch#4310 Changed to check is the status array islet and equals 200.
olimcc
pushed a commit
to olimcc/elastisch
that referenced
this issue
Apr 16, 2014
The new ES API removed :ok <bool> from rest responses and instead relies on a :status <status code>. See: elastic/elasticsearch#4310 for the corresponding ES change. Updates to related code and and some tests.
mreishus
pushed a commit
to AudiologyHoldings/Icing
that referenced
this issue
Apr 29, 2014
See elastic/elasticsearch#4310 The code that checks for a 200 response code will pick up any errors.
scorphus
added a commit
to scorphus/tornado-es
that referenced
this issue
Apr 30, 2014
Changes: * Adapt ESConnection.count() to use a top-level `query` parameter * Use `term` query instead of `text` * Don't expect a hard-coded `"ok": true` from response References: * http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/breaking-changes.html * http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/_return_values.html#_return_values * http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/_search_requests.html#_search_requests * elastic/elasticsearch#4033 * elastic/elasticsearch#4310 Thanks @luizgpsantos for estensive support
stefankeidel
pushed a commit
to collectiveaccess/providence
that referenced
this issue
Oct 8, 2014
They removed the hardcoded ok: true in their responses a while ago: elastic/elasticsearch#4310 We now use HTTP status codes to determine if everything went ok. We also catch all exceptions now. Before the whole application would just barf if ElasticSearch went away.
dirkraft
added a commit
to blacklocus/jres
that referenced
this issue
Sep 14, 2015
one of which is elastic/elasticsearch#4310 "no more ok in elasticsearch responses"
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Its pretty meaningless, especially with correct REST codes. Also, we are not consistent in returning it in all APIs. I suggest we simply remove it.
The text was updated successfully, but these errors were encountered: