Skip to content
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

Closed
kimchy opened this issue Dec 2, 2013 · 2 comments
Closed

Remove "ok" : true from successful REST responses #4310

kimchy opened this issue Dec 2, 2013 · 2 comments

Comments

@kimchy
Copy link
Member

kimchy commented Dec 2, 2013

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.

@jprante
Copy link
Contributor

jprante commented Dec 2, 2013

+1

@dakrone
Copy link
Member

dakrone commented Jan 7, 2014

Merged in d23f640

@dakrone dakrone closed this as completed Jan 7, 2014
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
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants