Logstash view cleanup fixes (#114218)
* Fix route ordering/duplication * Take out "IDK" comments I remember we figured this out last week while pairing :)
This commit is contained in:
parent
dee9444dcc
commit
a5f4304672
2 changed files with 19 additions and 25 deletions
|
@ -231,34 +231,12 @@ const MonitoringApp: React.FC<{
|
|||
fetchAllClusters={false}
|
||||
/>
|
||||
|
||||
{/* APM Views */}
|
||||
<RouteInit
|
||||
path="/apm/instances/:instance"
|
||||
component={ApmInstancePage}
|
||||
codePaths={[CODE_PATH_APM]}
|
||||
fetchAllClusters={false}
|
||||
/>
|
||||
|
||||
{/* Logstash Routes */}
|
||||
<RouteInit
|
||||
path="/logstash/nodes"
|
||||
component={LogStashNodesPage}
|
||||
codePaths={[CODE_PATH_LOGSTASH]}
|
||||
fetchAllClusters={false}
|
||||
/>
|
||||
|
||||
<RouteInit
|
||||
path="/logstash/node/:uuid/advanced"
|
||||
component={LogStashNodeAdvancedPage}
|
||||
codePaths={[CODE_PATH_LOGSTASH]}
|
||||
fetchAllClusters={false}
|
||||
/>
|
||||
<RouteInit
|
||||
path="/apm/instances"
|
||||
component={ApmInstancesPage}
|
||||
codePaths={[CODE_PATH_APM]}
|
||||
fetchAllClusters={false}
|
||||
/>
|
||||
|
||||
<RouteInit
|
||||
path="/logstash/node/:uuid/pipelines"
|
||||
|
@ -294,6 +272,22 @@ const MonitoringApp: React.FC<{
|
|||
codePaths={[CODE_PATH_LOGSTASH]}
|
||||
fetchAllClusters={false}
|
||||
/>
|
||||
|
||||
{/* APM Views */}
|
||||
<RouteInit
|
||||
path="/apm/instances/:instance"
|
||||
component={ApmInstancePage}
|
||||
codePaths={[CODE_PATH_APM]}
|
||||
fetchAllClusters={false}
|
||||
/>
|
||||
|
||||
<RouteInit
|
||||
path="/apm/instances"
|
||||
component={ApmInstancesPage}
|
||||
codePaths={[CODE_PATH_APM]}
|
||||
fetchAllClusters={false}
|
||||
/>
|
||||
|
||||
<RouteInit
|
||||
path="/apm"
|
||||
component={ApmOverviewPage}
|
||||
|
|
|
@ -55,21 +55,21 @@ export const LogstashTemplate: React.FC<LogstashTemplateProps> = ({
|
|||
label: i18n.translate('xpack.monitoring.logstashNavigation.instance.overviewLinkText', {
|
||||
defaultMessage: 'Overview',
|
||||
}),
|
||||
route: `/logstash/node/${instance.nodeSummary?.uuid}`, // IDK if this is right
|
||||
route: `/logstash/node/${instance.nodeSummary?.uuid}`,
|
||||
});
|
||||
tabs.push({
|
||||
id: 'pipeline',
|
||||
label: i18n.translate('xpack.monitoring.logstashNavigation.instance.pipelinesLinkText', {
|
||||
defaultMessage: 'Pipelines',
|
||||
}),
|
||||
route: `/logstash/node/${instance.nodeSummary?.uuid}/pipelines`, // IDK if this is right
|
||||
route: `/logstash/node/${instance.nodeSummary?.uuid}/pipelines`,
|
||||
});
|
||||
tabs.push({
|
||||
id: 'advanced',
|
||||
label: i18n.translate('xpack.monitoring.logstashNavigation.instance.advancedLinkText', {
|
||||
defaultMessage: 'Advanced',
|
||||
}),
|
||||
route: `/logstash/node/${instance.nodeSummary?.uuid}/advanced`, // IDK if this is right
|
||||
route: `/logstash/node/${instance.nodeSummary?.uuid}/advanced`,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue