You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/services
Aravinth Manivannan 076cead40d
Fix CheckRepoStats and reuse it during migration (#18264)
The CheckRepoStats function missed the following counters:

- label num_closed_issues & num_closed_pulls
- milestone num_closed_issues & num_closed_pulls

The update SQL statements for updating the repository
num_closed_issues & num_closed_pulls fields were repeated in three
functions (repo.CheckRepoStats, migrate.insertIssues and
models.Issue.updateClosedNum) and were moved to a single helper.

The UpdateRepoStats is implemented and called in the Finish migration method so that it happens immediately instead of wating for the
CheckRepoStats to run.

Signed-off-by: Loïc Dachary loic@dachary.org

---
[source](https://lab.forgefriends.org/forgefriends/forgefriends/-/merge_requests/34)
2 years ago
..
agit Fix various typos (#18219) 3 years ago
asymkey Refactor auth package (#17962) 3 years ago
attachment Simplify parameter types (#18006) 3 years ago
auth Support webauthn (#17957) 2 years ago
comments Move repository model into models/repo (#17933) 3 years ago
cron Some repository refactors (#17950) 3 years ago
externalaccount Refactor auth package (#17962) 3 years ago
forms Support webauthn (#17957) 2 years ago
gitdiff Fix various typos (#18219) 3 years ago
issue Simplify parameter types (#18006) 3 years ago
lfs Support webauthn (#17957) 2 years ago
mailer Add option to convert CRLF to LF line endings for sendmail (#18075) 3 years ago
migrations Fix CheckRepoStats and reuse it during migration (#18264) 2 years ago
mirror Some repository refactors (#17950) 3 years ago
org Move repository model into models/repo (#17933) 3 years ago
pull Fix various typos (#18219) 3 years ago
release Set HeadCommit when creating tags. (#18116) 3 years ago
repository Fix NPE on try to get tag reference via API (#18245) 2 years ago
task Some repository refactors (#17950) 3 years ago
user Move keys to models/asymkey (#17917) 3 years ago
webhook Add replay of webhooks. (#18191) 3 years ago
wiki Fix various typos (#18219) 3 years ago