-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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: add priority to issues #20959
WIP: add priority to issues #20959
Conversation
I think this conflicts with my PR #11669 |
Mine is doing pretty much the same except that it has predefined set of weights. In the end in mine issues will also have priority weight that will be calculated and saved to issue only based on issues label max priority weight that will allow sorting issues by priority. |
Issue direct priority and issue priority based on labels. |
I am reading these two PRs. Some thoughts: Label-based priorityIt doesn't introduce new concept for users, GitLab does so, and I agree about However, I think there could be something difficult for end users. For example, if And it would cause some arguments, like https://gitlab.com/gitlab-org/gitlab/-/issues/14523 Issue priority should be determined by combination of label priorities instead of highest label priority . I do not think the behavior is clear for everyone. PR #11669 used hard-coded priority levels, it may not satisfy real users. If it introduces customized priorities, it will be much more complex then. Issue-based priorityIt introduces a new concept on issue, while I think it's fine. Some issue tracker like Jira also does so, it seems more simple and easily to be understood. If there is no Cons for Issue-based priority, I would prefer it personally. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the PR almost done, or far from done?
// UpdateIssueLabel change issue's labels | ||
func UpdateIssuePriority(ctx *context.Context) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
label or priority?
Below code are for labels if I understand correctly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't updated function comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not only the comment, but the code in UpdateIssuePriority are all for ClearLabels/AddLabel/RemoveLabel.
ctx.Data["PageIsLabels"] = true | ||
|
||
if ctx.HasError() { | ||
ctx.Flash.Error(ctx.Data["ErrorMsg"].(string)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HasError already has the logic ctx.Flash.ErrorMsg = ctx.Data["ErrorMsg"].(string)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is copy paste from labels.
In the future a migration could be made to switch from specific priorities over to labels, so we aren't locked into this specific direction. |
Closing per discussion in chat. |
No description provided.