-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Archive labels #25237
Copy link
Copy link
Closed
Labels
proposal/acceptedWe have reviewed the proposal and agree that it should be implemented like that/at all.We have reviewed the proposal and agree that it should be implemented like that/at all.type/featureCompletely new functionality. Can only be merged if feature freeze is not active.Completely new functionality. Can only be merged if feature freeze is not active.type/proposalThe new feature has not been accepted yet but needs to be discussed first.The new feature has not been accepted yet but needs to be discussed first.
Milestone
Metadata
Metadata
Assignees
Labels
proposal/acceptedWe have reviewed the proposal and agree that it should be implemented like that/at all.We have reviewed the proposal and agree that it should be implemented like that/at all.type/featureCompletely new functionality. Can only be merged if feature freeze is not active.Completely new functionality. Can only be merged if feature freeze is not active.type/proposalThe new feature has not been accepted yet but needs to be discussed first.The new feature has not been accepted yet but needs to be discussed first.
Feature Description
Sometimes, old labels should not be used anymore.
For Gitea, for example, those are the
backport/v*labels.Currently, the only way to stop them from polluting the search results when trying to assign labels to an issue or PR is to delete them completely.
However, this has the drawback that any old issue/PR that had that label loses it, thus losing information.
Instead, it would probably be better to filter out archived labels from the search results and keep them for anything that already has these labels.
So, in a sense, what I propose is a sort of soft deletion for labels (except instead of a boolean we store a timestamp that means unarchived when
0and displays when this label was archived).This also aligns with milestones and projects as you can close both already, which is their equivalent of archiving.
Labels are currently an outlier in their behavior among the "three scrum tools".
Proposed Approach
archive(d)on theedit labelscreen (and to thePATCHAPI route/repos/{owner}/{repo}/labels/{id})ArchivedUnix timestamp(now)inside the db0include archived labelsinside the suggestion box that is de-selected by default, and re-triggers the search when changed. Needs a lot of UI changes