Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Issue dashboard: add filter by label name #19304

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

noerw
Copy link
Member

@noerw noerw commented Apr 1, 2022

Adds the option to filter issues by label names in the issue dashboard via query parameter.
As of now, this is lacking a frontend, as it's unclear to me how a GUI (eg a dropdown as in the repo issue list) would deal with duplicate labels across repos.
A good option could be to add lucene-style search syntax to the current keyword search field (eg label:foo -label:bar).

It feels a bit hacky to have two filters for labels, once by label ID, and once by label name.
This is caused by the duality of exposing label-instances to the user, while users refer to them only by name (see #14012).

I propose to gradually to remove user-facing label IDs, this PR could be a first step along that line. (A next step would be a de-duplication layer for available labels (for a repo & for a user). Using that, user-facing interfaces could start referencing labels by name.)

This also fixes 2 bugs I found along the way, I'll separate them out of this PR later.

TODO

  • add frontend of some kind
  • add &labels= & &label-names= params to sidebar buttons
  • move bugfix & refactor into separate PR

partially fixes #791

noerw added 3 commits April 1, 2022 21:18
- dedup & unify logic
- make sure allow / deny list works
as the issue search query is complicated already, I added the label search
as a separate query. It's also non-trivial, as a user can have access to
various label sets, which may contain different labels with the same name.

TODO:
- Add a proper frontend for this. dropdown like on repo issue
  listing is not an option, as labels will be duplicated across repos.
  Maybe extend q= with lucene-style syntax `label:foo -label:bar`
- Preserve &labels= and &label-names= on sidebar button links.
@noerw noerw added the type/feature Completely new functionality. Can only be merged if feature freeze is not active. label Apr 1, 2022
@noerw noerw added this to the 1.17.0 milestone Apr 1, 2022
@noerw noerw added the pr/wip This PR is not ready for review label Apr 1, 2022
@lunny lunny modified the milestones: 1.17.0, 1.18.0 Jun 3, 2022
@lunny lunny modified the milestones: 1.18.0, 1.19.0 Oct 17, 2022
@lunny lunny modified the milestones: 1.19.0, 1.20.0 Jan 31, 2023
@delvh delvh removed this from the 1.20.0 milestone Jun 5, 2023
@puni9869
Copy link
Member

puni9869 commented Sep 1, 2023

@noerw do you need any help on this?

cc @delvh since we are currently working on labels/issue-filter. This issue might be off topics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/wip This PR is not ready for review type/feature Completely new functionality. Can only be merged if feature freeze is not active.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Filtering on assignee and labels in organization issue overview.
4 participants