-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
r\application_insights fix workspace_id case that force recreation #19325
Conversation
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.
hey @mgattei
Thanks for this PR - I've taken a look through and left some comments inline, but if we can fix those up then this should be good to go. Whilst normally we'd ask for acceptance tests to cover this change, taking a look through it appears that the happy path is covered via the test TestAccApplicationInsights_basicWorkspaceMode
, so I think we should be good once this the comments are addressed 👍
Thanks!
internal/services/applicationinsights/application_insights_resource.go
Outdated
Show resolved
Hide resolved
Co-authored-by: Tom Harvey <[email protected]>
Thanks @tombuildsstuff for the review! I applied the suggestions and double checked locally, I also tried the test and seems ok. |
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.
LGTM - thanks for pushing those changes @mgattei
This functionality has been released in v3.33.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Fix #13348
Please note that this is my first contribution and my go knowledge is really basic.
This should fix the problem that terraform ask for recreation If the resource has a linked workspace.
Things tried before opening the PR: