hcengineering / hcengineering/platform

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

Open
#7,858 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
27.7k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

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,

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by creating an issue, adding a new label, and toggling its active/inactive state several times. Trace the label-count handling for newly created issues and compare the count after each toggle. Done means the label count increases only once for the single label assignment.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.