-
Notifications
You must be signed in to change notification settings - Fork 83
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
[1/2] DXCDT-457: Add auth0_organization_members
resource
#614
Conversation
auth0_organization_members
resourceauth0_organization_members
resource
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #614 +/- ##
==========================================
- Coverage 86.65% 86.51% -0.14%
==========================================
Files 77 78 +1
Lines 11896 12047 +151
==========================================
+ Hits 10308 10423 +115
- Misses 1213 1244 +31
- Partials 375 380 +5
|
return diag.FromErr(err) | ||
} | ||
|
||
data.SetId(organizationID) |
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.
Suggestion - perhaps set the ID after successfully assigning members to the org. That way you can remove the data.SetId("")
on line 76.
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.
While that might be nicer and tidier code wise, if the organization exists we should immediately set the ID of this resource IMO. Any error resulting from the AddMembers
call shouldn't erase the resource from the state (that's what happens if we don't set the ID).
9d1583d
to
e3933b9
Compare
e3933b9
to
14c962c
Compare
🔧 Changes
Add
auth0_organization_members
resource to manage the members of an organization in a 1:many resource. Members are added to the org data source in #615.📚 References
auth0_organization
data source #615🔬 Testing
📝 Checklist