Add user indexing ops feature flag
What does this MR do and why?
Related: #390228 (closed)
- Adds a new feature flag to control user indexing (separate from the existing flag for user search)
- Adds a check that the index creation migration is completed before indexing
- Some small refactoring
Screenshots or screen recordings
N/A
How to set up and validate locally
- Setup gdk for elasticsearch and enable advanced search
- enable the feature flag:
Feature.enable(:advanced_user_index)
- create a new user or update user membership
- observe that the user is indexed using the
elasticsearch.log
file - disable the feature flag:
Feature.disable(:advanced_user_index)
- create a new user or update user membership
- observe that the user is NOT indexed using the
elasticsearch.log
file
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Terri Chu