Skip to content
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

Remove the useless function GetUserIssueStats and move relevant tests to indexer_test.go #27067

Merged
merged 6 commits into from
Sep 14, 2023

Conversation

lng2020
Copy link
Member

@lng2020 lng2020 commented Sep 14, 2023

Since the issue indexer has been refactored, the issue overview webpage is built by the buildIssueOverview function and underlying indexer.Search function and GetIssueStats instead of GetUserIssueStats. So the function is no longer used.
I moved the relevant tests to indexer_test.go and since the search option changed from IssueOptions to SearchOptions, most of the tests are useless now.
We need more tests about the db indexer because those tests are highly connected with the issue overview webpage and now this page has several bugs.
Any advice about those test cases is appreciated.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Sep 14, 2023
@pull-request-size pull-request-size bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Sep 14, 2023
@lunny lunny requested a review from wolfogre September 14, 2023 04:08
@lunny lunny added the type/refactoring Existing code has been cleaned up. There should be no new functionality. label Sep 14, 2023
@lng2020 lng2020 changed the title Remove the useless function GetIssueStats and move relevant tests to indexer_test.go Remove the useless function GetUserIssueStats and move relevant tests to indexer_test.go Sep 14, 2023
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Sep 14, 2023
@GiteaBot GiteaBot 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 Sep 14, 2023
@lunny lunny added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Sep 14, 2023
@techknowlogick techknowlogick merged commit 0de09d3 into go-gitea:main Sep 14, 2023
25 checks passed
@GiteaBot GiteaBot added this to the 1.22.0 milestone Sep 14, 2023
@GiteaBot GiteaBot removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Sep 14, 2023
@techknowlogick techknowlogick modified the milestones: 1.22.0, 1.21.0 Sep 14, 2023
@lng2020 lng2020 deleted the move_code branch September 15, 2023 02:56
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Dec 13, 2023
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. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. 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.

7 participants