You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/models/activities
Gusted fd2c250b52
Don't return duplicated users who can create org repo (#22560) (#22562)
- Backport of #22560
- Currently the function `GetUsersWhoCanCreateOrgRepo` uses a query that
is able to have duplicated users in the result, this is can happen under
the condition that a user is in team that either is the owner team or
has permission to create organization repositories.
- Add test code to simulate the above condition for user 3,
[`TestGetUsersWhoCanCreateOrgRepo`](a1fcb1cfb8/models/organization/org_test.go (L435))
is the test function that tests for this.
  - The fix is quite trivial, use a map as a set to get distinct orgs.
2 years ago
..
action.go Use complete SHA to create and query commit status (#22244) (#22257) 2 years ago
action_list.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago
action_test.go Use absolute links in feeds (#21229) 2 years ago
main_test.go Move some files into models' sub packages (#20262) 3 years ago
notification.go Don't return duplicated users who can create org repo (#22560) (#22562) 2 years ago
notification_test.go Move some files into models' sub packages (#20262) 3 years ago
repo_activity.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago
statistic.go Move some files into models' sub packages (#20262) 3 years ago
user_heatmap.go Move some files into models' sub packages (#20262) 3 years ago
user_heatmap_test.go Move some files into models' sub packages (#20262) 3 years ago