Skip to content

Fix epics list bulk editing by using intersection

Kushal Pandya requested to merge 363025-fix-epics-bulk-editing into master

What does this MR do and why?

Fixes a bug where bulk editing epics list would apply unwanted labels as the dropdown uses a union of all the labels from the selected epics, this MR changes the logic to use intersection instead, and hence the dropdown would only show labels which are present in all selection epics, thus making the bulk editing more predictable.

How the feature would work after this MR is merged?

  • Open Epics list
  • Click Edit epics button to reveal bulk editing sidebar
  • At this point, following are the possible ways that labels can be updated;

1. Selected epics have no labels present

Dropdown will not show any label as checked, any label selected here will be applied to all selected epics.

2. Selected epics have some labels present

Dropdown will show only labels which are present in all selected epics as checked, if any new label is selected, it is applied to the epics, if any existing checked label is unchecked, it is removed from the epics, leaving any other labels intact.

If there isn't any label common among all epics, dropdown will not show any label as checked, if any label is now checked (which is present in some of the selected epics), then it gets applied to all the remaining epics. Same is true for labels removal too.

How to set up and validate locally

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

MR acceptance checklist

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

Related to #363025 (closed)

Edited by Kushal Pandya

Merge request reports