Skip to content

Add SettingsUpdater service #317

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

Merged
merged 1 commit into from
Feb 16, 2024
Merged

Conversation

norkunas
Copy link
Collaborator

Pull Request

Related issue

Fixes #<issue_number>

What does this PR do?

  • Allows to reuse settings updating code between meilisearch:create and meilisearch:import commands;
  • Allows to update settings outside meilisearch bundle;
  • Respects --update-settings option in meilisearch:import command and for consistency also added to meilisearch:create;
    Note: to avoid BC break, because settings were always updated, I've changed update-settings option to negatable mode, so basically running command without it is like passing --update-settings to command and to allow skipping settings update there is now --no-settings-update option automatically added and handled by Symfony.

PR checklist

Please check if your PR fulfills the following requirements:

  • Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
  • Have you read the contributing guidelines?
  • Have you made sure that the title is accurate and descriptive of the changes?

@norkunas norkunas force-pushed the settings-updater branch 2 times, most recently from a9b19ba to ee7f5f5 Compare January 11, 2024 12:35
@norkunas norkunas mentioned this pull request Jan 12, 2024
3 tasks
@norkunas
Copy link
Collaborator Author

ping @brunoocasali

@brunoocasali
Copy link
Member

@norkunas I'll take a look at it today!

@norkunas norkunas force-pushed the settings-updater branch 2 times, most recently from 4799700 to ee8bb58 Compare February 15, 2024 04:31
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!

@brunoocasali brunoocasali added the enhancement New feature or request label Feb 15, 2024
Copy link

codecov bot commented Feb 16, 2024

Codecov Report

Attention: 8 lines in your changes are missing coverage. Please review.

Comparison is base (797055d) 86.19% compared to head (d11eb9e) 86.69%.

Files Patch % Lines
src/Services/SettingsUpdater.php 85.18% 4 Missing ⚠️
src/Event/SettingsUpdatedEvent.php 71.42% 2 Missing ⚠️
src/Exception/InvalidIndiceException.php 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #317      +/-   ##
============================================
+ Coverage     86.19%   86.69%   +0.50%     
  Complexity        1        1              
============================================
  Files            15       19       +4     
  Lines           768      812      +44     
============================================
+ Hits            662      704      +42     
- Misses          106      108       +2     

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

@norkunas
Copy link
Collaborator Author

bors merge

@meili-bors meili-bors bot merged commit b896111 into meilisearch:main Feb 16, 2024
@norkunas norkunas deleted the settings-updater branch February 16, 2024 09:39
meili-bors bot added a commit that referenced this pull request Feb 16, 2024
318: Proximity precision r=norkunas a=norkunas

# Pull Request

## Related issue
Fixes #<issue_number>

## What does this PR do?
- Adds support for proximity precision setting

## PR checklist
Please check if your PR fulfills the following requirements:
- [ ] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
- [x] Have you read the contributing guidelines?
- [x] Have you made sure that the title is accurate and descriptive of the changes?

I've based this PR on #317 so will rebase if/after it is merged to get rid of the first commit and also meilisearch/meilisearch-php#606 should be merged first

Co-authored-by: Tomas <norkunas.tom@gmail.com>
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.

2 participants