Skip to content

[Projects] Add a visual toggle for including archived projects in search results

Proposal

Add a filter for including archived projects which sends include_archived=true to the backend.

This requires adding a toggle to include archived project results on all project-related search results (broken down into tasks in #18262 (closed)):

The projects scope is controlled by the search_projects_hide_archived feature flag on the backend:

The toggle should show up for basic and advanced searches

Note: The toggle should show up for Group and Global searches. Project scoped searches will return results whether the project is archived or not

Release notes

When using Global Search to find projects on the global or group level, users can use a UI toggle to include or exclude the archived projects in the search result. This feature is turned on in the project scope on GitLab.com right now. It will be available in other scopes and be fully released to all GitLab customers in the coming releases. archived_project

Edited by Terri Chu