-
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] Remove deprecated APIs for agents endpoints #198313
Merged
nchaulet
merged 30 commits into
elastic:main
from
nchaulet:feature-remove-deprecated-apis
Nov 1, 2024
Merged
Changes from 24 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
390065b
POST /service-tokens
nchaulet da75520
remove GET /agent-status
nchaulet b85daf4
Remove PUT /agents/:agentid/reassign
nchaulet 2513809
remve GET agent_status total and kuery
nchaulet a9b7a3a
[CI] Auto-commit changed files from 'node scripts/capture_oas_snapsho…
kibanamachine 89b1931
remove usage of total in other plugins
nchaulet 26bdd2d
remove list from GET agents response
nchaulet 940855e
[CI] Auto-commit changed files from 'node scripts/capture_oas_snapsho…
kibanamachine f060705
[CI] Auto-commit changed files from 'make api-docs'
kibanamachine 26faa4f
fix tests
nchaulet e8afe38
Merge branch 'feature-remove-deprecated-apis' of github.com:nchaulet/…
nchaulet 0862679
fix types
nchaulet c46937c
fix types
nchaulet b941f49
Merge branch 'main' of github.com:elastic/kibana into feature-remove-…
nchaulet 8e49c7f
fix tests
nchaulet faa4371
[CI] Auto-commit changed files from 'node scripts/capture_oas_snapsho…
kibanamachine 6a25257
[CI] Auto-commit changed files from 'make api-docs'
kibanamachine 0cb5503
fix agent status tests
nchaulet 7daa311
fix api integration tests
nchaulet 88089a4
Reintroduce agent status kuery parameter
nchaulet c65d06b
[CI] Auto-commit changed files from 'node scripts/capture_oas_snapsho…
kibanamachine c09e839
[CI] Auto-commit changed files from 'make api-docs'
kibanamachine 371dd47
fix tests
nchaulet 30560e0
Merge branch 'main' into feature-remove-deprecated-apis
elasticmachine fd65ce0
fix after review
nchaulet 2dd04fc
[CI] Auto-commit changed files from 'node scripts/capture_oas_snapsho…
kibanamachine 86c884c
[CI] Auto-commit changed files from 'make api-docs'
kibanamachine d821cb0
fix tests
nchaulet eef3ee2
Merge branch 'main' of github.com:elastic/kibana into feature-remove-…
nchaulet 579ca1b
Merge branch 'main' into feature-remove-deprecated-apis
elasticmachine File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,9 +49,9 @@ import { | |
useStartServices, | ||
useKibanaVersion, | ||
useConfig, | ||
sendGetAgentStatus, | ||
useAgentVersion, | ||
sendGetAllFleetServerAgents, | ||
sendGetAgentsQuery, | ||
} from '../../../../hooks'; | ||
|
||
import { sendGetAgentsAvailableVersions } from '../../../../hooks'; | ||
|
@@ -135,10 +135,11 @@ export const AgentUpgradeAgentModal: React.FunctionComponent<AgentUpgradeAgentMo | |
|
||
// if selection is a query, do an api call to get updating agents | ||
try { | ||
const res = await sendGetAgentStatus({ | ||
const res = await sendGetAgentsQuery({ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above |
||
kuery: newQuery, | ||
perPage: 0, | ||
}); | ||
setUpdatingAgents(res?.data?.results?.updating ?? 0); | ||
setUpdatingAgents(res?.total ?? 0); | ||
} catch (err) { | ||
return; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
As we are not going to deprecate usage of
kuery
inagent_status
, is this change still needed? Or you prefer to change it anyway?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 will remove those changes 👍