-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Fleet] updated openapi for bulk action responses #141566
Conversation
Pinging @elastic/fleet (Team:Fleet) |
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 left a small comment but LGTM overall
error?: string; | ||
} | ||
>; | ||
export type PostBulkAgentUpgradeResponse = |
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.
nit: Since this type is repeated several times on this file, it could make sense to create a type for it and reassign wherever is used? Something like this:
type AgentUpgradeResponse = | Record<
Agent['id'],
{
success: boolean;
error?: string;
}
>
| { actionId: string };
In the case you like the suggestion feel free to pick a better name!
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.
yes, I just did that!
e59be68
to
b4d17f1
Compare
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: |
(cherry picked from commit 76fe2e3)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
* main: [Files] Use self destruct flag in upload component (elastic#141366) [Synthetics] Unskip certs flaky test (elastic#141423) updated openapi for bulk action responses (elastic#141566) Fix page responsiveness for smaller screen sizes (elastic#141471)
(cherry picked from commit 76fe2e3) Co-authored-by: Julia Bardi <[email protected]>
Summary
Updated OpenAPI spec to reflect changes made for #141567
/bulk_reassign, /bulk_unenroll, /bulk_upgrade, /bulk_update_tags
can return now anactionId
instead of object with agent ids, in case of async execution.Checklist