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

Fix pagination issue #143

Merged
merged 3 commits into from
Jan 22, 2024
Merged

Fix pagination issue #143

merged 3 commits into from
Jan 22, 2024

Conversation

reespozzi
Copy link
Contributor

@reespozzi reespozzi commented Jan 19, 2024

An issue was spotted (thanks @MartyFox) where app role group assignments were trying to be created when they already exist leading to an error.
Didn't show up during testing as they were new groups created and had no other role assignments

This is caused by a shortened response from graph api which didn't include the existing assignment so the code checking for it fell over.
This change parses all the group app role assignment results until a match is found or not, so that none are missed.

Tested this and fixes the current issue

  • commit messages are meaningful and follow good commit message guidelines
  • README and other documentation has been updated / added (if needed)
  • tests have been updated / new tests has been added (if needed)
  • Does this PR introduce a breaking change

@reespozzi reespozzi marked this pull request as ready for review January 19, 2024 15:45
@reespozzi reespozzi requested review from timja and MartyFox January 19, 2024 15:45
@reespozzi reespozzi merged commit 5e295ee into main Jan 22, 2024
1 check passed
@reespozzi reespozzi deleted the fix-pagination-issue branch January 22, 2024 09:32
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.

2 participants