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

Support ES5 on elasticsearch rails #234

Merged
merged 3 commits into from
Apr 23, 2020

Conversation

LukaHuang
Copy link
Contributor

@LukaHuang LukaHuang commented Apr 19, 2020

Ruby: 2.5.7
Rails: 5.2.4.2
Elasticsearch: 5.6.16 and 6.8.8 (elasticsearch official docker image)

also attached tests
If anything has to improve, please let me know.

@LukaHuang LukaHuang changed the title Support es5 on elasticsearch rails Support ES5 on elasticsearch rails Apr 19, 2020
@codecov
Copy link

codecov bot commented Apr 19, 2020

Codecov Report

Merging #234 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #234   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           26        26           
  Lines          530       532    +2     
=========================================
+ Hits           530       532    +2     
Impacted Files Coverage Δ
lib/pagy/extras/elasticsearch_rails.rb 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 73600be...6ed5975. Read the comment docs.

@ddnexus ddnexus changed the base branch from master to dev April 23, 2020 01:47
@ddnexus ddnexus merged commit a9cee7d into ddnexus:dev Apr 23, 2020
@ddnexus
Copy link
Owner

ddnexus commented Apr 23, 2020

Thank you!

@LukaHuang
Copy link
Contributor Author

Thank you!! It's my honor.

@ddnexus
Copy link
Owner

ddnexus commented May 1, 2020

Hey, I've just realized that we missed something:

total = response.raw_response['hits']['total']

What if raw_response is not defined?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants