gitea/models/activities
oliverpool d547b53cca
Add container.FilterSlice function ()
Many places have the following logic:
```go
func (jobs ActionJobList) GetRunIDs() []int64 {
	ids := make(container.Set[int64], len(jobs))
	for _, j := range jobs {
		if j.RunID == 0 {
			continue
		}
		ids.Add(j.RunID)
	}
	return ids.Values()
}
```

this introduces a `container.FilterMapUnique` function, which reduces
the code above to:
```go
func (jobs ActionJobList) GetRunIDs() []int64 {
	return container.FilterMapUnique(jobs, func(j *ActionRunJob) (int64, bool) {
		return j.RunID, j.RunID != 0
	})
}
```
..
action.go Some performance optimization on dashboard and issues page ()
action_list.go Add container.FilterSlice function ()
action_test.go More `db.DefaultContext` refactor ()
main_test.go make writing main test easier ()
notification.go Move notifications to a standalone file ()
notification_list.go Performance improvements for pull request list page ()
notification_test.go Use db.Find instead of writing methods for every object ()
repo_activity.go Simplify how git repositories are opened ()
statistic.go Add more stats tables ()
user_heatmap.go More `db.DefaultContext` refactor ()
user_heatmap_test.go Refactor timeutil package ()