-
Notifications
You must be signed in to change notification settings - Fork 366
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
upcoming: [M3-7779]: Placement Groups types update, part 2 #10200
Conversation
6460aac
to
0107d5d
Compare
3a0780a
to
ac168c0
Compare
id?: number | null; | ||
compliant_only?: boolean | null; | ||
id: number; | ||
compliant_only?: boolean; |
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 is a new undocumented parameter that should be represented in our types ( for API fidelity & SDK purpose) but won't be utilized in Cloud Manager
linode: number; | ||
is_compliant: boolean; | ||
}[]; | ||
is_strict: boolean; |
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.
These are the core changes for this PR, resulting in the changes below.
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 nice to finally have things in sync between specs and our codebase.
region: Region['id']; | ||
}; | ||
|
||
export type UpdatePlacementGroupPayload = Pick<PlacementGroup, 'label'>; |
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.
RenamePlacementGroupPayload
isn't the best term from an API standpoint, changing to UpdatePlacementGroupPayload
to reflect better the HTTP method
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.
Changes look good pending checks pass. All feedback is optional
Coverage Report: ✅ |
@abailly-akamai Nice work all around! Everything looks good and ready to go. |
Description 📝
This PR bring the latest and greatest API specs updates to the Placement Group feature.
The functionality should be identical and no UI regression is expected from those changes
Changes 🔄
PlacementGroup.linodes
changes from an array of linode IDs to an array of linode objects to include compliance for each linodeRenamePlacementGroupPayload
becomesUpdatePlacementGroupPayload
compliant_only
becomes a silent parameterNote: Not adding a changeset for apiV4 is intentional
Preview 📷
There should be no UI change as a result of this PR
How to test 🧪
Prerequisites
Verification steps
As an Author I have considered 🤔
Check all that apply