[Logs Essential] Disable exploratory view !! (#225445)

## Summary

Disable exploratory view !!

Fixes https://github.com/elastic/observability-dev/issues/4638 !!

### Testing 
http://localhost:5601/app/exploratory-view

<img width="1728" alt="image"
src="https://github.com/user-attachments/assets/5a03fe49-0057-4a6c-aa76-795fa562edf3"
/>
This commit is contained in:
Shahzad 2025-06-27 10:15:18 +02:00 committed by GitHub
parent ef883eb07c
commit f7253bc0d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 50 additions and 10 deletions

View file

@ -10,6 +10,7 @@ xpack.apm.enabled: false
xpack.legacy_uptime.enabled: false
xpack.ux.enabled: false
xpack.uptime.enabled: false
xpack.exploratoryView.enabled: false
xpack.fleet.internal.registry.excludePackages: [
# Oblt integrations

View file

@ -9,10 +9,10 @@
"plugin": {
"id": "exploratoryView",
"browser": true,
"server": false,
"server": true,
"configPath": [
"xpack",
"exploratory_view"
"exploratoryView"
],
"requiredPlugins": [
"alerting",
@ -52,4 +52,4 @@
"common"
]
}
}
}

View file

@ -0,0 +1,20 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
import { type PluginConfigDescriptor, PluginInitializerContext } from '@kbn/core/server';
import { schema } from '@kbn/config-schema';
export const plugin = async (initializerContext: PluginInitializerContext) => {
const { Plugin } = await import('./plugin');
return new Plugin();
};
export const config: PluginConfigDescriptor = {
schema: schema.object({
enabled: schema.boolean({ defaultValue: true }),
}),
};

View file

@ -0,0 +1,19 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
import { CoreStart, CoreSetup, Plugin as PluginType } from '@kbn/core/server';
export class Plugin implements PluginType {
constructor() {}
public setup(core: CoreSetup, plugins: {}) {
return {};
}
public start(coreStart: CoreStart, pluginsStart: {}) {}
public stop() {}
}

View file

@ -3,7 +3,7 @@
"compilerOptions": {
"outDir": "target/types"
},
"include": ["common/**/*", "public/**/*", "public/**/*.json", "../../../../../typings/**/*"],
"include": ["common/**/*", "public/**/*", "server/**/*", "public/**/*.json", "../../../../../typings/**/*"],
"kbn_references": [
"@kbn/core",
"@kbn/data-plugin",
@ -44,7 +44,8 @@
"@kbn/react-kibana-mount",
"@kbn/core-analytics-browser",
"@kbn/expressions-plugin",
"@kbn/ebt-tools"
"@kbn/ebt-tools",
"@kbn/config-schema"
],
"exclude": ["target/**/*"]
}

View file

@ -28,7 +28,6 @@
"fieldFormats",
"uiActions",
"presentationUtil",
"exploratoryView",
"features",
"files",
"inspector",
@ -50,6 +49,7 @@
],
"optionalPlugins": [
"discover",
"exploratoryView",
"home",
"usageCollection",
"cloud",

View file

@ -29,8 +29,6 @@ export function UXSection({ bucketSize }: Props) {
const { forceUpdate, hasDataMap } = useHasData();
const { services } = useKibana<ObservabilityPublicPluginsStart>();
const { ExploratoryViewEmbeddable } = services.exploratoryView;
const { relativeStart, relativeEnd, absoluteStart, absoluteEnd, lastUpdated } =
useDatePickerContext();
const uxHasDataResponse = hasDataMap.ux;
@ -79,9 +77,10 @@ export function UXSection({ bucketSize }: Props) {
]
);
if (!uxHasDataResponse?.hasData) {
if (!uxHasDataResponse?.hasData || !services.exploratoryView) {
return null;
}
const ExploratoryViewEmbeddable = services.exploratoryView.ExploratoryViewEmbeddable;
const isLoading = status === FETCH_STATUS.LOADING;

View file

@ -144,7 +144,7 @@ export interface ObservabilityPublicPluginsStart {
dataViewEditor: DataViewEditorStart;
discover: DiscoverStart;
embeddable: EmbeddableStart;
exploratoryView: ExploratoryViewPublicStart;
exploratoryView?: ExploratoryViewPublicStart;
fieldFormats: FieldFormatsStart;
guidedOnboarding?: GuidedOnboardingPluginStart;
lens: LensPublicStart;