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

mssql_elasticpool - support license_type #6631

Merged

Conversation

pearcec
Copy link
Contributor

@pearcec pearcec commented Apr 26, 2020

Adding license_type for ElasticPool similar to Database

  • tests
  • datasource
  • website

Might address #6587

Adding license_type for ElasticPool similar to Database
- tests
- datasource
- website

Might address hashicorp#6587
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.

Thanks for the pr @pearcec! LGTM 👍

Copy link
Contributor

@ArcturusZhang ArcturusZhang left a comment

Choose a reason for hiding this comment

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

Hi @pearcec thanks for this PR!
Overall this PR looks good, but I have some concerns on marking the license_type as Computed. Usually for optional attributes of enumerations, we will need to determine a default value for it, and service usually follows the same pattern by recognizing absence of the property as a default one. Would you please confirm whether this is valid for the license_type?
In the meantime, we will have to mark it as Computed if the return value of an absence license_type varies from different circumstances (for instance different sku with absence license_type returns with different license_type).
Thanks again for the great work on this!

@katbyte katbyte changed the title Add license_type for mssql_elasticpool resource and data mssql_elasticpool - suppoet license_type Apr 27, 2020
@katbyte katbyte added this to the v2.8.0 milestone Apr 27, 2020
cast properties.LicenseType to string to avoid potential type casting issues.

Co-Authored-By: Arcturus <ufo54153@gmail.com>
@pearcec
Copy link
Contributor Author

pearcec commented Apr 27, 2020

@ArcturusZhang thank you for the feedback, I am pushing some adjustments to the test, pulled in your change, and am looking for feedback on the Optional+Computed, vs Optional+Default.

@pearcec pearcec changed the title mssql_elasticpool - suppoet license_type mssql_elasticpool - support license_type Apr 27, 2020
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.

Thanks for the additional changes @pearcec! LGTM 2x 👍

@katbyte katbyte merged commit f1771bb into hashicorp:master Apr 28, 2020
katbyte added a commit that referenced this pull request Apr 28, 2020
@ghost
Copy link

ghost commented May 1, 2020

This has been released in version 2.8.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 2.8.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented May 29, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@hashicorp hashicorp locked and limited conversation to collaborators May 29, 2020
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.

None yet

3 participants