Skip to content

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 cadences 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 cadences 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.

  1. Create a new group

  2. Enable :iteration_cadences FF

    Feature.enable(:iteration_cadences)
  3. Visit the iteration cadences list of the group

    In the group view, go to Issues > Iterations in the left menu bar.

    ex. http://gdk.test:3000/groups/new-group/-/cadences

  4. Create two iteration cadences with iterations in them

  5. Now disable :iteration_cadences FF

    Feature.disable(:iteration_cadences)
  6. 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:

:iteration_cadences ON :iteration_cadences OFF
Screen_Shot_2022-03-02_at_7.20.23_PM Screen_Shot_2022-03-02_at_7.20.54_PM

Sample queries

Query for loading the iteration list UI

Query for searching iteration by title used in issues list UI

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by euko

Merge request reports