Skip to content

Conversation

@ellnix
Copy link
Contributor

@ellnix ellnix commented Jan 14, 2025

Pull Request

Related issue

Fixes #382

Using Meilisearch::Rails.active? as an alternative to checking that the objects being replaced are actually NullObject.

For an alternative solution see #383

The advantage of this approach is that NullObject remains opaque and requires no special treatment, and the logic is much easier to follow (in my opinion).

Using Meilisearch::Rails.active? as an alternative to checking that the
objects being replaced are actually NullObject.

For an alternative solution see meilisearch#383

The advantage of this approach is that NullObject remains opaque and
requires no special treatment, and the logic is much easier to follow
(in my opinion).
@ellnix ellnix changed the title Will paginate alternate fix Fix will_paginate crash when Meilisearch disabled Jan 14, 2025
@codecov
Copy link

codecov bot commented Jan 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.15%. Comparing base (d0a6f1a) to head (d3cce03).
Report is 22 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #385      +/-   ##
==========================================
+ Coverage   88.96%   89.15%   +0.18%     
==========================================
  Files          13       13              
  Lines         761      765       +4     
==========================================
+ Hits          677      682       +5     
+ Misses         84       83       -1     

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

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@curquiza curquiza requested a review from brunoocasali January 22, 2025 13:22
Copy link
Member

@brunoocasali brunoocasali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

This solution is way clearer than the previous @ellnix :D

@ellnix
Copy link
Contributor Author

ellnix commented Feb 5, 2025

bors merge

@meili-bors meili-bors bot merged commit 385b278 into meilisearch:main Feb 5, 2025
12 checks passed
@ellnix ellnix added the bug Something isn't working label Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error when paginating with will_paginate and Meilisearch is disabled

2 participants