-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Create a "Builder" to Order SQL by X #19834
Conversation
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.
Apart from CI fail LGTM.
--- FAIL: TestSearchRepository (0.14s)
--- FAIL: TestSearchRepository/OwnerSlashRepoSearch (0.00s)
repo_list_test.go:281:
Error Trace: repo_list_test.go:281
Error: Received unexpected error:
Repo: near "ORDER": syntax error
Test: TestSearchRepository/OwnerSlashRepoSearch
@@ -116,7 +117,7 @@ type SearchRepoOptions struct { | |||
OwnerID int64 | |||
PriorityOwnerID int64 | |||
TeamID int64 | |||
OrderBy db.SearchOrderBy | |||
OrderBy func(sess *xorm.Session) *xorm.Session | |||
Private bool // Include private repositories in results | |||
StarredByID int64 | |||
WatchedByID int64 |
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.
What I just noticed: Why do we have two times the same constants?
Once in db/search
, and once here in L172+?
(The comment is here because GitHub doesn't let me comment down below)
I think we can wait https://gitea.com/xorm/xorm/pulls/2149 |
replaced by #19849 |
Upgrade builder to v0.3.11 Upgrade xorm to v1.3.1 and fixed some hidden bugs. Replace go-gitea#19821 Replace go-gitea#19834 Included go-gitea#19850 Co-authored-by: zeripath <art27@cantab.net>
as title