Group feature flag for cleanup policies
🔥 Problem
Enabling cleanup policies is done through a feature flag. This feature flag is scoped by project.
We're starting rolling out this feature and targeting several projects at once. It becomes tedious to enable the feature flag on each project.
🚒 Solution
Introduce a second feature flag that works on Group. The cleanup policy feature would be unlocked if:
- the direct parent group of the project has the feature flag
Ideally, we could check the whole group hierarchy but there are some concerns regarding the ~performance of that. That's basically walking all project group's ancestors and checking each against the feature flag