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

dependencies: upgrading to v0.17.0 of github.com/hashicorp/go-azure-helpers #14060

Merged
merged 3 commits into from
Nov 5, 2021

Conversation

tombuildsstuff
Copy link
Contributor

This PR:

  • Updates to v0.17.0 of github.com/hashicorp/go-azure-helpers
  • Updates to v2.8.0 of github.com/hashicorp/terraform-plugin-sdk
  • Updates the location package to use the upstream commonschema common location schema

v0.17.0 of GoAzureHelpers intentionally moves some files around so there is a breaking change in here which is why this is pretty large - however I've split this into commits, so commit-by-commit this should be fairly clear.

Copy link
Contributor

@koikonom koikonom left a comment

Choose a reason for hiding this comment

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

LGTM

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.

The schema on some functions and not others i called out in my late review on hashicorp/go-azure-helpers#85 - as well as my concerns with how the pointer functions wording is confusing to read

StateFunc: StateFunc,
DiffSuppressFunc: DiffSuppressFunc,
}
return commonschema.LocationSchema()
Copy link
Collaborator

@katbyte katbyte Nov 5, 2021

Choose a reason for hiding this comment

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

does it make sense to have schema on the function name? other functions in there don't?

return commonschema.Location()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

(as discussed) will pick this off OOB in the next helpers release

Comment on lines +14 to +22
return commonschema.LocationSchemaOptional()
}

func SchemaComputed() *pluginsdk.Schema {
return &pluginsdk.Schema{
Type: pluginsdk.TypeString,
Computed: true,
}
return commonschema.LocationSchemaComputed()
}

// Schema returns the Schema which should be used for Location fields
// where these are Required and can be changed
func SchemaWithoutForceNew() *pluginsdk.Schema {
return &pluginsdk.Schema{
Type: pluginsdk.TypeString,
Required: true,
ValidateFunc: EnhancedValidate,
StateFunc: StateFunc,
DiffSuppressFunc: DiffSuppressFunc,
}
return commonschema.LocationSchemaWithoutForceNew()
Copy link
Collaborator

Choose a reason for hiding this comment

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

and here

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.

As discussed approving for now - will address comments in a future pr

@tombuildsstuff
Copy link
Contributor Author

Sanity check tests pass:

Screenshot 2021-11-05 at 19 01 59

@tombuildsstuff tombuildsstuff merged commit b0b8afc into main Nov 5, 2021
@tombuildsstuff tombuildsstuff deleted the f/go-azure-helpers-v0.17 branch November 5, 2021 18:03
tombuildsstuff added a commit that referenced this pull request Nov 5, 2021
@github-actions
Copy link

This functionality has been released in v2.85.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!

@github-actions
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 Dec 13, 2021
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