1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 12:54:53 -05:00
forgejo/models/activities
Timon van der Berg 81308159fd Repo Activity: count new issues that were closed (#31776)
I'm new to go and contributing to gitea, your guidance is much
appreciated.

This is meant to solve https://github.com/go-gitea/gitea/issues/13309

Previously, closed issues would not be shown under new issues in the
activity tab, even if they were newly created.

changes:
* Split out newlyCreatedIssues from issuesForActivityStatement to count
  both currently open and closed issues.
* Use a seperate function to count active issues to prevent
double-counting issues after the above change.

Result is that new issues that have been closed are shown both under
"new" and "closed".

Signed-off-by: Timon van der Berg <tmnvanderberg@gmail.com>
(cherry picked from commit ebfde845294cc681de6b1fe1adcf27e35f61b89b)
(cherry picked from commit 2675a24649)
2024-09-27 08:13:30 +00:00
..
action.go Teach activities.GetFeeds() how to avoid returning duplicates 2024-05-09 18:33:33 +02:00
action_list.go Reduce unnecessary database queries on actions table (#30509) 2024-04-21 12:07:30 +02:00
action_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
notification.go Fix web notification icon not updated once you read all notifications (#31447) 2024-06-29 07:33:37 +02:00
notification_list.go simplify getPendingRepoIDs 2024-04-16 11:53:18 +02:00
notification_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
repo_activity.go Repo Activity: count new issues that were closed (#31776) 2024-09-27 08:13:30 +00:00
statistic.go Rename project board -> column to make the UI less confusing (#30170) 2024-06-02 09:42:39 +02:00
user_heatmap.go [CHORE] Remove Microsoft SQL Server Support 2024-04-05 23:37:36 +02:00
user_heatmap_test.go Fix linting issues 2024-08-18 16:25:13 +02:00