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

Refactor auth0_email and remove ForceNew on secret fields #304

Merged
merged 3 commits into from
Aug 29, 2022

Conversation

sergiught
Copy link
Contributor

@sergiught sergiught commented Aug 26, 2022

🔧 Changes

It was pointed out in #282 that for some reason any change within the secret values forces the resource to get deleted and recreated. I couldn't find any evidence or info as to why this mechanism was put in place like this. Even the secrets should be able to get updated in place without forcing a recreation of the resource as the email provider config is just a proxy to an actual external email provider.

📚 References

🔬 Testing

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@sergiught sergiught force-pushed the patch/issue#282-email-provider branch from 2971e97 to e2ed849 Compare August 26, 2022 14:10
@codecov-commenter
Copy link

codecov-commenter commented Aug 26, 2022

Codecov Report

Merging #304 (88c6d6f) into main (4e9ce4d) will increase coverage by 0.06%.
The diff coverage is 80.55%.

@@            Coverage Diff             @@
##             main     #304      +/-   ##
==========================================
+ Coverage   85.30%   85.36%   +0.06%     
==========================================
  Files          39       39              
  Lines        8269     8270       +1     
==========================================
+ Hits         7054     7060       +6     
+ Misses        964      957       -7     
- Partials      251      253       +2     
Impacted Files Coverage Δ
internal/provider/resource_auth0_email.go 90.10% <80.55%> (+2.81%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@sergiught sergiught marked this pull request as ready for review August 26, 2022 14:22
@sergiught sergiught requested a review from a team as a code owner August 26, 2022 14:22
@sergiught sergiught self-assigned this Aug 26, 2022
Copy link
Contributor

@willvedd willvedd left a comment

Choose a reason for hiding this comment

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

Yeah, makes sense to me. Don't see a clear reason why the ForceNew was added either 🤷‍♂️

@sergiught sergiught merged commit fa0fb32 into main Aug 29, 2022
@sergiught sergiught deleted the patch/issue#282-email-provider branch August 29, 2022 14:38
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