Skip to content
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

Merged
merged 1 commit into from
Sep 23, 2022

Conversation

juliaElastic
Copy link
Contributor

@juliaElastic juliaElastic commented Sep 23, 2022

Summary

Updated OpenAPI spec to reflect changes made for #141567

/bulk_reassign, /bulk_unenroll, /bulk_upgrade, /bulk_update_tags can return now an actionId instead of object with agent ids, in case of async execution.

Checklist

  • Documentation was added for features that require explanation or tutorials

@juliaElastic juliaElastic added release_note:skip Skip the PR/issue when compiling release notes v8.5.0 labels Sep 23, 2022
@juliaElastic juliaElastic self-assigned this Sep 23, 2022
@juliaElastic juliaElastic requested a review from a team as a code owner September 23, 2022 07:22
@botelastic botelastic bot added the Team:Fleet Team label for Observability Data Collection Fleet team label Sep 23, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

Copy link
Contributor

@criamico criamico left a 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 =
Copy link
Contributor

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!

Copy link
Contributor Author

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!

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

  • 💔 Build #75130 failed e59be6891151cf0d5ecf02df1ca8d333f8330bc8

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @juliaElastic

@juliaElastic juliaElastic merged commit 76fe2e3 into elastic:main Sep 23, 2022
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Sep 23, 2022
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.5

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

jloleysens added a commit to jloleysens/kibana that referenced this pull request Sep 23, 2022
* 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)
kibanamachine added a commit that referenced this pull request Sep 23, 2022
(cherry picked from commit 76fe2e3)

Co-authored-by: Julia Bardi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v8.5.0 v8.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants