Skip to content

Commit 54fa2fe

Browse files
Merge branch 'master' into data/allow-custom-formatting
2 parents 1b6e9e8 + e1253ed commit 54fa2fe

4 files changed

Lines changed: 18 additions & 15 deletions

File tree

x-pack/plugins/security_solution/kibana.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"embeddable",
1212
"features",
1313
"home",
14-
"ingestManager",
1514
"taskManager",
1615
"inspector",
1716
"licensing",
@@ -21,6 +20,7 @@
2120
],
2221
"optionalPlugins": [
2322
"encryptedSavedObjects",
23+
"ingestManager",
2424
"ml",
2525
"newsfeed",
2626
"security",
@@ -33,6 +33,7 @@
3333
"requiredBundles": [
3434
"kibanaUtils",
3535
"esUiShared",
36-
"kibanaReact"
36+
"kibanaReact",
37+
"ingestManager"
3738
]
3839
}

x-pack/plugins/security_solution/public/plugin.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,10 +324,12 @@ export class Plugin implements IPlugin<PluginSetup, PluginStart, SetupPlugins, S
324324

325325
public start(core: CoreStart, plugins: StartPlugins) {
326326
KibanaServices.init({ ...core, ...plugins, kibanaVersion: this.kibanaVersion });
327-
plugins.ingestManager.registerPackageConfigComponent(
328-
'endpoint',
329-
ConfigureEndpointPackageConfig
330-
);
327+
if (plugins.ingestManager) {
328+
plugins.ingestManager.registerPackageConfigComponent(
329+
'endpoint',
330+
ConfigureEndpointPackageConfig
331+
);
332+
}
331333

332334
return {};
333335
}

x-pack/plugins/security_solution/public/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export interface StartPlugins {
3232
data: DataPublicPluginStart;
3333
embeddable: EmbeddableStart;
3434
inspector: InspectorStart;
35-
ingestManager: IngestManagerStart;
35+
ingestManager?: IngestManagerStart;
3636
newsfeed?: NewsfeedStart;
3737
triggers_actions_ui: TriggersActionsStart;
3838
uiActions: UiActionsStart;

x-pack/plugins/security_solution/server/endpoint/endpoint_app_context_services.test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ import { httpServerMock } from '../../../../../src/core/server/mocks';
88
import { EndpointAppContextService } from './endpoint_app_context_services';
99

1010
describe('test endpoint app context services', () => {
11-
// it('should return undefined on getAgentService if dependencies are not enabled', async () => {
12-
// const endpointAppContextService = new EndpointAppContextService();
13-
// expect(endpointAppContextService.getAgentService()).toEqual(undefined);
14-
// });
15-
// it('should return undefined on getManifestManager if dependencies are not enabled', async () => {
16-
// const endpointAppContextService = new EndpointAppContextService();
17-
// expect(endpointAppContextService.getManifestManager()).toEqual(undefined);
18-
// });
11+
it('should return undefined on getAgentService if dependencies are not enabled', async () => {
12+
const endpointAppContextService = new EndpointAppContextService();
13+
expect(endpointAppContextService.getAgentService()).toEqual(undefined);
14+
});
15+
it('should return undefined on getManifestManager if dependencies are not enabled', async () => {
16+
const endpointAppContextService = new EndpointAppContextService();
17+
expect(endpointAppContextService.getManifestManager()).toEqual(undefined);
18+
});
1919
it('should throw error on getScopedSavedObjectsClient if start is not called', async () => {
2020
const endpointAppContextService = new EndpointAppContextService();
2121
expect(() =>

0 commit comments

Comments
 (0)