-
-
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
Fix project issues list and counting #33594
Fix project issues list and counting #33594
Conversation
1bc5c2c
to
5878ceb
Compare
|
||
// MustDefaultColumn returns the default column for a project, get the first one if exist one and creating one if it does not exist | ||
func (p *Project) MustDefaultColumn(ctx context.Context) (*Column, error) { | ||
c, err := p.getDefaultColumn(ctx) |
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.
The Desc(id)
in the called method seems incorrect.
Shouldn't it be Asc(sorting, id)
instead?
(even if it might be potentially minimally breaking if someone misconfigured their projects)
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 think it's already OrderBy("sorting, id")
?
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.
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 do not think it should change the existing logic in getDefaultColumn
The old logic means this: use the latest default one. It doesn't care about "sorting" or not. There should be only one "default" column, the "order by" is just a fallback.
Co-authored-by: delvh <dev.lh@web.de>
…a into lunny/fix_project_issues_list
Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* giteaofficial/main: Make actions URL in commit status webhooks absolute (go-gitea#33620) Refactor error system (go-gitea#33626) Move issue pin to an standalone table for querying performance (go-gitea#33452) Run spellcheck on tools directory (go-gitea#33627) Refactor error system (go-gitea#33610) Fix project issues list and counting (go-gitea#33594)
No description provided.