jojo/models/organization
limiting-factor d2acd4f14c chore: split AddRepository and AddTeamMember to return the inserted value (#11342)
Split [AddRepository][0] and [AddTeamMember][1] to functions that return the inserted value. These can be used by the F3 driver to obtain the ID of the TeamRepo and TeamUser rows inserted in the database.

Add test coverage for both functions and remove a duplicated test. Integration tests also already [make use of AddRepository and AddTeamMember][2] indirectly.

[0]: f8bee35e77/models/org_team.go (L26)
[1]: f8bee35e77/models/org_team.go (L359)
[2]: f8bee35e77/tests/integration/api_helper_for_declarative_test.go (L461-L483)

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11342
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: limiting-factor <limiting-factor@posteo.com>
Co-committed-by: limiting-factor <limiting-factor@posteo.com>
2026-03-11 03:40:32 +01:00
..
TestFindOrgs fix: show membership of limited orgs 2025-06-06 19:33:26 +02:00
TestInconsistentOwnerTeam [BUG] Don't allow owner team with incorrect unit access 2024-10-11 14:48:47 +02:00
main_test.go chore: move all test blank imports in a single package (#10662) 2026-01-02 05:32:32 +01:00
org.go refactor: replace ActionRunnerToken.OwnerID & RepoID with optional.Option[int64] (#11601) 2026-03-10 03:19:16 +01:00
org_list.go fix(ui): wrong org dashboard links when switching dashboard context (#8688) 2025-08-07 14:32:55 +02:00
org_list_test.go fix(ui): wrong org dashboard links when switching dashboard context (#8688) 2025-08-07 14:32:55 +02:00
org_repo.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
org_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
org_user.go fix: UserTypeRemoteUser is an eligible organization member (#11326) 2026-02-17 02:39:46 +01:00
org_user_test.go fix: UserTypeRemoteUser is an eligible organization member (#11326) 2026-02-17 02:39:46 +01:00
team.go feat(ui): add links to review request targets in issue comments (#8239) 2025-07-23 04:45:58 +02:00
team_invite.go chore: unify the usage of CryptoRandomString (#10110) 2025-11-15 13:24:53 +01:00
team_invite_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
team_list.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
team_repo.go chore: split AddRepository and AddTeamMember to return the inserted value (#11342) 2026-03-11 03:40:32 +01:00
team_test.go feat(ui): add links to review request targets in issue comments (#8239) 2025-07-23 04:45:58 +02:00
team_unit.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
team_user.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00