Archiving subgroup projects

GitLab version: 12.9.0 (9a382ff2c82), standalone

TL;DR

Deletion of empty subgroup deletes also all archived projects of that subgroup (they have been archived separately, before deleting a subgroup).

Use case:

  1. have a project (1+) that sits under subgroup
  2. realize that all the projects in the subgroup are due to being archived
  3. want to archive whole subgroup (not possible)
  4. archive every project under this subgroup (possible)
  5. realize that subgroup still exists and is not archived, but it’s empty
  6. delete subgroup

What is desired effect?

  1. either subgroup can be archived, involving all projects within it
  2. or all projects are archived but still available, despite deleting the (empty) subgroup

What happens instead?

  1. subgroup is deleted
  2. all projects of this subgroup before archiving are deleted too! o_O (they can not be found in the GitLab at all)

I do not think this is something desired. Or is it? :slight_smile:

1 Like

It is desired yes!
Not being able to archive subgroups leaves you hanging with a seemingly empty subgroup that is polluting the group/subgroup it is in…

1 Like

If all projects under a subgroup are archived the subgroup itself should also be archived/hidden. Otherwise you end up with this stale empty folder when looking at the top level of the group. Please fix, it is cluttering things for us.

You can follow the issue here since groups are not currently archivable: Create an option to archive/unarchive Groups (#15967) · Issues · GitLab.org / GitLab · GitLab