diff --git a/x-pack/solutions/search/plugins/enterprise_search/common/types/index.ts b/x-pack/solutions/search/plugins/enterprise_search/common/types/index.ts index f698f8e3ef726..e24599070be12 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/common/types/index.ts +++ b/x-pack/solutions/search/plugins/enterprise_search/common/types/index.ts @@ -35,11 +35,8 @@ export interface Meta { page: MetaPage; } -export interface ClientConfigType { - ui: { - enabled: boolean; - }; -} +// eslint-disable-next-line @typescript-eslint/no-empty-interface +export interface ClientConfigType {} export type { ConnectorStats } from './connector_stats'; export type { ElasticsearchIndexWithPrivileges } from './indices'; diff --git a/x-pack/solutions/search/plugins/enterprise_search/public/plugin.ts b/x-pack/solutions/search/plugins/enterprise_search/public/plugin.ts index 98e5fa35be834..c83ea90b6843f 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/public/plugin.ts +++ b/x-pack/solutions/search/plugins/enterprise_search/public/plugin.ts @@ -209,10 +209,6 @@ export class EnterpriseSearchPlugin implements Plugin { private isSidebarEnabled = true; public setup(core: CoreSetup, plugins: PluginsSetup) { - const { config } = this; - if (!config.ui?.enabled) { - return; - } const { cloud, share } = plugins; core.application.register({ @@ -481,9 +477,6 @@ export class EnterpriseSearchPlugin implements Plugin { private readonly sideNavDynamicItems$ = new BehaviorSubject({}); public start(core: CoreStart, plugins: PluginsStart) { - if (!this.config.ui?.enabled) { - return; - } // This must be called here in start() and not in `applications/index.tsx` to prevent loading // race conditions with our apps' `routes.ts` being initialized before `renderApp()` docLinks.setDocLinks(core.docLinks); diff --git a/x-pack/solutions/search/plugins/enterprise_search/server/__mocks__/routerDependencies.mock.ts b/x-pack/solutions/search/plugins/enterprise_search/server/__mocks__/routerDependencies.mock.ts index cc746a6764f22..323b5e0de3844 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/server/__mocks__/routerDependencies.mock.ts +++ b/x-pack/solutions/search/plugins/enterprise_search/server/__mocks__/routerDependencies.mock.ts @@ -24,9 +24,6 @@ export const mockConfig: ConfigType = { hasIncrementalSyncEnabled: true, hasNativeConnectors: true, hasWebCrawler: true, - ui: { - enabled: true, - }, }; /** diff --git a/x-pack/solutions/search/plugins/enterprise_search/server/config.ts b/x-pack/solutions/search/plugins/enterprise_search/server/config.ts index cc461ea9de2d0..6ff050188a33c 100644 --- a/x-pack/solutions/search/plugins/enterprise_search/server/config.ts +++ b/x-pack/solutions/search/plugins/enterprise_search/server/config.ts @@ -16,16 +16,10 @@ export const configSchema = schema.object({ hasIncrementalSyncEnabled: schema.boolean({ defaultValue: true }), hasNativeConnectors: schema.boolean({ defaultValue: true }), hasWebCrawler: schema.boolean({ defaultValue: false }), - ui: schema.object({ - enabled: schema.boolean({ defaultValue: true }), - }), }); export type ConfigType = TypeOf; export const config: PluginConfigDescriptor = { - exposeToBrowser: { - ui: true, - }, schema: configSchema, };