Skip to content

Commit

Permalink
register home solution with old app id
Browse files Browse the repository at this point in the history
  • Loading branch information
semd committed Oct 21, 2021
1 parent 11e89a3 commit bc24a21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ export function getDeepLinks(

/**
* Recursive DFS function to filter deepLinks by permissions (licence and capabilities).
* Checks "end" deepLinks with no children first, the other parent deepLinks will be included if
* Checks "end" deepLinks with no children first, the other parent deepLinks will be included if
* they still have children deepLinks after filtering
*/
const filterDeepLinks = (deepLinks: AppDeepLink[]): AppDeepLink[] => {
Expand Down Expand Up @@ -388,7 +388,7 @@ export function getDeepLinks(
if (deepLink.id === SecurityPageName.ueba) {
return enableExperimental.uebaEnabled;
}
if (!isEmpty(deepLink.deepLinks)) {
if (!isEmpty(deepLink.deepLinks)) {
return true;
}
return capabilities == null || capabilities[SERVER_APP_ID]?.show === true;
Expand Down
3 changes: 2 additions & 1 deletion x-pack/plugins/security_solution/public/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import { KibanaServices } from './common/lib/kibana/services';
import { SOLUTION_NAME } from './common/translations';

import {
APP_ID,
APP_UI_ID,
OVERVIEW_PATH,
APP_OVERVIEW_PATH,
Expand Down Expand Up @@ -104,7 +105,7 @@ export class Plugin implements IPlugin<PluginSetup, PluginStart, SetupPlugins, S

if (plugins.home) {
plugins.home.featureCatalogue.registerSolution({
id: APP_UI_ID,
id: APP_ID,
title: SOLUTION_NAME,
description: i18n.translate('xpack.securitySolution.featureCatalogueDescription', {
defaultMessage:
Expand Down

0 comments on commit bc24a21

Please sign in to comment.