-
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
[SIEM] NP Plugin dependency cleanup #64842
Changes from 3 commits
687d301
809382a
b0da9f9
a71022f
11f0662
808b1b4
98e2cc3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,16 +15,12 @@ import { | |
PluginInitializerContext, | ||
Logger, | ||
} from '../../../../src/core/server'; | ||
import { | ||
PluginStartContract as AlertingStart, | ||
PluginSetupContract as AlertingSetup, | ||
} from '../../alerting/server'; | ||
import { PluginSetupContract as AlertingSetup } from '../../alerting/server'; | ||
import { SecurityPluginSetup as SecuritySetup } from '../../security/server'; | ||
import { PluginSetupContract as FeaturesSetup } from '../../features/server'; | ||
import { MlPluginSetup as MlSetup } from '../../ml/server'; | ||
import { EncryptedSavedObjectsPluginSetup as EncryptedSavedObjectsSetup } from '../../encrypted_saved_objects/server'; | ||
import { SpacesPluginSetup as SpacesSetup } from '../../spaces/server'; | ||
import { PluginStartContract as ActionsStart } from '../../actions/server'; | ||
import { LicensingPluginSetup } from '../../licensing/server'; | ||
import { initServer } from './init_server'; | ||
import { compose } from './lib/compose/kibana'; | ||
|
@@ -52,10 +48,8 @@ export interface SetupPlugins { | |
ml?: MlSetup; | ||
} | ||
|
||
export interface StartPlugins { | ||
actions: ActionsStart; | ||
alerting: AlertingStart; | ||
} | ||
// eslint-disable-next-line @typescript-eslint/no-empty-interface | ||
export interface StartPlugins {} | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-empty-interface | ||
export interface PluginSetup {} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can optionally remove these two empty interfaces if you want and just do this below: export class Plugin implements IPlugin<void, void, SetupPlugins, StartPlugins> { And then remove the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @FrankHassanabad we return |
||
|
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.
Can this part of the exception be hit anymore? It doesn't seem like it with the way you changed it above. Just a question I have.
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 had a similar thought! Probably not, unless
reportUiStats
wasn't a function? I debated between the safety of the try/catch vs the cleanliness of not having it.