☙◦ The Tablet ❀ GamerGirlandCo ◦❧
92ff4a62f2
refactor: update group API endpoints to use ctx.RepoGroup.Group
2026-05-08 18:58:08 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
92df65f9c5
fix: ensure group service populates the sort order of newly created groups
2026-05-08 18:58:07 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
496140d537
refactor: update groupAssignment func
...
ensure that groups that have private parents remain inaccessible
2026-05-08 18:58:07 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
d9c8a28a5f
refactor: cherry pick addition of RepoGroup field to both web and api contexts
2026-05-08 18:58:07 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
dc376ee7e7
refactor: update group model package
...
- add `CanAccessUnitAtLevel` method to check if a user has access to a unit in a group
- update `CanAccessAtLevel` to wrap `CanAccessUnitAtLevel`
- update `IsOwnedBy`, `IsAdminOf` and `CanCreateIn` methods to use existing cond builders
- update `universalGroupPermBuilder` func to take a flag that dictates whether admin users should be taken into consideration
- add `IsPrivateBecauseOfParentPermissions` method that checks if a group should be hidden because its parent is private/inaccessible
- add `GetGroupByIDAndCond` method to find a group matching an ID and cond
- make `GetGroupByRepoID` more efficient by replacing `where ... in` with join
- ensure that `MoveGroup` updates each subgroup's sort order in the new parent
- add `GetOwnerByGroupID` func that returns the owner of a group
2026-05-08 18:58:06 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
a8e886822a
refactor: overhaul group integration tests to be more robust
2026-05-08 18:58:06 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
341c7a1255
refactor: cleanup some redundant/unnecessary function calls
2026-05-08 18:58:06 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
0af8cacd4d
refactor: add permission denied error type to group model package
2026-05-08 18:58:05 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
aaa7e46da5
fix: error on non-sqlite dbs
2026-05-08 18:58:05 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
40db7688d1
fix: unused import
2026-05-08 18:58:05 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
fd08b21d37
refactor: update api group integration test
2026-05-08 18:58:05 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
843950818e
refactor: add reqOrgAdmin middleware, update broken /orgs/{org}/groups/new endpoint
2026-05-08 18:58:04 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
675bdf8eee
fix: update/rework accessible group query conditions
2026-05-08 18:58:04 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
deca66b960
fix middleware order for group/team api
2026-05-08 18:58:03 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
623ce95c71
fix another group integration test
2026-05-08 18:58:01 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
a1aa8cfe86
fix request url in group integration test
2026-05-08 18:58:01 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
55b7b1f711
fix test failure during org/group seeding
2026-05-08 18:57:58 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
9a6dd97153
fix lint errors
2026-05-08 18:57:55 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2785f6180f
run formatter
2026-05-08 18:57:55 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
3e45ab677b
update swagger definitions
2026-05-08 18:57:55 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
17762c25ac
fix: missing request body payload
2026-05-08 18:57:54 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
98955e607d
refactor: update integration tests
2026-05-08 18:57:53 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
7b47ece487
feat: add api routes to add/update/remove teams to/from repo groups
2026-05-08 18:57:53 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
d92dc9e79b
refactor: update team add/remove/update logic in group service
2026-05-08 18:57:53 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
318a19187d
fix: update group service unit tests
2026-05-08 18:57:52 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
1c49bbeff7
fix: more failing tests
2026-05-08 18:57:52 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
30960026df
fix: add missing group id env variable when executing hooks
2026-05-08 18:57:51 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
6b5e17369f
fix: lint errors
2026-05-08 18:57:51 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
c3f1730960
update swagger definitions
2026-05-08 18:57:51 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
259d79a96d
fix: build errors after rebase
2026-05-08 18:57:50 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
e9d3888258
fix: add group id to repoAssignmentPrepareDataStruct struct, fix undefined references to gid variable in assignment funcs
2026-05-08 18:57:50 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
e1bf87833e
re-add repo group migration
2026-05-08 18:57:49 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
777eb9bc86
refactor: refactor head repo parsing to take into account repo groups
2026-05-08 18:57:49 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
83c08e3a91
fix compilation errors after rebase
2026-05-08 18:57:48 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
93955ad026
run formatter
2026-05-08 18:57:48 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
5df99c7580
fix build errors
2026-05-08 18:57:48 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
5f032aef6f
update swagger definitions
2026-05-08 18:57:47 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
657d35a3c5
update migrations
2026-05-08 18:57:47 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
b7a8287625
feat: add some integration tests
2026-05-08 18:57:46 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
ed0b631a2a
feat: add endpoint to retrieve root-level groups in org
2026-05-08 18:57:46 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
523ba22f0a
fix: update CanAccessAtLevel func
...
ensure that public groups can always be accessed if requested level == read
2026-05-08 18:57:46 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
acf2a3fa1a
fix: update accessible group cond
...
ensure that org owners and site admins can always see all groups
2026-05-08 18:57:45 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
06cc826987
refactor: update fixture items
...
- add new org which owns all testing repo groups
- create new repositories, teams and team units in this org
2026-05-08 18:57:45 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
ed516115e8
refactor: update tests
...
use the correct number of arguments when calling certain functions which take a group ID like `RepoPath`
2026-05-08 18:57:45 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
54b2b1c079
revert: fixture and test changes
...
give all existing fixture repos a group id of 0
2026-05-08 18:57:44 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
b76045170a
update test fixtures
2026-05-08 18:57:43 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
169f634e80
fix failing tests
2026-05-08 18:57:43 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
ed58ce50d6
fix group team unit query
2026-05-08 18:57:43 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
5898c97302
update GetUserRepoPermission
...
ensure we check the parent group's unit permissions as well
2026-05-08 18:57:43 -04:00
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
8713c235e9
add function to find teams a user is part of within a group
2026-05-08 18:57:42 -04:00