gitea icon indicating copy to clipboard operation
gitea copied to clipboard

Hiding the organization's repository label set

Open kebox7 opened this issue 1 year ago • 8 comments

Feature Description

In some cases, there may be a need for centralized management of labels for the organization's repositories. Therefore, it would be nice to have settings to disable the ability to add predefined label sets for the organization's repositories.

Screenshots

Sample

kebox7 avatar Aug 21 '24 20:08 kebox7

I'm sorry I don't understand your needs. This default label set is for a quick start. If you added a new label, this quick start will disappeared. You can add organization level labels for all repositories in organization's settings. You can also add additional labels for the specific repositories.

yp05327 avatar Aug 21 '24 23:08 yp05327

Hi @yp05327.

I'll try to clarify the situation. There is an organization, and we have added a set of labels for it. Organization level labels

Now we are adding a set of labels to the repository itself. Repository  level labels

This will lead to duplicate labels and confusion. I would like to avoid such situations. Duplicate labels

kebox7 avatar Aug 22 '24 06:08 kebox7

I see. If some organization labels are same to the repo labels, then we need something like priority to avoid displaying same label twice. This is a good issue. 👍

yp05327 avatar Aug 27 '24 01:08 yp05327

I see. If some organization labels are same to the repo labels, then we need something like priority to avoid displaying same label twice. This is a good issue. 👍

Probably there shouldn't be a "crutch" to hide lables, instead administrators can remove duplicate labels from repo settings and call it a day. Extra logic on top of that is excess IMO

stuzer05 avatar Dec 09 '24 08:12 stuzer05

That comment is about 4 month ago, and I want to update my comment.

Instead of hiding same labels, I think we can:

  • avoid creating same labels
  • quick move repo/org label to org/repo feature very nice feature in GitLab, I don't need to change the existing issue's label

But this maybe a breaking change.

yp05327 avatar Dec 09 '24 08:12 yp05327

That comment is about 4 month ago, and I want to update my comment.

Instead of hiding same labels, I think we can:

  • avoid creating same labels
  • quick move repo/org label to org/repo feature very nice feature in GitLab, I don't need to change the existing issue's label

But this maybe a breaking change.

No need to restrict anything, it's administrator's work to configure labels. Why add constaints, this should be human's job

stuzer05 avatar Dec 09 '24 12:12 stuzer05

If you do not add some limitations, for experienced admins, yes, they can handle this. But for fresh man, or someone not familiar with the management of this, they will be confused and that's why there's a issue here.

Same labels is confusing, and it depends on the admin's knowledge to handle it. With a limitation, they can easily know how to design it. If you want to have bug label in both of them, like the original design, just rename org level labels into org/bug or something else, can also cover this use case I think, this is also a human's job.

yp05327 avatar Dec 09 '24 23:12 yp05327

@lunny how do you think about this comment: https://github.com/go-gitea/gitea/issues/7406#issuecomment-509918913

yp05327 avatar Dec 09 '24 23:12 yp05327