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] Remove deprecated epm APIs #198434

Merged
merged 33 commits into from
Nov 6, 2024

Conversation

nchaulet
Copy link
Member

@nchaulet nchaulet commented Oct 30, 2024

Description

Related to #189746

API removal

  • Remove GET/POST/DELETE /epm/packages/:pkgkey APIs in favor of GET/POST/DELETE /epm/packages/:pkgName/:pkgVersion
  • I add to change the route patterns to support an optionnal {pkgVersion}

Parameter and response change

  • Remove experimental query parameter in GET /epm/packages and GET /epm/categories
  • Remove response in response in * /epm/packages* and GET /epm/categories
  • Remove savedObject in /epm/packages response in favor of installationInfo

@nchaulet nchaulet force-pushed the feature-remove-deprecated-epm-apis branch 2 times, most recently from 78cb626 to f742465 Compare October 31, 2024 14:42
@nchaulet nchaulet force-pushed the feature-remove-deprecated-epm-apis branch from f742465 to 27c3f48 Compare October 31, 2024 15:11
@nchaulet nchaulet force-pushed the feature-remove-deprecated-epm-apis branch from f08fcd0 to ac9b09c Compare October 31, 2024 17:33
kibanamachine and others added 4 commits October 31, 2024 18:09
…t --include-path /api/status --include-path /api/alerting/rule/ --include-path /api/alerting/rules --include-path /api/actions --include-path /api/security/role --include-path /api/spaces --include-path /api/fleet --update'
…let/kibana into feature-remove-deprecated-epm-apis
@nchaulet nchaulet force-pushed the feature-remove-deprecated-epm-apis branch from 80ebee6 to 72ee474 Compare November 1, 2024 12:03
nchaulet and others added 9 commits November 1, 2024 09:48
…t --include-path /api/status --include-path /api/alerting/rule/ --include-path /api/alerting/rules --include-path /api/actions --include-path /api/security/role --include-path /api/spaces --include-path /api/fleet --update'
…let/kibana into feature-remove-deprecated-epm-apis
@nchaulet nchaulet added release_note:breaking backport:skip This commit does not require backporting Team:Fleet Team label for Observability Data Collection Fleet team labels Nov 1, 2024
nchaulet and others added 2 commits November 1, 2024 15:44
…t --include-path /api/status --include-path /api/alerting/rule/ --include-path /api/alerting/rules --include-path /api/actions --include-path /api/security/role --include-path /api/spaces --include-path /api/fleet --update'
@nchaulet nchaulet marked this pull request as ready for review November 4, 2024 13:09
@nchaulet nchaulet requested review from a team as code owners November 4, 2024 13:09
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

…let/kibana into feature-remove-deprecated-epm-apis
@@ -531,8 +531,8 @@ export type PackageList = PackageListItem[];
export type PackageListItem = Installable<RegistrySearchResult> & {
id: string;
integration?: string;
installationInfo?: InstallationInfo;
savedObject?: InstallableSavedObject;
Copy link
Contributor

Choose a reason for hiding this comment

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

is savedObject still needed in PackageListItem type?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes it still needed that interface is used to type the package server side, and we only populate installationInfo in the handler for public usage.

Copy link
Contributor

@juliaElastic juliaElastic left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

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

ML functional test file changes LGTM

@@ -28,9 +28,9 @@ export default function (providerContext: FtrProviderContext) {
expect(sortBy(arr1, 'id')).to.eql(sortBy(arr2, 'id'));
};

const getInstallationSavedObject = async (name: string, version: string) => {
const getInstallationInfo = async (name: string, version: string) => {
Copy link
Member

Choose a reason for hiding this comment

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

Q: why is this different from the identically named function in helper.ts that takes more params?

Copy link
Member Author

Choose a reason for hiding this comment

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

Looks like I could use the function from the helper here too, I will do the change

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, I was thinking the same. Thanks 👍🏼

@banderror banderror requested review from xcrzx and removed request for jpdjere November 5, 2024 18:10
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
fleet 1303 1295 -8

Async chunks

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

id before after diff
fleet 1.7MB 1.7MB -6.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
fleet 173.0KB 173.1KB +162.0B
Unknown metric groups

API count

id before after diff
fleet 1426 1418 -8

History

Copy link
Member

@ashokaditya ashokaditya left a comment

Choose a reason for hiding this comment

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

Thanks for the changes 🚀

Copy link
Contributor

@xcrzx xcrzx left a comment

Choose a reason for hiding this comment

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

Rules Management test changes LGTM 👍

@nchaulet nchaulet merged commit 15c1ceb into elastic:main Nov 6, 2024
46 checks passed
mgadewoll pushed a commit to mgadewoll/kibana that referenced this pull request Nov 7, 2024
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:breaking Team:Fleet Team label for Observability Data Collection Fleet team v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants