Skip to content

feat: support search bar on star tab of user profile. #917

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

Merged
merged 5 commits into from
Feb 14, 2017

Conversation

appleboy
Copy link
Member

@appleboy appleboy commented Feb 13, 2017

Update the repo format of star tab of user profile.

screen shot 2017-02-13 at 9 23 07 am

Origin: https://try.gitea.io/appleboy?tab=stars

screen shot 2017-02-13 at 9 25 07 am

@appleboy appleboy changed the title feat: support search bar on star tab of user profile. [WIP] feat: support search bar on star tab of user profile. Feb 13, 2017
@lunny lunny added this to the 1.1.0 milestone Feb 13, 2017
@lunny lunny added the type/feature Completely new functionality. Can only be merged if feature freeze is not active. label Feb 13, 2017
@appleboy appleboy changed the title [WIP] feat: support search bar on star tab of user profile. feat: support search bar on star tab of user profile. Feb 13, 2017
@lunny
Copy link
Member

lunny commented Feb 13, 2017

LGTM

@tboerger tboerger added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Feb 13, 2017
return nil, 0, fmt.Errorf("Repo: %v", err)
}

if opts.Starred {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

models/repo.go Outdated
sess = x.
Join("INNER", "star", "star.repo_id = repository.id").
Where("star.uid = ?", opts.OwnerID).
And("LOWER(lower_name) LIKE ?", "%"+opts.Keyword+"%")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need lower here? Sounds like it should already be lower

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Waiting testing.

@tboerger
Copy link
Member

I have not tested it but beside the single comment LGTM

@tboerger tboerger added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Feb 14, 2017
Signed-off-by: Bo-Yi Wu <[email protected]>
@lunny
Copy link
Member

lunny commented Feb 14, 2017

let L-G-T-M work

@lunny lunny merged commit 23aba52 into go-gitea:master Feb 14, 2017
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/feature Completely new functionality. Can only be merged if feature freeze is not active.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants