Skip to content

Add user indexing ops feature flag

Terri Chu requested to merge tchu-add-user-indexing-ops-feature-flag into master

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

  1. Setup gdk for elasticsearch and enable advanced search
  2. enable the feature flag: Feature.enable(:advanced_user_index)
  3. create a new user or update user membership
  4. observe that the user is indexed using the elasticsearch.log file
  5. disable the feature flag: Feature.disable(:advanced_user_index)
  6. create a new user or update user membership
  7. 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.

Edited by Terri Chu

Merge request reports