From 0e1734d2e5670b50c95731f479b8f8318f4fbee2 Mon Sep 17 00:00:00 2001 From: Kevin Delemme Date: Tue, 3 Dec 2024 16:08:59 -0500 Subject: [PATCH] [8.x] fix(slo): Access Cases from SLO details page (#201834) (#202485) # Backport This will backport the following commits from `main` to `8.x`: - [fix(slo): Access Cases from SLO details page (#201834)](https://github.com/elastic/kibana/pull/201834) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> --- .../observability_solution/slo/kibana.jsonc | 29 ++++++++++--------- .../slo/public/types.ts | 3 ++ .../observability_solution/slo/tsconfig.json | 1 + 3 files changed, 19 insertions(+), 14 deletions(-) diff --git a/x-pack/plugins/observability_solution/slo/kibana.jsonc b/x-pack/plugins/observability_solution/slo/kibana.jsonc index 79302b58f8269..11eca10c6c8db 100644 --- a/x-pack/plugins/observability_solution/slo/kibana.jsonc +++ b/x-pack/plugins/observability_solution/slo/kibana.jsonc @@ -21,40 +21,41 @@ "charts", "dashboard", "data", - "dataViews", - "discoverShared", - "lens", "dataViewEditor", "dataViewFieldEditor", + "dataViews", + "discoverShared", + "embeddable", + "features", "fieldFormats", + "lens", + "licensing", "observability", "observabilityShared", + "presentationUtil", "ruleRegistry", + "share", "taskManager", "triggersActionsUi", - "share", - "unifiedSearch", "uiActions", - "embeddable", - "presentationUtil", - "features", - "licensing", - "usageCollection", + "unifiedSearch", + "usageCollection" ], "optionalPlugins": [ "cloud", - "serverless", "discover", "observabilityAIAssistant", + "serverless", "spaces", + "security" ], "requiredBundles": [ "controls", + "embeddable", + "ingestPipelines", "kibanaReact", "kibanaUtils", - "unifiedSearch", - "embeddable", - "ingestPipelines" + "unifiedSearch" ] } } \ No newline at end of file diff --git a/x-pack/plugins/observability_solution/slo/public/types.ts b/x-pack/plugins/observability_solution/slo/public/types.ts index 3c5e7f0e17946..1449a3885c329 100644 --- a/x-pack/plugins/observability_solution/slo/public/types.ts +++ b/x-pack/plugins/observability_solution/slo/public/types.ts @@ -48,6 +48,7 @@ import type { UsageCollectionSetup, UsageCollectionStart, } from '@kbn/usage-collection-plugin/public'; +import { SecurityPluginSetup, SecurityPluginStart } from '@kbn/security-plugin-types-public'; import type { SLORouteRepository } from '../server/routes/get_slo_server_route_repository'; import { SLOPlugin } from './plugin'; @@ -66,6 +67,7 @@ export interface SLOPublicPluginsSetup { triggersActionsUi: TriggersAndActionsUIPublicPluginSetup; uiActions: UiActionsSetup; usageCollection: UsageCollectionSetup; + security?: SecurityPluginSetup; } export interface SLOPublicPluginsStart { @@ -95,6 +97,7 @@ export interface SLOPublicPluginsStart { uiActions: UiActionsStart; unifiedSearch: UnifiedSearchPublicPluginStart; usageCollection: UsageCollectionStart; + security?: SecurityPluginStart; } export type SLOPublicSetup = ReturnType; diff --git a/x-pack/plugins/observability_solution/slo/tsconfig.json b/x-pack/plugins/observability_solution/slo/tsconfig.json index 001c835fcb5cb..78ed571e9265b 100644 --- a/x-pack/plugins/observability_solution/slo/tsconfig.json +++ b/x-pack/plugins/observability_solution/slo/tsconfig.json @@ -99,5 +99,6 @@ "@kbn/observability-alerting-rule-utils", "@kbn/discover-shared-plugin", "@kbn/server-route-repository-client", + "@kbn/security-plugin-types-public" ] }