-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Ingest Manager] Update open API spec and add condition to agent upgrade endpoint #79579
[Ingest Manager] Update open API spec and add condition to agent upgrade endpoint #79579
Conversation
Pinging @elastic/ingest-management (Team:Ingest Management) |
AGENT_SAVED_OBJECT_TYPE, | ||
request.params.agentId | ||
); | ||
if (agent.attributes.unenrollment_started_at || agent.attributes.unenrolled_at) { | ||
if (agentSO.attributes.unenrollment_started_at || agentSO.attributes.unenrolled_at) { |
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.
we also have the .active = false
property when an agent is unenrolled that I will trust more than these two field
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 used this because it was used here to get unenrolled or unenrolling and because active doesn't get set to false until after unenrollment. Going to merge but will review when we do the status refactor.
💚 Build SucceededMetrics [docs]
To update your PR or re-run it, just comment with: |
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'm not 💯 on the OpenAPI definitions, but they can be updated later. The important thing, IMO, is the new tests.
…ade endpoint (elastic#79579) * add condition to check for upgradeable agent to endpoint * update the openAPI spec
…into feature/task_manager_429 * 'feature/task_manager_429' of github.com:elastic/kibana: (158 commits) Add license check to direct package upload handler. (#79653) [Ingest Manager] Rename API /api/ingest_manager => /api/fleet (#79193) [Security Solution][Resolver] Simplify CopyableField styling and add comments (#79594) Fine-tunes ML related text on Metrics UI (#79425) [ML] DF Analytics creation wizard: ensure job creation possible when model memory lower than estimate (#79229) Add new "Add Data" tutorials (#77237) Update APM telemetry docs (#79583) Revert "Add support for runtime field types to mappings editor. (#77420)" (#79611) Kibana request headers (#79218) ensure missing indexPattern error is bubbled up to error callout (#79378) Missing space fix (#79585) remove duplicate tab states (#79501) [data.ui] Lazy load UI components in data plugin. (#78889) Add generic type params to search dependency. (#79608) [Ingest Manager] Internal action for policy reassign (#78493) [ILM] Add index_codec to forcemerge action in hot and warm phases (#78175) [Ingest Manager] Update open API spec and add condition to agent upgrade endpoint (#79579) [ML] Hide Data Grid column options when histogram charts are enabled. (#79459) [Telemetry] Synchronous `setup` and `start` methods (#79457) [Observability] Persist time range across apps (#79258) ...
A couple changes to follow up #78810
fleet/agents/bulk_upgrade
andfleet/{agentId}/upgrade
isUpgradeable
check tofleet/{agentId}/upgrade
. We useisUpgradeable
in the UI to check if an agent can be upgraded, but it was not added to the endpoint. This adds the condition and some integration tests to check for it.