Skip to content

Commit

Permalink
Add missing SIEM app urls to searchDeepLinks (#91795)
Browse files Browse the repository at this point in the history
  • Loading branch information
kqualters-elastic authored Feb 18, 2021
1 parent 94f0bd9 commit 5f951bd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 9 additions & 1 deletion x-pack/plugins/security_solution/public/app/search/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,15 @@ const securityDeepLinks: SecurityDeepLinks = {
base: [],
},
case: {
base: [],
base: [
{
id: 'create',
title: i18n.translate('xpack.securitySolution.search.cases.create', {
defaultMessage: 'Create New Case',
}),
path: '/create',
},
],
premium: [
{
id: 'configure',
Expand Down
4 changes: 4 additions & 0 deletions x-pack/plugins/security_solution/public/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export class Plugin implements IPlugin<PluginSetup, PluginStart, SetupPlugins, S
private detectionsUpdater$ = new Subject<AppUpdater>();
private hostsUpdater$ = new Subject<AppUpdater>();
private networkUpdater$ = new Subject<AppUpdater>();
private caseUpdater$ = new Subject<AppUpdater>();

private storage = new Storage(localStorage);
private licensingSubscription: Subscription | null = null;
Expand Down Expand Up @@ -279,6 +280,7 @@ export class Plugin implements IPlugin<PluginSetup, PluginStart, SetupPlugins, S
euiIconType: APP_ICON_SOLUTION,
category: DEFAULT_APP_CATEGORIES.security,
appRoute: APP_CASES_PATH,
updater$: this.caseUpdater$,
mount: async (params: AppMountParameters) => {
const [coreStart, startPlugins] = await core.getStartServices();
const { cases: subPlugin } = await this.subPlugins();
Expand All @@ -300,6 +302,7 @@ export class Plugin implements IPlugin<PluginSetup, PluginStart, SetupPlugins, S
euiIconType: APP_ICON_SOLUTION,
category: DEFAULT_APP_CATEGORIES.security,
appRoute: APP_MANAGEMENT_PATH,
meta: getSearchDeepLinksAndKeywords(SecurityPageName.administration),
mount: async (params: AppMountParameters) => {
const [coreStart, startPlugins] = await core.getStartServices();
const { management: managementSubPlugin } = await this.subPlugins();
Expand Down Expand Up @@ -380,6 +383,7 @@ export class Plugin implements IPlugin<PluginSetup, PluginStart, SetupPlugins, S
currentLicense.type
);
registerSearchLinks(SecurityPageName.hosts, this.hostsUpdater$, currentLicense.type);
registerSearchLinks(SecurityPageName.case, this.caseUpdater$, currentLicense.type);
}
});
}
Expand Down

0 comments on commit 5f951bd

Please sign in to comment.