-
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
[Ingest Manager] Rename API /api/ingest_manager => /api/fleet #79193
[Ingest Manager] Rename API /api/ingest_manager => /api/fleet #79193
Conversation
…tmanager-fleet-api-renaming
@elasticmachine merge upstream |
02a9ea3
to
1a674ed
Compare
…tmanager-fleet-api-renaming
Pinging @elastic/ingest-management (Team:Ingest Management) |
@jen-huang Maybe you can help with me what kind of release not should we have for this kind of breaking change? |
list of things to be tracked are now placed in the description section. |
x-pack/test/ingest_manager_api_integration/apis/epm/package_install_complete.ts
Outdated
Show resolved
Hide resolved
x-pack/test/ingest_manager_api_integration/apis/epm/package_install_complete.ts
Outdated
Show resolved
Hide resolved
x-pack/test/ingest_manager_api_integration/apis/epm/package_install_complete.ts
Outdated
Show resolved
Hide resolved
x-pack/test/ingest_manager_api_integration/apis/epm/package_install_complete.ts
Outdated
Show resolved
Hide resolved
x-pack/test/ingest_manager_api_integration/apis/epm/package_install_complete.ts
Outdated
Show resolved
Hide resolved
x-pack/test/ingest_manager_api_integration/apis/epm/package_install_complete.ts
Outdated
Show resolved
Hide resolved
x-pack/test/ingest_manager_api_integration/apis/fleet/agents/services.ts
Outdated
Show resolved
Hide resolved
@@ -19,12 +19,11 @@ import { | |||
import { GetPolicyListResponse, GetPolicyResponse, UpdatePolicyResponse } from '../../../types'; | |||
import { NewPolicyData } from '../../../../../../../common/endpoint/types'; | |||
|
|||
const INGEST_API_ROOT = `/api/ingest_manager`; | |||
const INGEST_API_ROOT = `/api/fleet`; |
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.
@paul-tavares @nchaulet thoughts on removing the hardcoded reference and using epmRouteService
etc like this: https://github.com/elastic/kibana/blob/master/x-pack/plugins/security_solution/public/common/hooks/endpoint/upgrade.ts#L10
That'd avoid having to find/replace these references in the future
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.
sound good to me if we can avoid hardcoded path :) if this can be done after that PR? there is already a lot of changes going on
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.
yes, I agree that we (security solution) should stop using hardcoded values and start using the const
exposed in ingest. @nchaulet we can take that one - you don't have to include it in your PR.
Co-authored-by: John Schulz <[email protected]>
Co-authored-by: John Schulz <[email protected]>
@nchaulet I'd recommend |
Also would be great to update this PR with master again, since tests were re-enabled in #79290 a little while ago! |
What about updating the path in your PR as there is more than just a path change, there is config change too? |
@elasticmachine merge upstream |
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.
Changes to Endpoint LGTM. I will open a separate issue on our side to refactor several areas of our code to use the const
s exposed via Fleet.
(FYI: I will update an external tool we have to download/view endpoint user artifacts when you merge this in)
Hey @nchaulet, in the E2E we use:
Thanks! |
That works too! In that case feel free to edit my PR description and replace the labels on your PRs with |
@elastic/siem it will really be great if can have a review for 7.10 |
…tmanager-fleet-api-renaming
@paul-tavares |
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.
👍 to merge for FF
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]async chunks size
page load bundle size
History
To update your PR or re-run it, just comment with: |
Hi Eric We have executed the smoke testcases under Smoke TestRun for Rename API /api/ingest_manager => /api/fleet for this ticket on latest 8.0.0-SNAPSHOT Kibana cloud environment. Please let us know if anything is missing from our end. |
…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) ...
Description
In the effort of renaming Ingest manager plugin Fleet, we are renaming our API routes
Details:
Rename ingest manager api
Backward compatible routes
cc @blakerouse @michalpristas
For retro-compatibility we keep the agent (enroll, checkin, and ack) API route from 7.9 to be compatible with 7.9 agents
So we have duplicated route for
Enrollment
checkin
acknowledgements
Breaking change route
Fleet setup do not exists anymore and it's not agents setup
All the other APIs call should be migrated from
/api/ingest_manager/*
to/api/fleet/*
list of things to ensure are checked / tested / passing.
Dev docs
The following Ingest Manager API routes changed:
/api/ingest_manager/*
to/api/fleet/*
/api/ingest_manager/fleet/*
to/api/fleet/*
this include/api/ingest_manager/fleet/agents
=>/api/fleet/agents
/api/ingest_manager/fleet/enrollement_tokens
=>/api/fleet/enrollement_tokens
/api/ingest_manager/fleet/setup
to/api/fleet/agents/setup