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
Ashley Nelson 82ecd3b19e
Update milestone counters when issue is deleted (#21459)
When actions besides "delete" are performed on issues, the milestone
counter is updated. However, since deleting issues goes through a
different code path, the associated milestone's count wasn't being
updated, resulting in inaccurate counts until another issue in the same
milestone had a non-delete action performed on it.

I verified this change fixes the inaccurate counts using a local docker
build.

Fixes #21254

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2 years ago
..
agit Add more linters to improve code readability (#19989) 3 years ago
asymkey Refactor AssertExistsAndLoadBean to use generics (#20797) 3 years ago
attachment Refactor AssertExistsAndLoadBean to use generics (#20797) 3 years ago
auth SessionUser protection against nil pointer dereference (#21358) 2 years ago
automerge Add more linters to improve code readability (#19989) 3 years ago
comments Move issues related files into models/issues (#19931) 3 years ago
context Move almost all functions' parameter db.Engine to context.Context (#19748) 3 years ago
cron Add system setting table with cache and also add cache supports for user setting (#18058) 2 years ago
externalaccount Refactor auth package (#17962) 3 years ago
forms Limit length of repo description and repo url input fields (#21119) 3 years ago
gitdiff Ignore error when retrieving changed PR review files (#21487) 2 years ago
issue Update milestone counters when issue is deleted (#21459) 2 years ago
lfs Prevent Authorization header for presigned LFS urls (#21531) 2 years ago
mailer Add team member invite by email (#20307) 2 years ago
migrations Add system setting table with cache and also add cache supports for user setting (#18058) 2 years ago
mirror Add system setting table with cache and also add cache supports for user setting (#18058) 2 years ago
org move invite by mail to services package (#21513) 2 years ago
packages Replace `ServeStream` with `ServeContent` (#20903) 3 years ago
pull Add generic set type (#21408) 2 years ago
release Do not send notifications for draft releases (#21451) 2 years ago
repository Make every not exist error unwrappable to a fs.ErrNotExist (#20891) 2 years ago
task Move some files into models' sub packages (#20262) 3 years ago
user Add system setting table with cache and also add cache supports for user setting (#18058) 2 years ago
webhook Decouple HookTask from Repository (#17940) 2 years ago
wiki Add system setting table with cache and also add cache supports for user setting (#18058) 2 years ago