Add alert for archived groups and their content
What does this MR do and why?
With the introduction of Create an option to archive/unarchive Groups (&15019), we want to add a banner message in groups when they are archived. These banner messages are also displayed to their subgroups and projects.
The existing banner message in archived projects are also updated to respect the group's status.
References
Related to #481743 (closed)
Screenshots or screen recordings
| State | Image |
|---|---|
| Group is archived |
|
| Group has archived parent |
|
| Project is archived |
|
| Project has archived parent |
|
How to set up and validate locally
- Enable
archive_groupfeature flag. - Go to
Group > Settings > General > Advance > Archive groupto archive a group.- Verify that the correct banner message is shown in the archived group.
- Verify that the correct banner message is shown in the subgroups.
- Verify that the correct banner message is shown in the group's project.
- Go to
Project > Settings > General > Advance > Archive projectto archive a project.- Verify that the correct banner message is shown in the project.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Shane Maglangit



