Skip to content
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

Add pagination when getting user groups #615

Merged
merged 3 commits into from
Aug 30, 2021

Conversation

BrentSouza
Copy link
Contributor

We have users with a lot of groups assigned. More than the 200 default limit. When getting groups, we're seeing transient errors due to whether or not a particular group we're interested in is present in that first set of 200. This will use the okta client's built in pagination support to keep fetching groups until there are no more pages.

@BrentSouza BrentSouza marked this pull request as ready for review August 30, 2021 16:18
@BrentSouza
Copy link
Contributor Author

I felt like including setup for an acceptance test that provisioned 200+ groups might be a bit much so I went with a unit test approach to verify the functionality. If we need to show this working via acceptance tests I can adjust.

@bogdanprodan-okta
Copy link
Contributor

I felt like including setup for an acceptance test that provisioned 200+ groups might be a bit much so I went with a unit test approach to verify the functionality. If we need to show this working via acceptance tests I can adjust.

That's fine as it is :)

@bogdanprodan-okta bogdanprodan-okta merged commit a41398f into okta:master Aug 30, 2021
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