[SLOs] Fix matching path for slo in observability nav !! (#194186)

## Summary

### Before

notice slo is not selected

<img width="1728" alt="image"
src="https://github.com/user-attachments/assets/08068de6-5b1d-4f37-b55d-aace8c56aa79">


### After
<img width="1728" alt="image"
src="https://github.com/user-attachments/assets/378d9141-3726-41e0-8256-10f2149b9eb2">
This commit is contained in:
Shahzad 2024-09-26 23:10:35 +02:00 committed by GitHub
parent ea220bf5e1
commit dbbbde8837
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -382,7 +382,7 @@ export class Plugin
defaultMessage: 'SLOs',
}),
app: 'slo',
path: '/',
path: '',
},
]
: [];

View file

@ -56,7 +56,7 @@ const getDataViewId = (searchConfiguration?: SearchConfigurationWithExtractedRef
? searchConfiguration.index
: searchConfiguration?.index?.title;
export const registerObservabilityRuleTypes = async (
export const registerObservabilityRuleTypes = (
observabilityRuleTypeRegistry: ObservabilityRuleTypeRegistry,
uiSettings: IUiSettingsClient,
logsExplorerLocator?: LocatorPublic<LogsExplorerLocatorParams>

View file

@ -46,7 +46,7 @@ const sloBurnRateDefaultRecoveryMessage = i18n.translate(
}
);
export const registerBurnRateRuleType = async (
export const registerBurnRateRuleType = (
observabilityRuleTypeRegistry: ObservabilityRuleTypeRegistry
) => {
observabilityRuleTypeRegistry.register({