forgejo/services
Ashley Nelson e504410708
Update milestone counters when issue is deleted (#21459) (#21586)
Backports #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.

Co-authored-by: 6543 <6543@obermui.de>
2022-10-26 15:44:05 +08:00
..
agit move agit dependcy (#19998) 2022-06-17 20:17:12 +02:00
asymkey Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
attachment Move almost all functions' parameter db.Engine to context.Context (#19748) 2022-05-20 22:08:52 +08:00
auth SessionUser protection against nil pointer dereference (#21581) 2022-10-24 20:05:35 +01:00
automerge Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
comments Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
context Move almost all functions' parameter db.Engine to context.Context (#19748) 2022-05-20 22:08:52 +08:00
cron Move some code into models/git (#19879) 2022-06-12 23:51:54 +08:00
externalaccount Refactor auth package (#17962) 2022-01-02 21:12:35 +08:00
forms Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
gitdiff Ignore error when retrieving changed PR review files (#21487) (#21524) 2022-10-20 23:25:54 +08:00
issue Update milestone counters when issue is deleted (#21459) (#21586) 2022-10-26 15:44:05 +08:00
lfs Prevent Authorization header for presigned LFS urls (#21531) (#21569) 2022-10-24 11:18:31 +08:00
mailer Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
migrations Foreign ID conflicts if ID is 0 for each item (#21271) (#21272) 2022-10-02 17:43:30 -04:00
mirror Always try to fetch repo for mirrors (#19975) 2022-06-15 23:58:44 +08:00
org Move almost all functions' parameter db.Engine to context.Context (#19748) 2022-05-20 22:08:52 +08:00
packages Use correct context to get package content (#20673) (#20676) 2022-08-05 14:55:16 -04:00
pull Do DB update after merge in hammer context (#21401) (#21416) 2022-10-12 15:52:21 +08:00
release Add more checks in migration code (#21011) (#21050) 2022-09-04 08:41:21 -05:00
repository Fix incorrect notification commit url (#21479) (#21483) 2022-10-18 15:46:13 +08:00
task Use a more general (and faster) method to sanitize URLs with credentials (#19239) 2022-03-31 10:25:40 +08:00
user Move almost all functions' parameter db.Engine to context.Context (#19748) 2022-05-20 22:08:52 +08:00
webhook Display total commit count in hook message (#21400) (#21481) 2022-10-17 10:37:44 -04:00
wiki Move some helper files out of models (#19355) 2022-05-08 18:46:32 +02:00