1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00
gitea/models/issues
Jason Song e93a4a0174
Fix issue/PR numbers (#22037) (#22045)
Backport #22037.

When deleting a closed issue, we should update both `NumIssues`and
`NumClosedIssues`, or `NumOpenIssues`(`= NumIssues -NumClosedIssues`)
will be wrong. It's the same for pull requests.

Releated to #21557.

Alse fixed two harmless problems:

- The SQL to check issue/PR total numbers is wrong, that means it will
update the numbers even if they are correct.
- Replace legacy `num_issues = num_issues + 1` operations with
`UpdateRepoIssueNumbers`.
2022-12-06 22:15:38 +08:00
..
assignees_test.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
assignees.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
comment_list.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
comment_test.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
comment.go Fix issues count bug (#21600) 2022-10-26 20:42:45 +08:00
content_history_test.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
content_history.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
dependency_test.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
dependency.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
issue_index.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
issue_list_test.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
issue_list.go Display project in issue list (#20583) 2022-08-02 17:14:31 +03:00
issue_lock.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
issue_project.go Fix missed sort bug (#21006) 2022-08-31 23:40:29 +08:00
issue_test.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
issue_user_test.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
issue_user.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
issue_watch_test.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
issue_watch.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
issue_xref_test.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
issue_xref.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
issue.go Fix issue/PR numbers (#22037) (#22045) 2022-12-06 22:15:38 +08:00
label_test.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
label.go Fix org label open count, including close count issue (#20364) 2022-07-14 03:42:46 +01:00
main_test.go Move tests as seperate sub packages to reduce duplicated file names (#19951) 2022-06-15 09:02:00 +02:00
milestone_test.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
milestone.go Modify milestone search keywords to be case insensitive (#20266) (#20498) 2022-07-27 19:55:09 +08:00
pull_list.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
pull_test.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
pull.go Fix checks in PR for empty commits (#20290) (#20352) 2022-07-13 18:36:23 +01:00
reaction_test.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
reaction.go Fix reaction of issues (#21185) (#21196) 2022-09-18 12:04:09 +08:00
review_test.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
review.go Dismiss prior pull reviews if done via web in review dismiss (#20197) (#20407) 2022-07-19 17:46:33 +02:00
stopwatch_test.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
stopwatch.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
tracked_time_test.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
tracked_time.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00