-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
feat: Add sorting by exclusive label. #33206
base: main
Are you sure you want to change the base?
Conversation
There are different PRs for this problem and they conflict with each other (and the problem is pending for long time)
|
pinging @lafriks as this is likely relevant to your interests |
Proposed fix for #2616 |
Agreed, my proposal above (and in the current code) is to use the DB indexer for all sort-by-exclusive-label queries. While that isn't ideal for all cases, it does cover what I expect to be by far the most common use case, which is to click into a repo and then sort the open, active tickets by some sort of priority or status label. It also avoids sending any queries to external indexers which they cannot fully handle. |
Hmm, I am neutral on this. What do maintainers think? also cc @lafriks |
I have no better idea how to resolve it and I will not block this. |
Compared to my implementation this does have some bonuses (less code, no need for calculating/re-calculating issue priority) but also I don't know how it will perform on large db as join by |
I don't think this will be an issue, as the If an index did prove useful, it can be done fairly simply. Since this is a prefix-based
|
The latest commits have no functional changes, just merging in the last code from main. |
Will take a look later when I get some time. (ps: no need to update for every main branch commit 😄 ) |
This PR adds a new sort option for exclusive labels.
While this has been looked at before (see the first comment below for a list), the goal of this particular approach was to do it in the most lightweight and flexible way possible, by making use of the existing exclusive label system. No changes are made to the Issue model.
For exclusive labels, a new property is exposed called "order", while in the UI options are populated automatically in the
Sort
column (see screenshot below) for each exclusive label scope.This doesn't impose any particular scheme for prioritization, labeling, etc.; that's all up to the user.