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_mysql_flexible_server_configuration - Remove ForceNew for value #22557

Merged
merged 8 commits into from
Jul 21, 2023

Conversation

neil-yechenwei
Copy link
Contributor

@neil-yechenwei neil-yechenwei commented Jul 17, 2023

fixes #22526

image

Copy link
Member

@jackofallops jackofallops left a comment

Choose a reason for hiding this comment

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

Hi @neil-yechenwei, thanks for this PR.

Can you create separate functions for Create and Update? In the future we'll need these to be correctly separated, so we shouldn't introduce further re-use here (even if the code is the same today).

Thanks

@@ -20,8 +20,9 @@ import (

func resourceMySQLFlexibleServerConfiguration() *pluginsdk.Resource {
return &pluginsdk.Resource{
Create: resourceMySQLFlexibleServerConfigurationCreate,
Create: resourceMySQLFlexibleServerConfigurationUpdate,
Copy link
Member

Choose a reason for hiding this comment

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

Can we have separate Create and Update methods here and not re-use, we will need this going forward in any case.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure. Updated.

image

@neil-yechenwei
Copy link
Contributor Author

@jackofallops , thanks for the comments. I've updated PR. Please take another look. Thanks.

Copy link
Member

@jackofallops jackofallops left a comment

Choose a reason for hiding this comment

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

Thanks for the updates @neil-yechenwei, just one comment in the tests and I think this will be good to go.

Thanks

Comment on lines 94 to 101
Config: r.template(data, "slow_query_log", "OFF"),
Check: acceptance.ComposeTestCheckFunc(
data.CheckWithClient(r.checkValue("OFF")),
),
},
data.ImportStep(),
{
Config: r.template(data, "slow_query_log", "ON"),
Copy link
Member

Choose a reason for hiding this comment

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

Can we follow the pattern here in the other tests rather than specifying the template directly? e.g. Config: r.characterSetServer(data),

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure. Updated.

image

@neil-yechenwei
Copy link
Contributor Author

neil-yechenwei commented Jul 18, 2023

@jackofallops , thanks for the comment. I've updated PR. Please take another look. Thanks.

Copy link
Collaborator

@katbyte katbyte 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 7191434 into hashicorp:main Jul 21, 2023
@github-actions github-actions bot added this to the v3.66.0 milestone Jul 21, 2023
katbyte added a commit that referenced this pull request Jul 21, 2023
Copy link

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 May 22, 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.

mysql_flexible_server_configuration value change forces replacement
3 participants