Add archived to the issues index
What does this MR do and why?
Allow issues to be filtered by the new archived field. This change is behind a feature flag search_issues_hide_archived_projects
Migration runtime
> batch_size = 9_000
=> 9000
> throttle_delay = 1.minute
=> 1 minute
> number_of_documents = 18_000_000
=> 18000000
> (number_of_documents / batch_size) * throttle_delay
=> 2000 minutes
> ((number_of_documents / batch_size) * throttle_delay / 1.hour).hours
=> 33 hours
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.
- Enable Elasticsearch integration
- Execute
Feature.enable(:search_issues_hide_archived_projects)
- Pick a group with at least two projects (
Gitlab Org
for example) - Archive one of the projects (
Gitlab Shell
) - Ensure that the all Advanced Search migrations have been applied
- Search for
Cipher
in theGitlab Org
group (scope: issues) - Ensure that it doesn't return the archived project
- Add
include_archived=true
to the URL - Ensure that now it returns both projects
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.
Related to #414903 (closed)
Edited by Dmitry Gruzd