Skip to content

Conversation

@m-bull
Copy link
Contributor

@m-bull m-bull commented Dec 1, 2022

An API request to retrieve a list of all users and groups is subject to pagination, which can break assumptions if your object exists but is not returned in the first page results.

Query each user and group from the API directly, and then parse the result to distinguish between objects that are present or absent.

@m-bull m-bull requested a review from a team as a code owner December 1, 2022 19:12
@m-bull m-bull marked this pull request as draft December 1, 2022 19:22
@m-bull m-bull force-pushed the fix/user-group-pagination branch from 3dafe64 to 2a333be Compare December 1, 2022 19:55
@m-bull m-bull marked this pull request as ready for review December 1, 2022 20:11
@m-bull m-bull force-pushed the fix/user-group-pagination branch from 2a333be to 6d92efc Compare December 2, 2022 08:05
@m-bull m-bull force-pushed the fix/user-group-pagination branch from 6d92efc to 190167a Compare December 5, 2022 12:03
markgoddard
markgoddard previously approved these changes Dec 5, 2022
An API request to retrieve a list of all users and groups is subject
to pagination, which can break assumptions if your object exists
but is not returned in the first page results.

Query each user and group from the API directly, and then parse the
result to distinguish between objects that are present or absent.
@m-bull m-bull merged commit 3770f69 into master Dec 5, 2022
@m-bull m-bull deleted the fix/user-group-pagination branch December 5, 2022 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants