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

Refactor lib/meilisearch.rb #379

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

ellnix
Copy link
Collaborator

@ellnix ellnix commented Jan 7, 2025

Pull Request

Related issue

Fixes #348

See related issue.

Copy link

codecov bot commented Jan 7, 2025

Codecov Report

Attention: Patch coverage is 95.09804% with 10 lines in your changes missing coverage. Please review.

Project coverage is 89.72%. Comparing base (ba4a8c9) to head (9e06d25).

Files with missing lines Patch % Lines
lib/meilisearch/rails/index_settings.rb 93.39% 7 Missing ⚠️
lib/meilisearch/rails/safe_index.rb 94.87% 2 Missing ⚠️
lib/meilisearch-rails.rb 97.29% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #379      +/-   ##
==========================================
+ Coverage   88.96%   89.72%   +0.75%     
==========================================
  Files          13       16       +3     
  Lines         761      788      +27     
==========================================
+ Hits          677      707      +30     
+ Misses         84       81       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@curquiza curquiza requested a review from brunoocasali January 8, 2025 13:20
@ellnix ellnix force-pushed the refactor-lib-meilisearch branch from 7da3be4 to 3991366 Compare January 8, 2025 21:42
ellnix added 4 commits January 8, 2025 22:55
I cannot figure out why this was ever created, all tests pass with this
change, it feels to me like this is just a roundabout way of shoving
`self` into the hash.

If there's a distinction between this logic and `self` please let me
know.
This should highlight the difference between these settings that concern
the index and meilisearch_options which are rails-specific.
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.

Refactor meilisearch.rb
1 participant