-
Notifications
You must be signed in to change notification settings - Fork 178
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
refactor: Removes unused RootDiskSize field and simplify ExtraAPIInfo construction #2974
Conversation
Manual run in QA: https://github.com/mongodb/terraform-provider-mongodbatlas/actions/runs/12808761623 |
} | ||
if forceLegacySchema { |
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.
nice refactor
* master: refactor: Remove unused RootDiskSize field and simplify ExtraAPIInfo construction (#2974)
ZoneNameReplicationSpecIDs: replicationSpecIDsFromOldAPI(clusterRespOld), | ||
ForceLegacySchemaFailed: forceLegacySchemaFailed, | ||
ZoneNameNumShards: numShardsMapFromOldAPI(clusterRespOld), |
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.
it's hard to follow the why of these PRs, but it looks like the logic of this code now is changing and ZoneNameNumShards
is always being set by the numShardsMapFromOldAPI
method. Is that correct?
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.
it's to simplify the logic and don't rely on the plan in some scenarios as we can always rely on the Atlas response to do this. yes, numShardsMapFromOldAPI will always be used
Description
Removes unused RootDiskSize field and simplify ExtraAPIInfo construction
Link to any related issue(s):
Type of change:
Required Checklist:
Further comments