Skip to content

Conversation

lunny
Copy link
Member

@lunny lunny commented May 26, 2019

The new interface will make code easier to understand.

@lunny lunny added the type/refactoring Existing code has been cleaned up. There should be no new functionality. label May 26, 2019
@codecov-io
Copy link

codecov-io commented May 26, 2019

Codecov Report

Merging #7049 into master will increase coverage by 0.02%.
The diff coverage is 84.16%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7049      +/-   ##
==========================================
+ Coverage   41.72%   41.74%   +0.02%     
==========================================
  Files         443      443              
  Lines       60159    60149      -10     
==========================================
+ Hits        25103    25112       +9     
+ Misses      31780    31762      -18     
+ Partials     3276     3275       -1
Impacted Files Coverage Δ
modules/migrations/migrate.go 23.35% <0%> (ø) ⬆️
modules/migrations/git.go 52% <0%> (ø) ⬆️
modules/migrations/github.go 83.23% <89.38%> (+1.74%) ⬆️
models/gpg_key.go 56.66% <0%> (+0.83%) ⬆️
modules/log/event.go 65.98% <0%> (+1.52%) ⬆️
modules/log/file.go 77.62% <0%> (+2.09%) ⬆️
models/unit.go 67.56% <0%> (+5.4%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 43cf2f3...420ba72. Read the comment docs.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label May 26, 2019
func (g *PlainGitDownloader) GetIssues(start, limit int) ([]*base.Issue, error) {
return nil, ErrNotSupported
// GetIssues returns issues according page and PerPage
func (g *PlainGitDownloader) GetIssues(page, PerPage int) ([]*base.Issue, bool, error) {
Copy link
Member

Choose a reason for hiding this comment

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

pageSize would be better name imho

Suggested change
func (g *PlainGitDownloader) GetIssues(page, PerPage int) ([]*base.Issue, bool, error) {
func (g *PlainGitDownloader) GetIssues(page, pageSize int) ([]*base.Issue, bool, error) {

Copy link
Member Author

Choose a reason for hiding this comment

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

The name is from github's API document. :)

Copy link
Member

Choose a reason for hiding this comment

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

Method argument then should be at least lowercase first letter

@lunny lunny force-pushed the lunny/fix_github_downloader branch from bd1fe0e to 95781d7 Compare May 29, 2019 13:54
@lunny
Copy link
Member Author

lunny commented May 29, 2019

@lafriks done.

@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 May 29, 2019
@lafriks lafriks added this to the 1.9.0 milestone May 29, 2019
@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 May 30, 2019
@techknowlogick techknowlogick merged commit 7d12ec2 into go-gitea:master May 30, 2019
@lunny lunny deleted the lunny/fix_github_downloader branch May 31, 2019 03:40
jeffliu27 pushed a commit to jeffliu27/gitea that referenced this pull request Jul 18, 2019
* improve github downloader on migrations

* fix tests

* fix  uppercase function parameters
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 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/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.

6 participants