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_spring_cloud_(customized)_accelerator - state migration to fix the ID casing #23749

Conversation

ms-henglu
Copy link
Contributor

@ms-henglu ms-henglu commented Nov 1, 2023

This PR adds state migration for azurerm_spring_cloud_accelerator and azurerm_spring_cloud_customized_accelerator, to update the ID segment from /Spring to /spring.

…accelerator` - state migration to fix the ID casing
Copy link
Collaborator

@magodo magodo left a comment

Choose a reason for hiding this comment

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

This PR LGTM! Thank you! While can we add some description to this PR about the motivation of the change?

@magodo magodo marked this pull request as ready for review November 1, 2023 02:53
Copy link
Member

@stephybun stephybun 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 this PR @ms-henglu. Overall this looks good - the schema can be condensed, I left a comment on that. Once that's done this should be good to go though.

And thanks for the review @magodo!

Comment on lines 44 to 46
ForceNew: true,
MaxItems: 1,
ConflictsWith: []string{"git_repository.0.ssh_auth"},
Copy link
Member

Choose a reason for hiding this comment

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

The state migration schemas don't require attributes like ForceNew, MaxItems, MinItems, ConflictsWith, Default, ExactlyOneOf, RequiredWith etc. since these aren't needed for deserializing the data. Can you please remove these from the schema?

Comment on lines 21 to 27
ForceNew: true,
},

"spring_cloud_service_id": {
Type: pluginsdk.TypeString,
Required: true,
ForceNew: true,
Copy link
Member

Choose a reason for hiding this comment

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

As above ForceNew can be removed here.

@ms-henglu
Copy link
Contributor Author

Hi @stephybun , thanks for the review, I've updated the schema.

Copy link
Member

@stephybun stephybun left a comment

Choose a reason for hiding this comment

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

Thanks @ms-henglu LGTM 👍

@stephybun stephybun merged commit b0a9a94 into hashicorp:main Nov 1, 2023
23 checks passed
@github-actions github-actions bot added this to the v3.79.0 milestone Nov 1, 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 10, 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