Alert for archived groups and their content

Problem

Users need to be aware that a group has been archived when accessing a group.

Proposal

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 were 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
  • Ensure that the group that is referred to in the message is the highest archived group in this particular hierarchy chain so that the user can easily navigate there and unarchive the content from there, if needed (and assuming the user has the appropriate permissions).
  • Ensure that the listed group name in the alert is masked as Private group in case the user does not have access to that group, for instance because they are only a direct member of a child group or project.

image.png

Implementation guide

  1. Create a app/views/shared/groups_projects/_self_or_ancestor_archived_notice.html.haml HAML partial
  2. Merge app/views/shared/projects/_archived_alert.html.haml into the above partial logic
  3. Add the app/views/shared/groups_projects/_self_or_ancestor_archived_notice.html.haml partial to app/views/layouts/_page.html.haml and remove rendering of shared/projects/archived_alert
Edited by Peter Hegman