0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-15 06:21:23 +01:00
gitea/models/activities
Timon van der Berg ebfde84529
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>
2024-09-21 18:57:01 +00:00
..
action.go Improve get feed with pagination (#31821) 2024-09-02 19:05:09 +00:00
action_list.go Reduce unnecessary database queries on actions table (#30509) 2024-04-17 01:25:03 +00:00
action_test.go Refactor webhook (#31587) 2024-07-10 11:37:16 +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-23 15:50:10 +08:00
notification_list.go Refactor more filterslice (#30370) 2024-04-10 04:18:41 +00:00
notification_test.go Use db.Find instead of writing methods for every object (#28084) 2023-11-24 03:49:41 +00:00
repo_activity.go Repo Activity: count new issues that were closed (#31776) 2024-09-21 18:57:01 +00:00
statistic.go Rename project board -> column to make the UI less confusing (#30170) 2024-05-27 08:59:54 +00:00
user_heatmap.go More db.DefaultContext refactor (#27265) 2023-09-29 12:12:54 +00:00
user_heatmap_test.go Refactor timeutil package (#28623) 2023-12-28 10:09:57 +00:00