feat: Improves meilisearch configuration step#38384
feat: Improves meilisearch configuration step#38384farhaanbukhsh wants to merge 2 commits intoopenedx:masterfrom
Conversation
|
Thanks for the pull request, @farhaanbukhsh! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. DetailsWhere can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
e37d5a1 to
71169b2
Compare
bradenmacdonald
left a comment
There was a problem hiding this comment.
This is looking great!
…up with a migration plan and configuration plan depending on the state. This introduces a mechanism it or a drift engine which drill down the Meiliseach configuration and figures out what has changed: - settings - primary key depending on the change we follow a strategy wether to migrate the data or recreate the index Signed-off-by: Farhaan Bukhsh <farhaan@opencraft.com>
…index. Signed-off-by: Farhaan Bukhsh <farhaan@opencraft.com>
8285dba to
2d6e3cc
Compare
Description
The changes here are to add a Drift Calculator for the Meilisearch index to help us configure Meiliseach at the fresh installation or upgrade. This mechanism triggers on each run of migrate so wether it is a new installation or upgrade. This makes sure that we calculate and gauge the status of Meiliseach studio index and have a plan to mitigate it.
Useful information to include:
We try to caculate and see here how far the changes have gone from codebase and try to bring it back to codebase. Specially with change in PK there is not much we can do we have to drop the index and create and configure a new one.
We are making use to make that happen when migrate runs. Hence, whenever
./manage.py cms migrateruns this command follows it. The diff is calculate so only when an action is needed it will be taken into effect.Supporting information
tutor dev stoptutor images build openedx-devtutor dev start -dtutor dev status | rg meilisearch--> This helps us find out if meilisearch is running.tutor dev exec -it cms -- /bin/bash./manage.py cms migrateapi.py:580 - Index is populated and correctly configured. No action needed.in the logLets do a bit more tests
./manage.py cms shell./manage.py cms migrateagain, you will the script is fixing the changes.Phase II Testing
./manage cms shell./manage.py cms reindex_studioDeadline
ASAP
Other information
Related Tutor PR: overhangio/tutor#1374
Private Ref: BB-10767