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

[Ingest Manager] Update open API spec and add condition to agent upgrade endpoint #79579

Merged
merged 2 commits into from
Oct 6, 2020

Conversation

neptunian
Copy link
Contributor

@neptunian neptunian commented Oct 5, 2020

A couple changes to follow up #78810

  • Updates the openAPI spec to add fleet/agents/bulk_upgrade and fleet/{agentId}/upgrade
  • Adds isUpgradeable check to fleet/{agentId}/upgrade. We use isUpgradeable 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.

@neptunian neptunian added v8.0.0 v7.10.0 Team:Fleet Team label for Observability Data Collection Fleet team labels Oct 5, 2020
@neptunian neptunian requested a review from a team October 5, 2020 21:35
@neptunian neptunian self-assigned this Oct 5, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/ingest-management (Team:Ingest Management)

@neptunian neptunian added the release_note:skip Skip the PR/issue when compiling release notes label Oct 5, 2020
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) {
Copy link
Member

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

Copy link
Contributor Author

@neptunian neptunian Oct 6, 2020

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.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

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

@jfsiii jfsiii self-requested a review October 5, 2020 23:38
Copy link
Contributor

@jfsiii jfsiii left a 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.

@neptunian neptunian merged commit 3a7d709 into elastic:master Oct 6, 2020
neptunian added a commit to neptunian/kibana that referenced this pull request Oct 6, 2020
…ade endpoint (elastic#79579)

* add condition to check for upgradeable agent to endpoint

* update the openAPI spec
neptunian added a commit that referenced this pull request Oct 6, 2020
…ade endpoint (#79579) (#79648)

* add condition to check for upgradeable agent to endpoint

* update the openAPI spec
gmmorris added a commit that referenced this pull request Oct 8, 2020
…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)
  ...
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 v7.10.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants