Skip to content

Draft: Work item rollup weight and configuration

What does this MR do and why?

This MR renders rollup weight in work item types where rollup weight is applicable.

A little background for this MR :

Originally , epics do not have an editable weight widget , hence up till now, we never had the backend return the weight widget for epics. Now to show the rollup weight in an epic , we wanted to expose the weight in the best widget considering performance reasons. So , it only made sense to expose the rollup weight in the weight widget itself adding a configuration whether it is editable or not.

What all this MR focuses on

Checklist Added as a scope of this MR
Show rollup weight in epics and also in the hierarchy tree where applicable YES
Objectives do not have rollup weight because they are not applicable YES
Support backend configuration for editable work item weight in work item detail view YES
Support work item weight in create view of work item NO - because it is not supported from backend in WorkItemCreateInput

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Hierarchy roll up Expanded tree child roll up weight
Screenshot 2024-07-04 at 12.02.05 PM.png Screenshot 2024-07-04 at 12.02.14 PM.png

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Make sure you run db migration when you run this MR in your local gdk
  2. Create a new epic - EPIC 1
  3. Go to an issue work item and add a weight - ISSUE 1
  4. Create another issue work item without any weight - ISSUE 2
  5. Create another epic - EPIC 2
  6. Go to EPIC 1 and add ISSUE 1, ISSUE 2 and EPIC 2 as children in tree
  7. You can see that ISSUE 1 has weight in tree , ISSUE 2 does not have weight (since 0) and EPIC 1 has weight at the top of the tree ( header )

To check the configuration changes

  1. Make sure that epic detail view does not have weight widget in sidebar
  2. Make sure that issue work items have weight widget in sidebar

Related to #463219

Edited by Deepika Guliani

Merge request reports