mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[Moving] Move UX folder into /x-pack/observability_solution
(#177470)
This commit is contained in:
parent
34026becf6
commit
9f2bde1b8a
191 changed files with 179 additions and 367 deletions
|
@ -61,7 +61,7 @@ disabled:
|
|||
- x-pack/plugins/synthetics/e2e/config.ts
|
||||
- x-pack/plugins/uptime/e2e/uptime/synthetics_run.ts
|
||||
- x-pack/plugins/synthetics/e2e/synthetics/synthetics_run.ts
|
||||
- x-pack/plugins/ux/e2e/synthetics_run.ts
|
||||
- x-pack/plugins/observability_solution/ux/e2e/synthetics_run.ts
|
||||
- x-pack/plugins/exploratory_view/e2e/synthetics_run.ts
|
||||
|
||||
# Configs that exist but weren't running in CI when this file was introduced
|
||||
|
|
|
@ -8,7 +8,7 @@ steps:
|
|||
- quick_checks
|
||||
timeout_in_minutes: 60
|
||||
artifact_paths:
|
||||
- 'x-pack/plugins/ux/e2e/.journeys/**/*'
|
||||
- 'x-pack/plugins/observability_solution/ux/e2e/.journeys/**/*'
|
||||
retry:
|
||||
automatic:
|
||||
- exit_status: '-1'
|
||||
|
|
|
@ -13,4 +13,4 @@ echo "--- User Experience @elastic/synthetics Tests"
|
|||
|
||||
cd "$XPACK_DIR"
|
||||
|
||||
node plugins/ux/scripts/e2e.js --kibana-install-dir "$KIBANA_BUILD_LOCATION" ${GREP:+--grep \"${GREP}\"}
|
||||
node plugins/observability_solution/ux/scripts/e2e.js --kibana-install-dir "$KIBANA_BUILD_LOCATION" ${GREP:+--grep \"${GREP}\"}
|
||||
|
|
|
@ -874,7 +874,7 @@ module.exports = {
|
|||
'x-pack/plugins/apm/**/*.{js,mjs,ts,tsx}',
|
||||
'x-pack/plugins/observability/**/*.{js,mjs,ts,tsx}',
|
||||
'x-pack/plugins/exploratory_view/**/*.{js,mjs,ts,tsx}',
|
||||
'x-pack/plugins/ux/**/*.{js,mjs,ts,tsx}',
|
||||
'x-pack/plugins/observability_solution/ux/**/*.{js,mjs,ts,tsx}',
|
||||
],
|
||||
rules: {
|
||||
'no-console': ['warn', { allow: ['error'] }],
|
||||
|
@ -920,7 +920,7 @@ module.exports = {
|
|||
'x-pack/plugins/observability_shared/**/*.tsx',
|
||||
'x-pack/plugins/profiling/**/*.tsx',
|
||||
'x-pack/plugins/synthetics/**/*.tsx',
|
||||
'x-pack/plugins/ux/**/*.tsx',
|
||||
'x-pack/plugins/observability_solution/ux/**/*.tsx',
|
||||
'src/plugins/ai_assistant_management/**/*.tsx',
|
||||
],
|
||||
rules: {
|
||||
|
@ -938,7 +938,7 @@ module.exports = {
|
|||
'x-pack/plugins/observability_shared/**/!(*.stories.tsx|*.test.tsx|*.storybook_decorator.tsx|*.mock.tsx)',
|
||||
'x-pack/plugins/profiling/**/!(*.stories.tsx|*.test.tsx|*.storybook_decorator.tsx|*.mock.tsx)',
|
||||
'x-pack/plugins/synthetics/**/!(*.stories.tsx|*.test.tsx|*.storybook_decorator.tsx|*.mock.tsx)',
|
||||
'x-pack/plugins/ux/**/!(*.stories.tsx|*.test.tsx|*.storybook_decorator.tsx|*.mock.tsx)',
|
||||
'x-pack/plugins/observability_solution/ux/**/!(*.stories.tsx|*.test.tsx|*.storybook_decorator.tsx|*.mock.tsx)',
|
||||
'src/plugins/ai_assistant_management/**/!(*.stories.tsx|*.test.tsx|*.storybook_decorator.tsx|*.mock.tsx)',
|
||||
],
|
||||
rules: {
|
||||
|
|
2
.github/CODEOWNERS
vendored
2
.github/CODEOWNERS
vendored
|
@ -856,7 +856,7 @@ x-pack/test/security_api_integration/plugins/user_profiles_consumer @elastic/kib
|
|||
packages/kbn-utility-types @elastic/kibana-core
|
||||
packages/kbn-utility-types-jest @elastic/kibana-operations
|
||||
packages/kbn-utils @elastic/kibana-operations
|
||||
x-pack/plugins/ux @elastic/obs-ux-infra_services-team
|
||||
x-pack/plugins/observability_solution/ux @elastic/obs-ux-infra_services-team
|
||||
examples/v8_profiler_examples @elastic/response-ops
|
||||
packages/kbn-validate-next-docs-cli @elastic/kibana-operations
|
||||
src/plugins/vis_default_editor @elastic/kibana-visualizations
|
||||
|
|
46
.github/paths-labeller.yml
vendored
46
.github/paths-labeller.yml
vendored
|
@ -1,24 +1,24 @@
|
|||
---
|
||||
- "Feature:Embedding":
|
||||
- "src/plugins/embeddable/**/*.*"
|
||||
- "src/plugins/dashboard_embeddable_container/**/*.*"
|
||||
- "Feature:Drilldowns":
|
||||
- "x-pack/plugins/drilldowns/**/*.*"
|
||||
- "x-pack/plugins/dashboard_enhanced/public/services/drilldowns/**/*.*"
|
||||
- "Feature:ExpressionLanguage":
|
||||
- "src/plugins/expressions/**/*.*"
|
||||
- "src/plugins/bfetch/**/*.*"
|
||||
- "Team:obs-ux-infra_services":
|
||||
- "x-pack/plugins/apm/**/*.*"
|
||||
- "x-pack/test/apm_api_integration/**/*.*"
|
||||
- "packages/kbn-apm-synthtrace/**/*.*"
|
||||
- "packages/kbn-apm-synthtrace-client/**/*.*"
|
||||
- "packages/kbn-apm-utils/**/*.*"
|
||||
- "x-pack/plugins/synthetics/**/*.*"
|
||||
- "x-pack/plugins/ux/**/*.*"
|
||||
- "x-pack/plugins/observability/public/components/shared/exploratory_view/**/*.*"
|
||||
- "Team:Fleet":
|
||||
- "x-pack/plugins/fleet/**/*.*"
|
||||
- "x-pack/test/fleet_api_integration/**/*.*"
|
||||
- "Team:obs-ux-management":
|
||||
- "x-pack/plugins/observability/**/*.*"
|
||||
- 'Feature:Embedding':
|
||||
- 'src/plugins/embeddable/**/*.*'
|
||||
- 'src/plugins/dashboard_embeddable_container/**/*.*'
|
||||
- 'Feature:Drilldowns':
|
||||
- 'x-pack/plugins/drilldowns/**/*.*'
|
||||
- 'x-pack/plugins/dashboard_enhanced/public/services/drilldowns/**/*.*'
|
||||
- 'Feature:ExpressionLanguage':
|
||||
- 'src/plugins/expressions/**/*.*'
|
||||
- 'src/plugins/bfetch/**/*.*'
|
||||
- 'Team:obs-ux-infra_services':
|
||||
- 'x-pack/plugins/apm/**/*.*'
|
||||
- 'x-pack/test/apm_api_integration/**/*.*'
|
||||
- 'packages/kbn-apm-synthtrace/**/*.*'
|
||||
- 'packages/kbn-apm-synthtrace-client/**/*.*'
|
||||
- 'packages/kbn-apm-utils/**/*.*'
|
||||
- 'x-pack/plugins/synthetics/**/*.*'
|
||||
- 'x-pack/plugins/observability_solution/ux/**/*.*'
|
||||
- 'x-pack/plugins/observability/public/components/shared/exploratory_view/**/*.*'
|
||||
- 'Team:Fleet':
|
||||
- 'x-pack/plugins/fleet/**/*.*'
|
||||
- 'x-pack/test/fleet_api_integration/**/*.*'
|
||||
- 'Team:obs-ux-management':
|
||||
- 'x-pack/plugins/observability/**/*.*'
|
||||
|
|
|
@ -1623,7 +1623,7 @@ migrates to using the Kibana Privilege model: https://github.com/elastic/kibana/
|
|||
|
||||
| Deprecated API | Reference location(s) | Remove By |
|
||||
| ---------------|-----------|-----------|
|
||||
| <DocLink id="kibKibanaReactPluginApi" section="def-public.KibanaThemeProvider" text="KibanaThemeProvider"/> | [ux_app.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/ux/public/application/ux_app.tsx#:~:text=KibanaThemeProvider), [ux_app.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/ux/public/application/ux_app.tsx#:~:text=KibanaThemeProvider), [ux_app.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/ux/public/application/ux_app.tsx#:~:text=KibanaThemeProvider) | - |
|
||||
| <DocLink id="kibKibanaReactPluginApi" section="def-public.KibanaThemeProvider" text="KibanaThemeProvider"/> | [ux_app.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/observability_solution/ux/public/application/ux_app.tsx#:~:text=KibanaThemeProvider), [ux_app.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/observability_solution/ux/public/application/ux_app.tsx#:~:text=KibanaThemeProvider), [ux_app.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/observability_solution/ux/public/application/ux_app.tsx#:~:text=KibanaThemeProvider) | - |
|
||||
|
||||
|
||||
|
||||
|
@ -1725,4 +1725,4 @@ migrates to using the Kibana Privilege model: https://github.com/elastic/kibana/
|
|||
| Deprecated API | Reference location(s) | Remove By |
|
||||
| ---------------|-----------|-----------|
|
||||
| <DocLink id="kibKibanaReactPluginApi" section="def-public.KibanaThemeProvider" text="KibanaThemeProvider"/> | [shared_imports.ts](https://github.com/elastic/kibana/tree/main/x-pack/plugins/watcher/public/application/shared_imports.ts#:~:text=KibanaThemeProvider), [index.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/watcher/public/application/index.tsx#:~:text=KibanaThemeProvider), [index.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/watcher/public/application/index.tsx#:~:text=KibanaThemeProvider), [index.tsx](https://github.com/elastic/kibana/tree/main/x-pack/plugins/watcher/public/application/index.tsx#:~:text=KibanaThemeProvider) | - |
|
||||
| <DocLink id="kibLicensingPluginApi" section="def-public.LicensingPluginSetup.license$" text="license$"/> | [plugin.ts](https://github.com/elastic/kibana/tree/main/x-pack/plugins/watcher/public/plugin.ts#:~:text=license%24), [plugin.ts](https://github.com/elastic/kibana/tree/main/x-pack/plugins/watcher/public/plugin.ts#:~:text=license%24) | 8.8.0 |
|
||||
| <DocLink id="kibLicensingPluginApi" section="def-public.LicensingPluginSetup.license$" text="license$"/> | [plugin.ts](https://github.com/elastic/kibana/tree/main/x-pack/plugins/watcher/public/plugin.ts#:~:text=license%24), [plugin.ts](https://github.com/elastic/kibana/tree/main/x-pack/plugins/watcher/public/plugin.ts#:~:text=license%24) | 8.8.0 |
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -14,10 +14,8 @@
|
|||
"tags": [],
|
||||
"label": "UxPluginStart",
|
||||
"description": [],
|
||||
"signature": [
|
||||
"void"
|
||||
],
|
||||
"path": "x-pack/plugins/ux/public/plugin.ts",
|
||||
"signature": ["void"],
|
||||
"path": "x-pack/plugins/observability_solution/ux/public/plugin.ts",
|
||||
"deprecated": false,
|
||||
"trackAdoption": false,
|
||||
"lifecycle": "start",
|
||||
|
@ -40,4 +38,4 @@
|
|||
"misc": [],
|
||||
"objects": []
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -857,7 +857,7 @@ in their infrastructure.
|
|||
|NOTE: This plugin contains implementation of URL drilldown. For drilldowns infrastructure code refer to ui_actions_enhanced plugin.
|
||||
|
||||
|
||||
|{kib-repo}blob/{branch}/x-pack/plugins/ux/readme.md[ux]
|
||||
|{kib-repo}blob/{branch}/x-pack/plugins/observability_solution/ux/readme.md[ux]
|
||||
|https://docs.elastic.dev/kibana-dev-docs/welcome
|
||||
|
||||
|
||||
|
|
|
@ -845,7 +845,7 @@
|
|||
"@kbn/utility-types": "link:packages/kbn-utility-types",
|
||||
"@kbn/utility-types-jest": "link:packages/kbn-utility-types-jest",
|
||||
"@kbn/utils": "link:packages/kbn-utils",
|
||||
"@kbn/ux-plugin": "link:x-pack/plugins/ux",
|
||||
"@kbn/ux-plugin": "link:x-pack/plugins/observability_solution/ux",
|
||||
"@kbn/v8-profiler-examples-plugin": "link:examples/v8_profiler_examples",
|
||||
"@kbn/vis-default-editor-plugin": "link:src/plugins/vis_default_editor",
|
||||
"@kbn/vis-type-gauge-plugin": "link:src/plugins/vis_types/gauge",
|
||||
|
|
|
@ -14,7 +14,7 @@ module.exports = {
|
|||
USES_STYLED_COMPONENTS: [
|
||||
/packages[\/\\]kbn-ui-shared-deps-(npm|src)[\/\\]/,
|
||||
/src[\/\\]plugins[\/\\](kibana_react)[\/\\]/,
|
||||
/x-pack[\/\\]plugins[\/\\](apm|beats_management|cases|fleet|infra|lists|observability|observability_shared|exploratory_view|security_solution|timelines|synthetics|ux|uptime)[\/\\]/,
|
||||
/x-pack[\/\\]plugins[\/\\](apm|beats_management|cases|fleet|infra|lists|observability|observability_shared|exploratory_view|security_solution|timelines|synthetics|observability_solution\/ux|uptime)[\/\\]/,
|
||||
/x-pack[\/\\]test[\/\\]plugin_functional[\/\\]plugins[\/\\]resolver_test[\/\\]/,
|
||||
/x-pack[\/\\]packages[\/\\]elastic_assistant[\/\\]/,
|
||||
/x-pack[\/\\]packages[\/\\]security-solution[\/\\]ecs_data_quality_dashboard[\/\\]/,
|
||||
|
|
|
@ -1706,8 +1706,8 @@
|
|||
"@kbn/utility-types-jest/*": ["packages/kbn-utility-types-jest/*"],
|
||||
"@kbn/utils": ["packages/kbn-utils"],
|
||||
"@kbn/utils/*": ["packages/kbn-utils/*"],
|
||||
"@kbn/ux-plugin": ["x-pack/plugins/ux"],
|
||||
"@kbn/ux-plugin/*": ["x-pack/plugins/ux/*"],
|
||||
"@kbn/ux-plugin": ["x-pack/plugins/observability_solution/ux"],
|
||||
"@kbn/ux-plugin/*": ["x-pack/plugins/observability_solution/ux/*"],
|
||||
"@kbn/v8-profiler-examples-plugin": ["examples/v8_profiler_examples"],
|
||||
"@kbn/v8-profiler-examples-plugin/*": ["examples/v8_profiler_examples/*"],
|
||||
"@kbn/validate-next-docs-cli": ["packages/kbn-validate-next-docs-cli"],
|
||||
|
|
|
@ -99,7 +99,7 @@
|
|||
"xpack.triggersActionsUI": "plugins/triggers_actions_ui",
|
||||
"xpack.upgradeAssistant": "plugins/upgrade_assistant",
|
||||
"xpack.synthetics": ["plugins/synthetics"],
|
||||
"xpack.ux": ["plugins/ux"],
|
||||
"xpack.ux": ["plugins/observability_solution/ux"],
|
||||
"xpack.uptime": ["plugins/uptime"],
|
||||
"xpack.urlDrilldown": "plugins/drilldowns/url_drilldown",
|
||||
"xpack.watcher": "plugins/watcher"
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
UUID="$(cat /proc/sys/kernel/random/uuid)"
|
||||
export UUID
|
||||
|
||||
node x-pack/plugins/observability_solution/ux/.buildkite/pipelines/flaky.js | buildkite-agent pipeline upload
|
|
@ -5,11 +5,11 @@ script for standing up the test server.
|
|||
|
||||
### Start the server
|
||||
|
||||
From `~/x-pack/plugins/ux/scripts`, run `node e2e.js --server`. Wait for the server to startup. It will provide you
|
||||
From `~/x-pack/plugins/observability_solution/ux/scripts`, run `node e2e.js --server`. Wait for the server to startup. It will provide you
|
||||
with an example run command when it finishes.
|
||||
|
||||
### Run the tests
|
||||
|
||||
From this directory, `~/x-pack/plugins/ux/e2e`, you can now run `node ../../../../scripts/functional_test_runner --config synthetics_run.ts`.
|
||||
From this directory, `~/x-pack/plugins/observability_solution/ux/e2e`, you can now run `node ../../../../../scripts/functional_test_runner --config synthetics_run.ts`.
|
||||
|
||||
In addition to the usual flags like `--grep`, you can also specify `--no-headless` in order to view your tests as you debug/develop.
|
|
@ -16,7 +16,7 @@ const NODE_TLS_REJECT_UNAUTHORIZED = '1';
|
|||
export const esArchiverLoad = (folder: string) => {
|
||||
const path = Path.join(ES_ARCHIVE_DIR, folder);
|
||||
execSync(
|
||||
`node ../../../../scripts/es_archiver load "${path}" --config ../../../test/functional/config.base.js`,
|
||||
`node ../../../../../scripts/es_archiver load "${path}" --config ../../../../test/functional/config.base.js`,
|
||||
{ env: { ...process.env, NODE_TLS_REJECT_UNAUTHORIZED }, stdio: 'inherit' }
|
||||
);
|
||||
};
|
||||
|
@ -24,14 +24,14 @@ export const esArchiverLoad = (folder: string) => {
|
|||
export const esArchiverUnload = (folder: string) => {
|
||||
const path = Path.join(ES_ARCHIVE_DIR, folder);
|
||||
execSync(
|
||||
`node ../../../../scripts/es_archiver unload "${path}" --config ../../../test/functional/config.base.js`,
|
||||
`node ../../../../../scripts/es_archiver unload "${path}" --config ../../../../test/functional/config.base.js`,
|
||||
{ env: { ...process.env, NODE_TLS_REJECT_UNAUTHORIZED }, stdio: 'inherit' }
|
||||
);
|
||||
};
|
||||
|
||||
export const esArchiverResetKibana = () => {
|
||||
execSync(
|
||||
`node ../../../../scripts/es_archiver empty-kibana-index --config ../../../test/functional/config.base.js`,
|
||||
`node ../../../../../scripts/es_archiver empty-kibana-index --config ../../../../test/functional/config.base.js`,
|
||||
{ env: { ...process.env, NODE_TLS_REJECT_UNAUTHORIZED }, stdio: 'inherit' }
|
||||
);
|
||||
};
|
10
x-pack/plugins/observability_solution/ux/e2e/tsconfig.json
Normal file
10
x-pack/plugins/observability_solution/ux/e2e/tsconfig.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"extends": "../../../../../tsconfig.base.json",
|
||||
"exclude": ["tmp", "target/**/*"],
|
||||
"include": ["./**/*"],
|
||||
"compilerOptions": {
|
||||
"outDir": "target/types",
|
||||
"types": ["node"]
|
||||
},
|
||||
"kbn_references": ["@kbn/test", "@kbn/apm-plugin", "@kbn/es-archiver"]
|
||||
}
|
|
@ -9,6 +9,6 @@ const path = require('path');
|
|||
|
||||
module.exports = {
|
||||
preset: '@kbn/test',
|
||||
rootDir: path.resolve(__dirname, '../../..'),
|
||||
roots: ['<rootDir>/x-pack/plugins/ux'],
|
||||
rootDir: path.resolve(__dirname, '../../../..'),
|
||||
roots: ['<rootDir>/x-pack/plugins/observability_solution/ux'],
|
||||
};
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue