platform icon indicating copy to clipboard operation
platform copied to clipboard

Bug: When activating or deactivating a newly created label for an issue, it counts every selection

Open orpheus-ui opened this issue 1 year ago • 4 comments

Hey Guys,

I’ve noticed a bug related to issue labels. When a user creates a new issue and adds a new label within it, toggling the issue's active/inactive state increases the label count each time it's selected. This results in an incorrect issue count for the label.

Steps to Reproduce:

  • Create a new issue.
  • Add a new label and assign it to the issue.
  • Toggle the issue’s active/inactive state multiple times.
  • Notice that the label count increases with each toggle, even though the label is only applied to the issue once.

Regards,

orpheus-ui avatar Jan 31 '25 17:01 orpheus-ui

Connected to Huly®: UBERF-9335

huly-github-staging avatar Jan 31 '25 17:01 huly-github-staging

Update: Creating a new label isn’t necessary to reproduce this bug. Existing label also exhibit the same behavior. simply toggling the label's active/inactive state multiple times causes the label count to keep increasing!

orpheus-ui avatar Jan 31 '25 17:01 orpheus-ui

This came from the create-issue dialog: removing a label there didn't actually remove it from the draft, so toggling it on and off left several copies. When the issue was saved, each copy became its own label reference and was counted. This was fixed in #8373 (7acef2e057), which now removes labels by their tag id in the create-issue, sub-issue draft and template editors, and editing labels on an existing issue already skipped duplicates. This looks resolved, so the issue could be closed.

MichaelUray avatar Oct 18 '26 01:10 MichaelUray

@orpheus-ui — based on the check described above, this looks resolved in the current code. Could you please close this issue if you agree? If you think it is not fixed yet, please describe what still goes wrong (steps, expected vs. actual behaviour), so it can be looked at again.

MichaelUray avatar Oct 20 '26 19:10 MichaelUray