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] agent_status total deprecated, added all and active #151564

Merged
merged 3 commits into from
Feb 22, 2023

Conversation

juliaElastic
Copy link
Contributor

@juliaElastic juliaElastic commented Feb 17, 2023

Summary

Fixes #135980

Marked total deprecated in /agent_status API response, instead added all (all agents) and active (all - inactive - unenrolled).

Checklist

@juliaElastic juliaElastic added release_note:skip Skip the PR/issue when compiling release notes v8.8.0 labels Feb 17, 2023
@juliaElastic juliaElastic self-assigned this Feb 17, 2023
@juliaElastic juliaElastic requested a review from a team as a code owner February 17, 2023 12:12
@botelastic botelastic bot added the Team:Fleet Team label for Observability Data Collection Fleet team label Feb 17, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
securitySolution 13.9MB 13.9MB +30.0B

History

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

cc @juliaElastic

Copy link
Member

@nchaulet nchaulet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 Should we add a release note when we deprecate something in the API?

@juliaElastic juliaElastic added release_note:deprecation and removed release_note:skip Skip the PR/issue when compiling release notes labels Feb 21, 2023
@juliaElastic juliaElastic enabled auto-merge (squash) February 21, 2023 07:34
@juliaElastic
Copy link
Contributor Author

juliaElastic commented Feb 21, 2023

@elastic/security-defend-workflows @kevinlog hey team, could someone review this from your side? It is a small change in Fleet API.

@@ -25,6 +25,8 @@ export const initialPolicyDetailsState: () => Immutable<PolicyDetailsState> = ()
online: 0,
total: 0,
other: 0,
all: 0,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got a question, what about all the places where we already use the .total? Should we change all the .total references by .all? Or, is .total still working as before?

Copy link
Contributor Author

@juliaElastic juliaElastic Feb 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, total still works as it is only deprecated, it should be changed eventually by the time the deprecation is removed (next major)

@juliaElastic juliaElastic merged commit 9ddb989 into elastic:main Feb 22, 2023
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:deprecation Team:Fleet Team label for Observability Data Collection Fleet team v8.8.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Fleet] Deprecate agent total status in agent_status API response
7 participants