Skip to content

Conversation

6543
Copy link
Member

@6543 6543 commented May 29, 2022

as title

@6543 6543 added the type/refactoring Existing code has been cleaned up. There should be no new functionality. label May 29, 2022
@6543 6543 added this to the 1.17.0 milestone May 29, 2022
Copy link
Member

@delvh delvh left a 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
Copy link
Member

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)

@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label May 29, 2022
@lunny
Copy link
Member

lunny commented May 30, 2022

I think we can wait https://gitea.com/xorm/xorm/pulls/2149

@lunny lunny mentioned this pull request Jun 3, 2022
zeripath added a commit that referenced this pull request Jun 4, 2022
Upgrade builder to v0.3.11
Upgrade xorm to v1.3.1 and fixed some hidden bugs.

Replace #19821
Replace #19834
Included #19850

Co-authored-by: zeripath <art27@cantab.net>
@lunny
Copy link
Member

lunny commented Jun 5, 2022

replaced by #19849

@lunny lunny closed this Jun 5, 2022
@lunny lunny removed this from the 1.17.0 milestone Jun 5, 2022
@6543 6543 deleted the use-more-builder branch June 9, 2022 09:30
AbdulrhmnGhanem pushed a commit to kitspace/gitea that referenced this pull request Aug 24, 2022
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>
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/need 1 This PR needs approval from one additional maintainer to be merged. type/refactoring Existing code has been cleaned up. There should be no new functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants