aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorsinguliere <35190819+singuliere@users.noreply.github.com>2022-02-17 18:57:05 +0100
committerGitHub <noreply@github.com>2022-02-17 17:57:05 +0000
commit458239b46d16987a8df19e5bd68d1838435f994d (patch)
tree6fff92c712daa1a3b4c239095029427798e2aa1f /modules
parentae85ee1c6f0447478a66301bc21afc4e59053561 (diff)
downloadgitea-458239b46d16987a8df19e5bd68d1838435f994d.tar.gz
gitea-458239b46d16987a8df19e5bd68d1838435f994d.zip
remove redundant call to UpdateRepoStats during migration (#18591) (#18794)
There is no need to call UpdateRepoStats in the InsertIssues and InsertPullRequests function. They are only called during migration by the CreateIssues and CreateReviews methods of the gitea uploader. The UpdateRepoStats function will be called by the Finish method of the gitea uploader after all reviews and issues are inserted. Calling it before is therefore redundant and the associated SQL requests are not cheap. The statistics tests done after inserting an issue or a pull request are also removed. They predate the implementation of UpdateRepoStats, back when the calculation of the statistics was an integral part of the migration function. The UpdateRepoStats is now tested independantly and these tests are no longer necessary. Signed-off-by: singuliere <singuliere@autistici.org> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'modules')
0 files changed, 0 insertions, 0 deletions