Skip to content

Implement global auto-indexing switch #409

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ellnix
Copy link
Collaborator

@ellnix ellnix commented Mar 17, 2025

Pull Request

Related issue

Fixes #349

ellnix added 2 commits March 17, 2025 17:11
The implementation is very straightforward, for now it only has a block
form. We could add a toggle if that is useful in the future.
@ellnix ellnix added the enhancement New feature or request label Mar 17, 2025
@ellnix ellnix marked this pull request as ready for review March 17, 2025 16:15
Copy link

codecov bot commented Mar 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.60%. Comparing base (5450df2) to head (fd4cc07).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #409      +/-   ##
==========================================
+ Coverage   89.54%   89.60%   +0.05%     
==========================================
  Files          13       13              
  Lines         775      779       +4     
==========================================
+ Hits          694      698       +4     
  Misses         81       81              

☔ 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.

Comment on lines +55 to +63
def without_auto_index(&block)
Thread.current['ms_without_auto_index_scope'] = true

begin
yield
ensure
Thread.current['ms_without_auto_index_scope'] = false
end
end

Choose a reason for hiding this comment

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

Very nice

@wesharper
Copy link

Looks like a great add, and pretty simple implementation

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

Successfully merging this pull request may close these issues.

Global ms_without_auto_index in Meilisearch
2 participants