Create an option to archive/unarchive Groups
## Problem There is an ability to archive a project within a group, but there is no ability to archive an entire group with GitLab today. If a product is mothballed, the operations team would like to archive the GitLab Group (& projects) so that it no longer appears within the GitLab UI like an active product that is under development. ## Proposal Add an option to "Archive group" to the "Edit Group" screen in GitLab. 1. To archive a group, locate a group, click on `Edit` and select `Archive group`. Messaging should follow a similar message as used when archiving projects: ![Screenshot_2024-07-15_at_14.09.21](/uploads/c77ba2c2badc6ff4822e3b034734626d/Screenshot_2024-07-15_at_14.09.21.png) 1. Archived groups display a message on the group overview page similar as is displayed for projects: ![Screenshot_2024-07-15_at_14.09.58](/uploads/cb22f04402fb741dbffa27dbac7e6b87/Screenshot_2024-07-15_at_14.09.58.png) Subgroups and projects of the archived group should display this message as well. 1. To unarchive a group, locate the group, click on `Edit` and select `Unarchive group`. Messaging should follow a similar messages as used when unarchiving projects: ![Screenshot_2024-07-16_at_12.13.05](/uploads/50d09421088038b01801147f6fc43f85/Screenshot_2024-07-16_at_12.13.05.png) 1. When archived, a group and its contents will be shown in the `Inactive` tab in Group listings (e.g. Group overview page, Your Work, Explore). Reference: design vision for [Explore](https://gitlab.com/groups/gitlab-org/-/epics/555#design-vision) and [Your Work](https://gitlab.com/groups/gitlab-org/-/epics/12280#design-vision). ![Screenshot_2024-07-15_at_14.00.10](/uploads/78eb2e1f92684eda525a0bf051fbe104/Screenshot_2024-07-15_at_14.00.10.png) 1. When archived, a group and its contents can be unarchived by a group Owner or admin by locating the group, clicking `Edit` and selecting `Unarchive` 1. When archiving a group, all of its subgroups and projects get archived as well - A subgroup of an archived group cannot be unarchived. The archived group needs to be unarchived in its entirety. - An archived group cannot be transferred. 1. When archived, groups show the `Archived` badge in lists - All subgroups and projects of the group display the `Archived` badge in lists as well 1. When archived, issue status remains unchanged. Open issues remain open, and closed issues remain closed. 2. When archived, groups cannot be transferred. ## Designs See https://gitlab.com/gitlab-org/gitlab/-/issues/472805. In groups/projects settings \> general\> advanced add/modify the archive setting as follows: - [ ] Add option archive group - [ ] Add option to unarchive group - [ ] Modify option to unarchive projects that are children of archived groups - [ ] Modify option to unarchive groups that are children of archived groups ![image.png](/uploads/1394ba3cea530c4b3899d1c4f91ffad6/image.png) In groups/projects that are archived or children of archived groups add/modify a non-dismisable alert on all pages as follows: - [ ] Add alert to groups that archived - [ ] Add alert to projects that are children of archived groups - [ ] Modify archived projects that were archived and are now children of archived groups - [ ] Add alert to groups that are children of archived groups ![image.png](/uploads/5d4e38058d95cba4d95eb5995550baae/image.png) Add/Modify tabs to the following pages to account for active and inactive groups - [ ] Your work groups - [ ] Modify Group overview (homepage) Inactive tab to include groups and projects ![image](/uploads/d95866a79e7497e48d737bdf9bfee8a8/image.png){width="491" height="320"} ## Requirements See https://gitlab.com/gitlab-org/gitlab/-/issues/382051.
issue