-
Notifications
You must be signed in to change notification settings - Fork 34
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: Adds acceptDataRisksAndForceReplicaSetReconfig parameter in cluster and advanced cluster #518
Conversation
@@ -44,27 +44,28 @@ var _ AdvancedClustersService = &AdvancedClustersServiceOp{} | |||
|
|||
// AdvancedCluster represents MongoDB cluster. | |||
type AdvancedCluster struct { | |||
BackupEnabled *bool `json:"backupEnabled,omitempty"` | |||
BiConnector *BiConnector `json:"biConnector,omitempty"` |
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.
Can we avoid formatter changes?
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.
I'm not sure that can be done, it's go fmt because the new field name length is larger, I don't think we should override go fmt
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.
I don't think we should override go fmt
Apologies for lack of clarity. That wasn't my intention.
I think a good pattern in this case is to add this field as the last element. Since this field is much longer than everything else we can add comment or enter and then rest of the content is not affected:
Hope that makes sense
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.
What I have done:
- git reset --soft head~2
- Moved field to the bottom
- make fmt
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.
In this client we like to keep fields alphabetically ordered for easy comparison in case of missing fields
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.
sorry I just saw this comment. Exactly, I wanted to keep the same order as in the new SDK
Check: V2 sdk contains the same field: https://github.com/mongodb/atlas-sdk-go/blob/bea1252c35376028cac30983cfb83732f4812472/docs/docs/AdvancedClusterDescription.md?plain=1#L63 |
Good job! will approve after formatting issues are fixed |
@wtrocki I know but we've decided in this case to wait until we migrate to new SDK to mitigate risk and fix this soon |
Understood. My intention was only to ensure that the name of the property is the same and we have parity so we do not create a blocker for future migration. |
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. No blockers - formatting can be improved but not blocking
thanks @wtrocki , I you don't mind then I'll leave it as it is because I wanted the field to be the first one exactly as in the new SDK (because they're alphabetically sorted) |
LGTM |
Description
Adds acceptDataRisksAndForceReplicaSetReconfig parameter in cluster and advanced cluster.
Ticket: INTMDB-1236
Type of change:
Required Checklist:
make fmt
and formatted my codeFurther comments