-
Notifications
You must be signed in to change notification settings - Fork 894
feat: add a paginated organization members endpoint #16835
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
cea4d3c
e97c9db
34003dc
9edb088
ef40967
6aaddaf
a724f48
4925592
902538c
06ff95c
560305d
76a4cbf
737ac9f
8910df3
0e579a2
73e356c
24332f4
7af0b60
cdc0322
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -987,18 +987,12 @@ func (s *MethodTestSuite) TestOrganization() { | |
})) | ||
s.Run("PaginatedOrganizationMembers", s.Subtest(func(db database.Store, check *expects) { | ||
o := dbgen.Organization(s.T(), db, database.Organization{}) | ||
u := dbgen.User(s.T(), db, database.User{}) | ||
mem := dbgen.OrganizationMember(s.T(), db, database.OrganizationMember{ | ||
OrganizationID: o.ID, | ||
UserID: u.ID, | ||
Roles: []string{rbac.RoleOrgAdmin()}, | ||
}) | ||
|
||
check.Args(database.PaginatedOrganizationMembersParams{ | ||
OrganizationID: uuid.UUID{}, | ||
OrganizationID: o.ID, | ||
LimitOpt: 1, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this different check means we also don't need this field any more There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Accidentally pushed some test code in the test so not sure which one you were looking at but that's needed. |
||
}).Asserts( | ||
mem, policy.ActionRead, | ||
rbac.ResourceOrganizationMember.InOrg(o.ID), policy.ActionRead, | ||
) | ||
})) | ||
s.Run("UpdateMemberRoles", s.Subtest(func(db database.Store, check *expects) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just throw a comment