Skip to content

Commit

Permalink
Relocating module @kbn/ux-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
gsoldevila committed Dec 10, 2024
1 parent bcbfd56 commit 592847f
Show file tree
Hide file tree
Showing 184 changed files with 45 additions and 45 deletions.
2 changes: 1 addition & 1 deletion .buildkite/ftr_oblt_stateful_configs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ disabled:
- x-pack/plugins/observability_solution/synthetics/e2e/config.ts
- x-pack/plugins/observability_solution/synthetics/e2e/synthetics/synthetics_run.ts
- x-pack/plugins/observability_solution/exploratory_view/e2e/synthetics_run.ts
- x-pack/plugins/observability_solution/ux/e2e/synthetics_run.ts
- x-pack/solutions/observability/plugins/ux/e2e/synthetics_run.ts
- x-pack/plugins/observability_solution/slo/e2e/synthetics_run.ts

defaultQueue: 'n2-4-spot'
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/pipelines/pull_request/ux_plugin_e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ steps:
- check_oas_snapshot
timeout_in_minutes: 60
artifact_paths:
- 'x-pack/plugins/observability_solution/ux/e2e/.journeys/**/*'
- 'x-pack/solutions/observability/plugins/ux/e2e/.journeys/**/*'
retry:
automatic:
- exit_status: '-1'
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/scripts/pipelines/pull_request/pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const getPipeline = (filename: string, removeSteps = true) => {

if (
(await doAnyChangesMatch([
/^x-pack\/plugins\/observability_solution\/ux/,
/^x-pack\/solutions\/observability\/plugins\/ux/,
/^x-pack\/plugins\/observability_solution\/exploratory_view/,
])) ||
GITHUB_PR_LABELS.includes('ci:synthetics-runner-suites')
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/scripts/steps/functional/ux_synthetics_e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ echo "--- User Experience @elastic/synthetics Tests"

cd "$XPACK_DIR"

node plugins/observability_solution/ux/scripts/e2e.js --kibana-install-dir "$KIBANA_BUILD_LOCATION" ${GREP:+--grep \"${GREP}\"}
node solutions/observability/plugins/ux/scripts/e2e.js --kibana-install-dir "$KIBANA_BUILD_LOCATION" ${GREP:+--grep \"${GREP}\"}
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@ module.exports = {
'x-pack/solutions/observability/plugins/apm/**/*.{js,mjs,ts,tsx}',
'x-pack/plugins/observability_solution/observability/**/*.{js,mjs,ts,tsx}',
'x-pack/plugins/observability_solution/exploratory_view/**/*.{js,mjs,ts,tsx}',
'x-pack/plugins/observability_solution/ux/**/*.{js,mjs,ts,tsx}',
'x-pack/solutions/observability/plugins/ux/**/*.{js,mjs,ts,tsx}',
'x-pack/plugins/observability_solution/slo/**/*.{js,mjs,ts,tsx}',
],
rules: {
Expand Down
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,6 @@ x-pack/plugins/observability_solution/slo @elastic/obs-ux-management-team
x-pack/plugins/observability_solution/synthetics @elastic/obs-ux-management-team
x-pack/plugins/observability_solution/synthetics/e2e @elastic/obs-ux-management-team
x-pack/plugins/observability_solution/uptime @elastic/obs-ux-management-team
x-pack/plugins/observability_solution/ux @elastic/obs-ux-infra_services-team
x-pack/plugins/osquery @elastic/security-defend-workflows
x-pack/plugins/painless_lab @elastic/kibana-management
x-pack/plugins/remote_clusters @elastic/kibana-management
Expand Down Expand Up @@ -997,6 +996,7 @@ x-pack/solutions/observability/plugins/observability_solution/entity_manager_app
x-pack/solutions/observability/plugins/profiling @elastic/obs-ux-infra_services-team
x-pack/solutions/observability/plugins/profiling_data_access @elastic/obs-ux-infra_services-team
x-pack/solutions/observability/plugins/Users/gsoldevila/Work/kibana-quaternary/x-pack/examples/exploratory_view_example @elastic/obs-ux-infra_services-team
x-pack/solutions/observability/plugins/ux @elastic/obs-ux-infra_services-team
x-pack/test
x-pack/test_serverless
x-pack/test/alerting_api_integration/common/plugins/aad @elastic/response-ops
Expand Down
2 changes: 1 addition & 1 deletion .github/paths-labeller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
- 'packages/kbn-apm-synthtrace/**/*.*'
- 'packages/kbn-apm-synthtrace-client/**/*.*'
- 'src/platform/packages/shared/kbn-apm-utils/**/*.*'
- 'x-pack/plugins/observability_solution/ux/**/*.*'
- 'x-pack/solutions/observability/plugins/ux/**/*.*'
- 'Team:Fleet':
- 'x-pack/plugins/fleet/**/*.*'
- 'x-pack/test/fleet_api_integration/**/*.*'
Expand Down
2 changes: 1 addition & 1 deletion docs/developer/plugin-list.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,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/observability_solution/ux/readme.md[ux]
|{kib-repo}blob/{branch}/x-pack/solutions/observability/plugins/ux/readme.md[ux]
|https://docs.elastic.dev/kibana-dev-docs/welcome
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,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/observability_solution/ux",
"@kbn/ux-plugin": "link:x-pack/solutions/observability/plugins/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",
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -2016,8 +2016,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/observability_solution/ux"],
"@kbn/ux-plugin/*": ["x-pack/plugins/observability_solution/ux/*"],
"@kbn/ux-plugin": ["x-pack/solutions/observability/plugins/ux"],
"@kbn/ux-plugin/*": ["x-pack/solutions/observability/plugins/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"],
Expand Down
2 changes: 1 addition & 1 deletion x-pack/.i18nrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
"plugins/observability_solution/synthetics"
],
"xpack.ux": [
"plugins/observability_solution/ux"
"solutions/observability/plugins/ux"
],
"xpack.urlDrilldown": "plugins/drilldowns/url_drilldown",
"xpack.watcher": "plugins/watcher"
Expand Down

This file was deleted.

14 changes: 0 additions & 14 deletions x-pack/plugins/observability_solution/ux/readme.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

set -euo pipefail

UUID="$(cat /proc/sys/kernel/random/uuid)"
export UUID

node x-pack/solutions/observability/plugins/ux/.buildkite/pipelines/flaky.js | buildkite-agent pipeline upload
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ script for standing up the test server.

### Start the server

From `~/x-pack/plugins/observability_solution/ux/scripts`, run `node e2e.js --server`. Wait for the server to startup. It will provide you
From `~/x-pack/solutions/observability/plugins/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/observability_solution/ux/e2e`, you can now run `node ../../../../../scripts/functional_test_runner --config synthetics_run.ts`.
From this directory, `~/x-pack/solutions/observability/plugins/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.
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@ 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' }
);
};

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' }
);
};
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../../../../tsconfig.base.json",
"extends": "../../../../../../tsconfig.base.json",
"exclude": ["tmp", "target/**/*"],
"include": ["./**/*"],
"compilerOptions": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ const path = require('path');

module.exports = {
preset: '@kbn/test',
rootDir: path.resolve(__dirname, '../../../..'),
roots: ['<rootDir>/x-pack/plugins/observability_solution/ux'],
rootDir: path.resolve(__dirname, '../../../../..'),
roots: ['<rootDir>/x-pack/solutions/observability/plugins/ux'],
};
14 changes: 14 additions & 0 deletions x-pack/solutions/observability/plugins/ux/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Documentation for UX UI developers

https://docs.elastic.dev/kibana-dev-docs/welcome

## Running E2E Tests

The tests are managed via the `scripts/e2e.js` file. This script accepts numerous options.

From the Kibana root you can run `node x-pack/solutions/observability/plugins/ux/scripts/e2e.js` to simply stand up the stack, load data, and run the tests.

If you are developing a new test, it is better to stand up the stack in one shell and load data/run tests in a second session. You can do this by running:

- `node ./x-pack/solutions/observability/plugins/ux/scripts/e2e.js --server`
- `node ./x-pack/solutions/observability/plugins/ux/scripts/e2e.js --runner`, you can also specify `--grep "{TEST_NAME}"` to run a specific series of tests
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"extends": "../../../../tsconfig.base.json",
"extends": "../../../../../tsconfig.base.json",
"compilerOptions": {
"outDir": "target/types"
},
"include": [
"../../../../typings/**/*",
"../../../../../typings/**/*",
"common/**/*",
"public/**/*",
"server/**/*",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7848,7 +7848,7 @@
version "0.0.0"
uid ""

"@kbn/ux-plugin@link:x-pack/plugins/observability_solution/ux":
"@kbn/ux-plugin@link:x-pack/solutions/observability/plugins/ux":
version "0.0.0"
uid ""

Expand Down

0 comments on commit 592847f

Please sign in to comment.