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

Display non-200 response as error. #5

Closed
wants to merge 7 commits into from
Closed

Display non-200 response as error. #5

wants to merge 7 commits into from

Conversation

burak
Copy link

@burak burak commented May 28, 2018

Remove manual JSON construction as it
is decoded in the caller anyway and
it also needs to be properly escaped
which is an unnecessary hassle.

Optionally show the JSON decoding errors if
ELASTIJK_DEBUG is set.

Remove manual JSON construction as it
    is decoded in the caller anyway and
    it also needs to be properly escaped
    which is an unnecessary hassle.

Optionally show the JSON decoding errors if
    ELASTIJK_DEBUG is set.
@coveralls
Copy link

Coverage Status

Coverage decreased (-10.7%) to 85.714% when pulling 4d12fc8 on burak:master into 3d4625a on gugod:master.

@coveralls
Copy link

coveralls commented May 28, 2018

Coverage Status

Coverage decreased (-1.2%) to 95.161% when pulling 12feb95 on burak:master into 3d4625a on gugod:master.

Burak Gursoy and others added 6 commits May 28, 2018 18:39
Use localhost everywhere instead of 127.0.0.1.
Give the test index a more definitive name.
…rgument.

The code traveling between Elastijk & Elastik::oo makes this a bit awkward.
The construct - @{$args}{qw(index type id)} - autovivifies, hence the breakdown of that section.
We also need to skip index and path parameters for version checks. The caller code
	might set those during the object construction.
ES version 5 also removed search_type=scan
@burak
Copy link
Author

burak commented May 29, 2018

Hmmm.. This turned out to be a can of worms with the API changes after ES v5

@burak
Copy link
Author

burak commented May 30, 2018

This needs to be rethought / reworked.

@burak burak closed this May 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants