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

azurerm_bot_service_azure_bot - send value for developer_app_insights_api_key #27280

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

stephybun
Copy link
Member

@stephybun stephybun commented Sep 4, 2024

Community Note

  • Please vote on this PR by adding a 👍 reaction to the original PR to help the community and maintainers prioritize for review
  • Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for PR followers and do not help prioritize for review

Description

The DiffSuppress on the property was preventing the config value for developer_app_insights_api_key from being read and subsequently set in the payload properly.

When tweaking the logic in the DiffSuppress I found that the logic required to correctly read the config value would result in a plan diff after applying because it wouldn't correctly suppress the diff anymore.

I've opted to remove the DiffSuppress entirely and set the value for this property in the read by taking it from the config like we do in other resources of the provider where sensitive properties aren't returned by the API.

When upgrading to a version that contains this fix users will receive an update in-place diff but it will be a no-op since the value for the property isn't changing. Applying the update will update the resource with the API key value as well as set it into state for the user. Given that this wasn't truly working at all previously, this should be acceptable for a minor release.

Testing

image

Change Log

Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.

  • azurerm_resource - support for the thing1 property [GH-00000]

This is a (please select all that apply):

  • Bug Fix
  • New Feature (ie adding a service, resource, or data source)
  • Enhancement
  • Breaking Change

Related Issue(s)

Fixes #0000

Note

If this PR changes meaningfully during the course of review please update the title and description as required.

Copy link
Member

@mbfrahry mbfrahry left a comment

Choose a reason for hiding this comment

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

LGTM

@katbyte katbyte merged commit 3714f08 into main Sep 5, 2024
29 checks passed
@katbyte katbyte deleted the b/azure-bot-api-key branch September 5, 2024 23:44
@github-actions github-actions bot added this to the v4.1.0 milestone Sep 5, 2024
katbyte added a commit that referenced this pull request Sep 5, 2024
Copy link

github-actions bot commented Oct 6, 2024

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.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants