-
Notifications
You must be signed in to change notification settings - Fork 89
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
DXCDT-351: Only send changed fields when updating a user #453
Conversation
|
||
if d.IsNewResource() { | ||
user.ID = value.String(config.GetAttr("user_id")) | ||
} | ||
if d.IsNewResource() || d.HasChange("email") { |
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.
The d.IsNewResource
is unnecessary as the d.HasChange
will also trigger when this is a new resource needing to be created.
Codecov ReportBase: 87.16% // Head: 87.02% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #453 +/- ##
==========================================
- Coverage 87.16% 87.02% -0.15%
==========================================
Files 42 42
Lines 9264 9277 +13
==========================================
- Hits 8075 8073 -2
- Misses 914 924 +10
- Partials 275 280 +5
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Can this also be applied to other resources? |
Can you provide a little context for this change? Including the issue that this solves? |
🔧 Changes
We're trying to always push an update to the Users API with
name
,given_name
,family_name
andnickname
within the payload.These unfortunately cannot be present in the payload if the connection is not a db or passwordless connection or if the Sync user profile attributes at each login is toggled on. For more info you can read auth0.com/docs/manage-users/user-accounts/user-profiles/configure-connection-sync-with-auth0.
📚 References
🔬 Testing
📝 Checklist