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

Refine okta_group_memberships and improve documentation #1120

Merged
merged 4 commits into from
May 23, 2022

Conversation

monde
Copy link
Collaborator

@monde monde commented May 19, 2022

  • Adds new argument to data source okta_group allowing for a delay before the it does its API read
  • Refines and fully documents the behavior of checkIfGroupHasUsers in the okta_group_memberships resource
  • Improves the public documentation of okta_group_memberships resource
  • Includes an acceptance test that demonstrates how/where drift may occur with the okta_group_memberships resource

monde added 2 commits May 19, 2022 15:15
desired amount of time to perform its read in the API. This is useful in
testing and could benefit situations where guards on eventual group
consistency are needed.
`okta_group_memberships` resource.
Closes #1094
@@ -140,21 +151,33 @@ func checkIfGroupHasUsers(ctx context.Context, client *okta.Client, groupId stri
groupUsers = append(groupUsers, additionalUsers...)
}

// Create set of users
// We need to return false if there isn't any users present. For eventual
Copy link
Collaborator Author

@monde monde May 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@exitcode0 I think checkIfGroupHasUsers needs to exit early if no users are found here. See my notes in the commit about eventual consistency and the backoff used in create versus no backoff in read.

@monde monde requested a review from bretterer May 23, 2022 17:08
@monde monde merged commit 4677c7b into master May 23, 2022
@monde monde deleted the fix_1094_okta_group_memberships branch May 23, 2022 21:58
@monde
Copy link
Collaborator Author

monde commented May 24, 2022

Released as v3.28.0.

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