-
Notifications
You must be signed in to change notification settings - Fork 190
fix: Incompatible schema defined for mongodbatlas_backup_compliance_policy
#1799
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
98a5703
chore: Add tfplugindocs & tfplugingen-openapi to the dev tools
andreaangiolillo fdff203
fix: incompatible schema defined for mongodbatlas_backup_compliance_p…
andreaangiolillo 999e505
Update GNUmakefile
andreaangiolillo b4c9fa1
fix test
andreaangiolillo 21c34c2
Merge remote-tracking branch 'origin/master' into CLOUDP-220384
andreaangiolillo ec7f2db
Merge remote-tracking branch 'origin/master' into CLOUDP-220384
andreaangiolillo be074ec
addressed PR comment
andreaangiolillo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
any potential breaking changes ? or plan change detections?
I am asking to make sure you've done some extra testing.
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.
while I do not see a risk in this change as project_id is documented as the only argument for the data source, we should consider also fixing inconsistencies present in
policy_item_hourly
,policy_item_daily
,policy_item_weekly
andpolicy_item_monthly
which are not defined as computed. Error seems to only be raised inon_demand_policy_item
because all nested attributes are computed.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.
@AgustinBettati All the
policy_item_*
fields have a few required parameters such asretention_unit
andretention_value
which is the reason why we are not getting the error for them.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.
@marcosuma I was able to test locally that this is not a breaking change.
Testing scenario:
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.
Just to be sure, is it possible that the relevant data source
backup_compliance_policy
was not tested in the above test configuration?Correct, I was bringing this up as I don't see why there should be optional or required attributes given that they should not be defined in the configuration of the data source. All of them should be computed except for
project_id
which is the only argument for using the data source.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.
ops, I copied/pasted the wrong conf 🤦 I updated my message. Thanks!
Thanks for the clarification. I agree, I updated the schema to make them computed as well. I also retested the new changes with the TF conf and no changes where detected. Thanks!