Skip to content

Commit

Permalink
Merge branch 'remove-logs-explorer' of https://github.com/thomheymann…
Browse files Browse the repository at this point in the history
…/kibana into remove-logs-explorer
  • Loading branch information
thomheymann committed Jan 3, 2025
2 parents 4e40502 + 894cfbe commit 63ad8d8
Showing 1 changed file with 45 additions and 45 deletions.
90 changes: 45 additions & 45 deletions x-pack/solutions/observability/plugins/infra/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,45 +141,45 @@ export class Plugin implements InfraClientPluginClass {
return [
...(logs.show
? [
{
label: logsTitle,
sortKey: 200,
entries: getLogsNavigationEntries({
isLogsExplorerAccessible,
config: this.config,
routes: logRoutes,
}),
},
]
{
label: logsTitle,
sortKey: 200,
entries: getLogsNavigationEntries({
isLogsExplorerAccessible,
config: this.config,
routes: logRoutes,
}),
},
]
: []),
...(infrastructure.show
? [
{
label: metricsTitle,
sortKey: 300,
entries: [
{
label: inventoryTitle,
app: 'metrics',
path: '/inventory',
},
...(this.config.featureFlags.metricsExplorerEnabled
? [
{
label: metricsExplorerTitle,
app: 'metrics',
path: '/explorer',
},
]
: []),
{
label: hostsTitle,
app: 'metrics',
path: '/hosts',
},
],
},
]
{
label: metricsTitle,
sortKey: 300,
entries: [
{
label: inventoryTitle,
app: 'metrics',
path: '/inventory',
},
...(this.config.featureFlags.metricsExplorerEnabled
? [
{
label: metricsExplorerTitle,
app: 'metrics',
path: '/explorer',
},
]
: []),
{
label: hostsTitle,
app: 'metrics',
path: '/hosts',
},
],
},
]
: []),
];
})
Expand Down Expand Up @@ -252,14 +252,14 @@ export class Plugin implements InfraClientPluginClass {
},
...(metricsExplorerEnabled
? [
{
id: 'metrics-explorer',
title: i18n.translate('xpack.infra.homePage.metricsExplorerTabTitle', {
defaultMessage: 'Metrics Explorer',
}),
path: '/explorer',
},
]
{
id: 'metrics-explorer',
title: i18n.translate('xpack.infra.homePage.metricsExplorerTabTitle', {
defaultMessage: 'Metrics Explorer',
}),
path: '/explorer',
},
]
: []),
{
id: 'settings',
Expand Down Expand Up @@ -339,7 +339,7 @@ export class Plugin implements InfraClientPluginClass {
return startContract;
}

stop() { }
stop() {}
}

const getLogsNavigationEntries = ({
Expand Down

0 comments on commit 63ad8d8

Please sign in to comment.