Skip to content

Use start and due date attributes when listing iterations

euko requested to merge 343523-use-date-attributes-when-listing-iterations into master

What does this MR do and why?

Background

The changes in this MR are behind a feature flag (iteration_cadences).

Iterations can be generated automatically for an iteration cadence. When iterations are created, their titles have hardcoded start and due dates e.g., Iteration 1: Oct 1, 2021 - Oct 3, 2021.

We won't be hardcoding the dates in the backend and we are updating the frontend components to use the date attributes for display.

The backend portion will merge after this MR. This MR completes the frontend tasks laid out in #343523 (closed).

Changes introduced in this MR

Use iteration start/due dates attributes to display them in

  • the iteration cadence list
  • iteration select dropdown
    • in the issue sidebar
    • in the board issue sidebar
    • in the issue list bulk edit sidebar
    • in the board list create form
    • in the iteration board list header

Screenshots (before/after)

Iteration cadences list

some iterations already got created with dates in their titles so dates would be displayed twice for them. (we're assuming this isn't a big problem as the feature is not marked as ready for production)

Before After
cadence_list_before cadence_list_after

Issue sidebar / Board issue sidebar / Issues list bulk edit / Board list create form

The same styling is applied to all.

Before After
image issue_sidebar_after1
image issue_sidebar_after2
image issue_sidebar_after3
image issue_sidebar_after4

Board List header

collapsed? Before After
no image image
yes image image

How to set up and validate locally

  1. Enable the iteration cadences feature

    Feature.enable(:iteration_cadences)
  2. Create a new iteration cadence for a group (ex. gitlab-org)

  3. Visit these locations to see the changes

  • Iteration cadence list: http://gdk.test:3000/groups/gitlab-org/-/cadences
  • Issue sidebar (visit any issue page under the group)
  • Issue bulk edit sidebar (it appears when you click Edit Issues in Issues List
  • Board issue sidebar (visit any board under the group)
  • Board list create form (click Add List in Board)
  • Board list header for an iteration list after adding it in the previous step.

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

Loading