Skip to content

Issues from the archived project shown in group and global basic search

What does this MR do and why?

Filter out the archived project ids if feature_flag search_issues_hide_archived_projects is enabled and filter include_archived is not present

Move the feature_flag search_issues_hide_archived_projects out from ee because this fetaure_flag is applicable to non-ee as well.

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

  • Open the rails console
bundle exec rails c
  • Enable the feature_flag search_issues_hide_archived_projects
Feature.enable(:search_issues_hide_archived_projects)
  • Create an issue with some keywords in the title
  • Archive the project where you have created the issue
  • Disable the advanced search or alternatively pass basic_search=true in the query params
  • Perform a group-level and global search with the keyword from issue.
  • Ensure the issue that you have created is not getting shown in the search results.
  • Now pass include_archived=true in the query params and verify that the issue is shown in the search result.

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 #424512 (closed)

Edited by Ravi Kumar

Merge request reports