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

INTMDB-155: Fixes a bug related to bi_connector cluster by deprecating #423

Merged
merged 4 commits into from
Mar 29, 2021

Conversation

coderGo93
Copy link
Contributor

@coderGo93 coderGo93 commented Mar 24, 2021

Description

  • Deprecated the parameter bi_connector and added parameter bi_connector_config to avoid a behavior bug of update in change in terraform version 14
  • Added test TestAccResourceMongoDBAtlasCluster_WithBiConnectorGCP

Link to any related issue(s):

Type of change:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Documentation fix/enhancement

Required Checklist:

  • I have signed the MongoDB CLA
  • I have read the Terraform contribution guidelines
  • I have added tests that prove my fix is effective or that my feature works per HashiCorp requirements
  • I have added any necessary documentation (if appropriate)
  • I have run make fmt and formatted my code

Further comments

@coderGo93 coderGo93 self-assigned this Mar 24, 2021
@themantissa
Copy link
Collaborator

Fixes #364

Copy link
Contributor

@leofigy leofigy left a comment

Choose a reason for hiding this comment

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

LGTM, the Type List with max 1 did the work

@themantissa
Copy link
Collaborator

@coderGo93 so is this just part of the fix for #364 then? This would fix for those using bi connector but not for those just with it in state that I can see?

@coderGo93
Copy link
Contributor Author

@themantissa It would fix for both, since it's different type now in schema like mentioned here and deprecated and it would require to re-apply to make changes in state since the bi_connector would be deprecated but after that it won't appear more changes in terraform version 14 like terraform v13 or before for bi_connector_config and the old parameter bi_connector would be ignored if not using otherwise it would get a warning about deprecation

@themantissa
Copy link
Collaborator

Thank you clarifying @coderGo93

Copy link
Collaborator

@themantissa themantissa left a comment

Choose a reason for hiding this comment

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

LGTM but just make sure we link the reporting issue so it closes once this is merged. Thanks!

@coderGo93 coderGo93 added the run-testacc To run acceptance tests label Mar 26, 2021
@coderGo93 coderGo93 merged commit d3a25a5 into master Mar 29, 2021
@coderGo93 coderGo93 deleted the INTMDB-155 branch March 29, 2021 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-testacc To run acceptance tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants