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.
gitea/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)
3 years ago
..
agit
asymkey
attachment
auth Support webauthn (#17957) 3 years ago
comments
cron
externalaccount
forms Support webauthn (#17957) 3 years ago
gitdiff
issue
lfs Support webauthn (#17957) 3 years ago
mailer
migrations Fix CheckRepoStats and reuse it during migration (#18264) 3 years ago
mirror
org
pull
release
repository Fix NPE on try to get tag reference via API (#18245) 3 years ago
task
user
webhook
wiki