Draft: Consolidate the single zoekt_index and multiple zoekt_indices assignment logic
What does this MR do and why?
Consolidated the logic of initializing single index and multiple indices. There is no need to keep the two different logics. In addition to that wrap the saving of indices in the ApplicationRecord::Transaction
. The reason is even if one index save fails for a namespace, it should roll back all other indices of this namespace.
Remove the FF zoekt_create_multiple_indices
. Now there is only one logic for node assignment and will be controlled by this FF zoekt_node_assignment
References
Please include cross links to any resources that are relevant to this MR This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Related to #503496