Assigning Issue / PR labels adds additional unrelated labels #22

Closed
opened 2021-03-02 10:50:27 +00:00 by noerw · 3 comments
Member

Reporting here instead of gitea issue tracker, as I only was able to reproduce this on gitea.com so far..

To reproduce:

  1. Have Repo with some labels
  2. Assign a label on the issue / pr detail page of an issue without any labels
  3. The label shows in up in the issue sidebar, but doesn't show in the issue comment log (that's a different issue, see #13923)
  4. Only in the repo issue list, 1 or more additional labels semi-randomly show up on the issue. The label ID is much different from the assigned labels, suggesting they're from another (org?) label set.

I had this in several cases on gitea.com so far:

So far I was able to reproduce this only on gitea.com, not sure if that's due to different DB type, label set configuration, corrupted DB, ...

edit: this issue is a good example :)

edit: the additional labels also show up when getting single issue + issue list from API
edit: the additional labels are also attached when creating issue from API, even when no labels are specified

> Reporting here instead of gitea issue tracker, as I only was able to reproduce this on gitea.com so far.. To reproduce: 1. Have Repo with some labels 1. Assign a label on the issue / pr detail page of an issue without any labels 1. The label shows in up in the issue sidebar, but doesn't show in the issue comment log (that's a different issue, see #13923) 1. Only in the repo issue list, 1 or more additional labels semi-randomly show up on the issue. The label ID is much different from the assigned labels, suggesting they're from another (org?) label set. I had this in several cases on gitea.com so far: - https://gitea.com/gitea/tea/issues/327 (`kind/enhancement` shouldnt be there, screenshots see https://github.com/go-gitea/gitea/issues/13923#issuecomment-787129061) - https://gitea.com/gitea/tea/issues/329 (`kind/proposal` shouldnt be there) - https://gitea.com/noerw/tea/issues/10 (`kind/enhancement` isn't even available on this repo!) - https://gitea.com/noerw/test/issues/3 (3 additional labels, also not available in this repo) So far I was able to reproduce this **only on gitea.com**, not sure if that's due to different DB type, label set configuration, corrupted DB, ... edit: this issue is a good example :) edit: the additional labels also show up when getting single issue + issue list from API edit: the additional labels are also attached when creating issue from API, even when no labels are specified
noerw added the
bug
label 2021-03-02 10:50:52 +00:00
Author
Member

It seems that adding a label isn't even necessary..

gitea/helm-chart#124 has:

  • no labels in detail view
  • no log entry about addition / removal of labels
  • a kind/proposal label in the PR listing..
It seems that adding a label isn't even necessary.. https://gitea.com/gitea/helm-chart/pulls/124 has: - no labels in detail view - no log entry about addition / removal of labels - a `kind/proposal` label in the PR listing..
Member

more example:

gitea/test-env#4

image

image

in fact this repo hasn't init the labels ...
I fonud the id of this label is 4694 by click it, suggest check it in database.
@lunny

more example: gitea/test-env#4 ![image](/attachments/7da5992b-bec2-496f-a9ec-89c458f67381) ![image](/attachments/8d6b4dcd-2044-46cf-b6f4-c836b04e6dab) in fact this repo hasn't init the labels ... I fonud the id of this label is ``4694`` by click it, suggest check it in database. @lunny
Owner

I think it's a duplicate of #23 and should be fixed by
https://github.com/go-gitea/gitea/pull/14894

I think it's a duplicate of #23 and should be fixed by https://github.com/go-gitea/gitea/pull/14894
noerw closed this issue 2021-05-19 16:44:47 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitea/gitea.com#22
No description provided.