-
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 epm APIs #198434
[Fleet] Remove deprecated epm APIs #198434
Conversation
78cb626
to
f742465
Compare
f742465
to
27c3f48
Compare
f08fcd0
to
ac9b09c
Compare
…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
80ebee6
to
72ee474
Compare
…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
…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'
…deprecated-epm-apis
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; |
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.
is savedObject
still needed in PackageListItem
type?
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 it still needed that interface is used to type the package server side, and we only populate installationInfo
in the handler for public usage.
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.
LGTM
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.
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) => { |
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.
Q: why is this different from the identically named function in helper.ts
that takes more params?
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.
Looks like I could use the function from the helper here too, I will do the change
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.
Yeah, I was thinking the same. Thanks 👍🏼
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Async chunks
Page load bundle
History
|
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.
Thanks for the changes 🚀
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.
Rules Management test changes LGTM 👍
Description
Related to #189746
API removal
GET/POST/DELETE /epm/packages/:pkgkey
APIs in favor ofGET/POST/DELETE /epm/packages/:pkgName/:pkgVersion
{pkgVersion}
Parameter and response change
experimental
query parameter inGET /epm/packages
andGET /epm/categories
response
in response in* /epm/packages*
andGET /epm/categories
savedObject
in/epm/packages
response in favor ofinstallationInfo