-
-
Notifications
You must be signed in to change notification settings - Fork 231
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
feat: Remove NONE
validation method and set default to null
#135
feat: Remove NONE
validation method and set default to null
#135
Conversation
NONE
validation method and default to null
NONE
validation method and set default to null
cloudflare = { | ||
source = "cloudflare/cloudflare" | ||
version = ">= 3.4" | ||
version = ">= 3.4, <=3.32" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Required to support min Terraform version 1.0.0. Fixes pre-commit failures.
Would it be better to create a non-breaking change which would just pass null to the underlying aws_acm_certificate resource if the argument passed was null? e.g.
|
@magreenbaum The PR looks fine to me, but I think with the suggestion mentioned by @peritz above the PR will be even better. What do you think about it? |
@peritz @antonbabenko I don't mind adding that but I can update both if we want to make this a completely non-breaking change though. |
You make a fair point @magreenbaum it's probably better to align with the underlying API, besides, since the underlying API changed the module has been broken trying to use "NONE" anyways, so I say go with your approach. @antonbabenko what's your thoughts? |
NONE
validation method and set default to null
NONE
validation method and set default to null
## [4.4.0](v4.3.2...v4.4.0) (2023-10-03) ### Features * Remove `NONE` validation method and set default to `null` ([#135](#135)) ([b76d53e](b76d53e))
This PR is included in version 4.4.0 🎉 |
Chaps. This PR is backwards breaking on the interface. Why is this being released on a minor release? Do we even semver? Almost everyone using DNS validation with this will have allowed the default to figure it out for them- when they apply, using BB safe versioning Why would we not make this backwards compatible if we have the choice? |
Just to be clear - you've released a minor version that will do the following when called with defaults in use:
This could have been entirely avoided by releasing a major version, or actually just making the module perform as expected.
This PR is entirely untested, but what would have been wrong with something like this? #139 |
Totally agree with @cypher7682 on this, we're having to add validation or pin to the previous version. This contains breaking changes and should've been released as a major version or made backwards compatible. |
@antonbabenko can we change the release to 5.0.0 since it's a breaking change? |
There's really no need to do that. This shouldn't have been a breaking change in the first place. I'm happy to run the tests on that example PR I linked and get it merged. But IMO the best route is to release a 4.4.1 which reverts the breaking change and squash 4.4.0 into it. The whole point of wrapping up the API in modules is that if the underlying API releases breaking changes, the module doesn't necessarily need to. There's no reason at all to "follow" someone else's conventions for the sake of it. Users don't give a hoot what the provider does, as long as the module 'just works ™️'. |
I've tested #139; the reinstatement of |
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 issues. 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. |
Description
Closes: #133
Motivation and Context
hashicorp/terraform-provider-aws#31455
Breaking Changes
Yes,
validation_method
default is nownull
since it's an optional argument and should be explicitly set toDNS
orEMAIL
if required.How Has This Been Tested?
examples/*
to demonstrate and validate my change(s)examples/*
projectspre-commit run -a
on my pull request