Add feature flag for indexing work item notes

What does this MR do and why?

Corrective action from incident gitlab-com/gl-infra/production#19026 (closed)

Indexing for some work items is being blocked by DB timeouts from preloading notes records.

The initial indexing queue is backed up. The records will never be indexed because the preloading of notes is timing out the database. The advanced search migration framework uses the initial indexing queue for data migrations (this queue is also used for new projects and project imports).

This MR adds a disabled by default feature flag to prevent indexing notes until the preloading can be fixed - that work is tracked in Work items indexing notes causing db timeouts (#508906 - closed)

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.

Edited by Terri Chu

Merge request reports

Loading