Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
83640bc
remove data_enhanced
Dosant Apr 6, 2022
758f5ea
fix docs generation
Dosant Apr 6, 2022
b04a82d
fix test
Dosant Apr 6, 2022
cd2ad4d
fix tests
Dosant Apr 7, 2022
051b1a6
Merge branch 'main' of github.com:elastic/kibana into d/2021-12-22-re…
Dosant Apr 7, 2022
503c731
Merge branch 'main' of github.com:elastic/kibana into d/2021-12-22-re…
Dosant Apr 11, 2022
7ad56d4
Merge branch 'main' of github.com:elastic/kibana into d/2021-12-22-re…
Dosant Apr 13, 2022
b52fd3f
more fixes
Dosant Apr 13, 2022
141bce5
Merge branch 'main' into d/2021-12-22-remove-data-enhanced
kibanamachine Apr 14, 2022
5844657
Merge branch 'main' of github.com:elastic/kibana into d/2021-12-22-re…
Dosant Apr 20, 2022
0ce1dd7
fix lint errors
Dosant Apr 20, 2022
79d8fa8
remove data-enhacned mapping
Dosant Apr 20, 2022
3bd62f6
lint fixes
Dosant Apr 20, 2022
2bd8bea
more lint fixes
Dosant Apr 20, 2022
f74d27c
fix i18n
Dosant Apr 20, 2022
fc809ff
Merge branch 'main' of github.com:elastic/kibana into d/2021-12-22-re…
Dosant Apr 20, 2022
1bdbafe
Merge branch 'main' into d/2021-12-22-remove-data-enhanced
kibanamachine Apr 21, 2022
c23c4b3
Merge branch 'main' of github.com:elastic/kibana into d/2021-12-22-re…
Dosant Apr 25, 2022
082aa1e
fix config deprecations
Dosant Apr 25, 2022
ff42c1f
Merge branch 'main' of github.com:elastic/kibana into d/2021-12-22-re…
Dosant Apr 25, 2022
3d037ca
Merge branch 'main' into d/2021-12-22-remove-data-enhanced
kibanamachine Apr 25, 2022
65d3156
Merge branch 'main' of github.com:elastic/kibana into d/2021-12-22-re…
Dosant Apr 28, 2022
d44eaa8
update kibana-docker variables
Dosant Apr 28, 2022
e315b38
Merge branch 'd/2021-12-22-remove-data-enhanced' of github.com:Dosant…
Dosant Apr 28, 2022
032d04a
Merge branch 'main' into d/2021-12-22-remove-data-enhanced
kibanamachine Apr 28, 2022
5fd2964
Merge branch 'main' into d/2021-12-22-remove-data-enhanced
kibanamachine Apr 29, 2022
f6327d9
Merge branch 'main' into d/2021-12-22-remove-data-enhanced
kibanamachine Apr 29, 2022
03ae82f
Merge branch 'main' into d/2021-12-22-remove-data-enhanced
kibanamachine Apr 29, 2022
e2c6c68
Merge branch 'main' into d/2021-12-22-remove-data-enhanced
kibanamachine Apr 29, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .buildkite/scripts/steps/storybooks/build_and_upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const STORYBOOKS = [
'custom_integrations',
'dashboard_enhanced',
'dashboard',
'data_enhanced',
'data',
'embeddable',
'expression_error',
'expression_image',
Expand Down
1 change: 0 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
/src/plugins/inspector/ @elastic/kibana-app-services
/src/plugins/unified_search/ @elastic/kibana-app-services
/x-pack/examples/ui_actions_enhanced_examples/ @elastic/kibana-app-services
/x-pack/plugins/data_enhanced/ @elastic/kibana-app-services
/x-pack/plugins/embeddable_enhanced/ @elastic/kibana-app-services
/x-pack/plugins/ui_actions_enhanced/ @elastic/kibana-app-services
/x-pack/plugins/runtime_fields @elastic/kibana-app-services
Expand Down
2 changes: 1 addition & 1 deletion dev_docs/tutorials/data/search.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ export const myEnhancedSearchStrategyProvider = (
await ese.cancel(id, options, deps);
},
extend: async (id, keepAlive, options, deps) => {
// async search results are not stored indefinitely. By default, they expire after 7 days (or as defined by xpack.data_enhanced.search.sessions.defaultExpiration setting in kibana.yml).
// async search results are not stored indefinitely. By default, they expire after 7 days (or as defined by data.search.sessions.defaultExpiration setting in kibana.yml).
// call the extend method of the async strategy you are using or implement your own extend function.
await ese.extend(id, options, deps);
},
Expand Down
4 changes: 0 additions & 4 deletions docs/developer/plugin-list.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -412,10 +412,6 @@ The plugin exposes the static DefaultEditorController class to consume.
|Adds drilldown capabilities to dashboard. Owned by the Kibana App team.


|{kib-repo}blob/{branch}/x-pack/plugins/data_enhanced/README.md[dataEnhanced]
|The data_enhanced plugin is the x-pack counterpart to the src/plguins/data plugin.


|{kib-repo}blob/{branch}/x-pack/plugins/data_visualizer/README.md[dataVisualizer]
|The data_visualizer plugin enables you to explore the fields in your data.

Expand Down
3 changes: 1 addition & 2 deletions packages/kbn-optimizer/limits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ pageLoadAssetSize:
fieldFormats: 65209
kibanaReact: 74422
share: 71239
uiActions: 35121
dataEnhanced: 24980
uiActions: 35121
embeddable: 87309
embeddableEnhanced: 22107
uiActionsEnhanced: 38494
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ kibana_vars=(
csp.report_to
data.autocomplete.valueSuggestions.terminateAfter
data.autocomplete.valueSuggestions.timeout
data.search.sessions.defaultExpiration
data.search.sessions.enabled
data.search.sessions.maxUpdateRetries
data.search.sessions.notTouchedInProgressTimeout
data.search.sessions.notTouchedTimeout
data.search.sessions.pageSize
data.search.sessions.trackingInterval
unifiedSearch.autocomplete.valueSuggestions.terminateAfter
unifiedSearch.autocomplete.valueSuggestions.timeout
unifiedSearch.autocomplete.querySuggestions.enabled
Expand Down
2 changes: 1 addition & 1 deletion src/dev/storybook/aliases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const storybookAliases = {
custom_integrations: 'src/plugins/custom_integrations/storybook',
dashboard_enhanced: 'x-pack/plugins/dashboard_enhanced/.storybook',
dashboard: 'src/plugins/dashboard/.storybook',
data_enhanced: 'x-pack/plugins/data_enhanced/.storybook',
data: 'src/plugins/data/.storybook',
discover: 'src/plugins/discover/.storybook',
embeddable: 'src/plugins/embeddable/.storybook',
expression_error: 'src/plugins/expression_error/.storybook',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/*
* 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.
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/

module.exports = require('@kbn/storybook').defaultConfig;
31 changes: 16 additions & 15 deletions src/plugins/data/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,6 @@

import { schema, TypeOf } from '@kbn/config-schema';

export const configSchema = schema.object({
search: schema.object({
aggs: schema.object({
shardDelay: schema.object({
// Whether or not to register the shard_delay (which is only available in snapshot versions
// of Elasticsearch) agg type/expression function to make it available in the UI for either
// functional or manual testing
enabled: schema.boolean({ defaultValue: false }),
}),
}),
}),
});

export type ConfigSchema = TypeOf<typeof configSchema>;

export const searchSessionsConfigSchema = schema.object({
/**
* Turns the feature on \ off (incl. removing indicator and management screens)
Expand Down Expand Up @@ -90,4 +75,20 @@ export const searchSessionsConfigSchema = schema.object({
}),
});

export const configSchema = schema.object({
search: schema.object({
aggs: schema.object({
shardDelay: schema.object({
// Whether or not to register the shard_delay (which is only available in snapshot versions
// of Elasticsearch) agg type/expression function to make it available in the UI for either
// functional or manual testing
enabled: schema.boolean({ defaultValue: false }),
}),
}),
sessions: searchSessionsConfigSchema,
}),
});

export type ConfigSchema = TypeOf<typeof configSchema>;

export type SearchSessionsConfigSchema = TypeOf<typeof searchSessionsConfigSchema>;
12 changes: 11 additions & 1 deletion src/plugins/data/kibana.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,17 @@
"version": "kibana",
"server": true,
"ui": true,
"requiredPlugins": ["bfetch", "expressions", "uiActions", "share", "inspector", "fieldFormats", "dataViews"],
"requiredPlugins": [
"bfetch",
"expressions",
"uiActions",
"share",
"inspector",
"fieldFormats",
"dataViews",
"screenshotMode",
"management"
],
"serviceFolders": ["search", "query", "ui"],
"optionalPlugins": ["usageCollection", "taskManager", "security"],
"extraPublicDirs": ["common"],
Expand Down
10 changes: 8 additions & 2 deletions src/plugins/data/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export class DataPublicPlugin
usageCollection,
inspector,
fieldFormats,
management,
}: DataSetupDependencies
): DataPublicPluginSetup {
const startServices = createStartServicesGetter(core.getStartServices);
Expand All @@ -84,6 +85,7 @@ export class DataPublicPlugin
usageCollection,
expressions,
nowProvider: this.nowProvider,
management,
});

const queryService = this.queryService.setup({
Expand Down Expand Up @@ -117,7 +119,7 @@ export class DataPublicPlugin

public start(
core: CoreStart,
{ uiActions, fieldFormats, dataViews }: DataStartDependencies
{ uiActions, fieldFormats, dataViews, screenshotMode }: DataStartDependencies
): DataPublicPluginStart {
const { uiSettings, notifications, overlays } = core;
setNotifications(notifications);
Expand All @@ -131,7 +133,11 @@ export class DataPublicPlugin
uiSettings,
});

const search = this.searchService.start(core, { fieldFormats, indexPatterns: dataViews });
const search = this.searchService.start(core, {
fieldFormats,
indexPatterns: dataViews,
screenshotMode,
});
setSearchService(search);

uiActions.addTriggerAction(
Expand Down
14 changes: 13 additions & 1 deletion src/plugins/data/public/search/search_service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ import { CoreSetup, CoreStart } from '@kbn/core/public';

import { SearchService, SearchServiceSetupDependencies } from './search_service';
import { bfetchPluginMock } from '@kbn/bfetch-plugin/public/mocks';
import { managementPluginMock } from '@kbn/management-plugin/public/mocks';
import { screenshotModePluginMock } from '@kbn/screenshot-mode-plugin/public/mocks';

describe('Search service', () => {
let searchService: SearchService;
let mockCoreSetup: MockedKeys<CoreSetup>;
let mockCoreStart: MockedKeys<CoreStart>;
const initializerContext = coreMock.createPluginInitializerContext();
initializerContext.config.get = jest.fn().mockReturnValue({
search: { aggs: { shardDelay: { enabled: false } } },
search: { aggs: { shardDelay: { enabled: false } }, sessions: { enabled: true } },
});

beforeEach(() => {
Expand All @@ -35,6 +37,7 @@ describe('Search service', () => {
packageInfo: { version: '8' },
bfetch,
expressions: { registerFunction: jest.fn(), registerType: jest.fn() },
management: managementPluginMock.createSetupContract(),
} as unknown as SearchServiceSetupDependencies);
expect(setup).toHaveProperty('aggs');
expect(setup).toHaveProperty('usageCollector');
Expand All @@ -45,9 +48,18 @@ describe('Search service', () => {

describe('start()', () => {
it('exposes proper contract', async () => {
const bfetch = bfetchPluginMock.createSetupContract();
searchService.setup(mockCoreSetup, {
packageInfo: { version: '8' },
bfetch,
expressions: { registerFunction: jest.fn(), registerType: jest.fn() },
management: managementPluginMock.createSetupContract(),
} as unknown as SearchServiceSetupDependencies);

const start = searchService.start(mockCoreStart, {
fieldFormats: {},
indexPatterns: {},
screenshotMode: screenshotModePluginMock.createStartContract(),
} as any);
expect(start).toHaveProperty('aggs');
expect(start).toHaveProperty('search');
Expand Down
Loading