-
Notifications
You must be signed in to change notification settings - Fork 192
chore: Removes all usages of MONGODB_ATLAS_ENABLE_PREVIEW
#3285
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
Conversation
3382d48
to
cbb1835
Compare
mig.SkipIfVersionBelow(t, "1.22.0") // this feature was introduced in provider version 1.21.0, plural data source schema was changed in 1.22.0 | ||
|
||
var description *string | ||
if mig.IsProviderVersionAtLeast("1.32.0") { | ||
description = descriptionPtr | ||
} | ||
|
||
mig.CreateAndRunTestNonParallel(t, basicTestCase(t, description)) |
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.
This fixes a test failure in our CI that was detected today (reference failure, #3276 which caused failure).
Older versions require the env variable to be defined, since this PR completely remove the usages of legacy env variable this test would start running again after 1.33.0 release. Don't see significant concern as this test has been passing up until today, and will start running again as soon as we do our next release.
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.
LGTM
@@ -27,13 +27,6 @@ To use a released provider in your Terraform environment, run [`terraform init`] | |||
|
|||
Documentation about the provider specific configuration options can be found on the [provider's website](https://www.terraform.io/docs/providers/). | |||
|
|||
## Preview Features |
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.
do we want to keep some generic Preview features doc, like each feature will have their own env.var?
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.
Had the same thought. Since we don't have a general purpose env var think it is okay to just call out in each specific resource as we currently do for advanced_cluster tfp (reference).
Description
Link to any related issue(s): CLOUDP-282801
MONGODB_ATLAS_ENABLE_PREVIEW
is no longer used after the GA of resource policies (#3276).Moving forwards preview features will be enabled with feature specific flags, as done with
MONGODB_ATLAS_PREVIEW_PROVIDER_V2_ADVANCED_CLUSTER
.Type of change:
Required Checklist:
Further comments