mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
> Changes identified using the script from https://github.com/elastic/kibana/pull/171483 ## Summary The script from https://github.com/elastic/kibana/pull/171483 can identify inconsistencies and untyped dependencies in Kibana plugins. This PR fixes the obvious: - `notifications` - move `actions` and `licensing` to `optionalPlugins`. - `serverless` - move `kibanaReact` to `requiredBundles`. - `serverlessObservability` - delete dead code and `kibanaReact` dependency. - `reporting` - move `esUiShared` and `embeddable` plugins to `requiredBundles`. - `uiActions` - remove `dataViews` dependency, (only a type is being used). - `urlDrilldowns` - move `uiActions` to `requiredBundles`. - Type all plugins using the `Setup` and `Start` generics on the core `Plugin` interface. - Consistently name them. - The exports needed to be named their original names; this will be addressed in follow up work, (to avoid pinging teams) - Add a `_` to unused parameters. ## Remaining Issues ### `licensing` and `licensingApiGuard` Both of these plugins introduce side-effects, rather than dependent logic. These need to be refactored to be consumed instead. <img width="735" alt="Screenshot 2023-12-13 at 10 08 00 AM" src=" |
||
---|---|---|
.. | ||
config.ts | ||
index.ts | ||
mocks.ts | ||
plugin.test.ts | ||
plugin.ts | ||
types.ts |