Skip to content

Add archived to the issues index

Dmitry Gruzd requested to merge 414903-hide-issues-from-archived-projects into master

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.

  1. Enable Elasticsearch integration
  2. Execute Feature.enable(:search_issues_hide_archived_projects)
  3. Pick a group with at least two projects (Gitlab Org for example)
  4. Archive one of the projects (Gitlab Shell)
  5. Ensure that the all Advanced Search migrations have been applied
  6. Search for Cipher in the Gitlab Org group (scope: issues)
  7. Ensure that it doesn't return the archived project
  8. Add include_archived=true to the URL
  9. 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.

Related to #414903 (closed)

Edited by Dmitry Gruzd

Merge request reports