Draft: Hide non-default cadences when iteration_cadences FF is disabled
What does this MR do and why?
Issue #353353 (closed)
We've been developing the ability to create multiple iteration cadence
s per group behind the FF :iteration_cadences
. By default, without the FF, every group gets a single iteration cadence
. In order to make the FF reversible, we need to hide the iterations from non-default iteration cadence
s when the FF is disabled. The default iteration cadence for a group is simply the first iteration cadence that gets created.
In addition, we are going to check and enable the feature :iteration_cadences
on a per root group (namespace) basis (see &7567 (comment 864986261)).
Note that all of the changes in this MR will be reverted when the FF is removed.
How to set up and validate locally
This is just one way to check the changes via the UI.
-
Create a new group
-
Enable
:iteration_cadences
FFFeature.enable(:iteration_cadences)
-
Visit the iteration cadences list of the group
In the group view, go to
Issues
>Iterations
in the left menu bar. -
Create two iteration cadences with iterations in them
-
Now disable
:iteration_cadences
FFFeature.disable(:iteration_cadences)
-
Visit
Issues
>Iterations
again.Note that the link will be different.
ex. http://gdk.test:3000/groups/new-group/-/iterations
Check that only the iterations from the first iteration cadence is present:
Sample queries
Query for loading the iteration list UI
- Before: https://console.postgres.ai/gitlab/gitlab-production-tunnel-pg12/sessions/8912/commands/31554
- After: https://console.postgres.ai/gitlab/gitlab-production-tunnel-pg12/sessions/8912/commands/31553
Query for searching iteration by title used in issues list UI
- Before: https://console.postgres.ai/gitlab/gitlab-production-tunnel-pg12/sessions/8912/commands/31555
- After: https://console.postgres.ai/gitlab/gitlab-production-tunnel-pg12/sessions/8912/commands/31556
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.