-
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
[EPM] add/remove package in package settings page #63389
Conversation
Pinging @elastic/ingest-management (Feature:EPM) |
e29073e
to
d4fed26
Compare
Before I read any code, 👏 👏 👏 for the screenshot-for-every-state (or so it seems) in the description. |
@@ -16,6 +19,14 @@ export interface GetOneDatasourceRequest { | |||
}; | |||
} | |||
|
|||
export interface GetDatasourcesResponse { |
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 just added this type to my PR as well - #63373
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.
@jen-huang is working on datasources table and probably adding it as well!
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.
@neptunian fwiw, I'm working on Datasources table in #57961
kuery: `datasources.package.name:${props.name}`, | ||
}); | ||
const { name, title } = props; | ||
const packageInstallStatus = getPackageInstallStatus(name); |
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. Does Delete apply to Default installed packages? those defined via x-pack/plugins/ingest_manager/common/types/models/epm.ts:252
:
export enum DefaultPackages {
base = 'base',
system = 'system',
endpoint = 'endpoint',
}
My concern is the impact to Endpoint if uninstalled.
cc:/ @jonathan-buttner , @kevinlog
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 they are default installed vs required or always installed, IMO. Perhaps base
is always there, but I believe everything else can be removed.
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 what @jfsiii said. Base can be removed if you hit the endpoint but we do not allow them to remove it through the UI. All other packages can be removed through the UI.
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.
Do not want to block this PR, but I think not to be able to remove a package should not only be a UI feature but also be blocked through the API as otherwise it would mess up things.
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 ran this locally and everything worked great and as expected. Install, uninstall, re-install. etc.
✨Great work ✨
💚 Build SucceededTo update your PR or re-run it, just comment with: |
* fix bug where assets were not being returned, use archive info for assets * add settings page, add install/remove button and text * check existence of datasources associated with this package * add package title variable to text * update modal text and rename to uninstall
* alerting/alert-services-mock: (107 commits) removed unused import added alert services mock and use it in siem [Metrics UI] Refactor With* containers to hooks (elastic#59503) [NP] Migrate logstash server side code to NP (elastic#63135) Clicking cancel in saved query save modal doesn't close it (elastic#62774) [Lens] Migration from 7.7 (elastic#62879) [Lens] Fix bug where suggestions didn't use filters (elastic#63293) Task/linux events (elastic#63400) [Remote clusters] guard against usageCollection plugin if unav… (elastic#63284) [Uptime] Remove pings graphql (elastic#59392) Index Pattern Field class - factor out copy_field code for future typescripting (elastic#63083) [EPM] add/remove package in package settings page (elastic#63389) Adjust API authorization logging (elastic#63350) Revert FTR: add chromium-based Edge browser support (elastic#61684) (elastic#63448) [Event Log] Adds namespace into save objects (elastic#62974) document code splitting for client code (elastic#62593) Escape single quotes surrounded by double quotes (elastic#63229) [Endpoint] Update cli mapping to match endpoint package (elastic#63372) update in-app links to metricbeat configuration docs (elastic#63295) investigation notes field (documentation / metadata) (elastic#63386) ...
* fix bug where assets were not being returned, use archive info for assets * add settings page, add install/remove button and text * check existence of datasources associated with this package * add package title variable to text * update modal text and rename to uninstall
* fix bug where assets were not being returned, use archive info for assets * add settings page, add install/remove button and text * check existence of datasources associated with this package * add package title variable to text * update modal text and rename to uninstall
#60699
Install
Install Confirmation
Installing
Able to uninstall (no datasources associated with this package exist)
Uninstall confirmation
Uninstalling
Not able to uninstall (datasources associated with this package exist)