SKA: Relocate @kbn/grid-layout (#206821)

## Summary

This PR aims at relocating some of the Kibana modules (plugins and
packages) into a new folder structure, according to the _Sustainable
Kibana Architecture_ initiative.

> [!IMPORTANT]
> * We kindly ask you to:
> * Manually fix the errors in the error section below (if there are
any).
> * Search for the `packages[\/\\]` and `plugins[\/\\]` patterns in the
source code (Babel and Eslint config files), and update them
appropriately.
> * Manually review
`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to ensure that
any CI pipeline customizations continue to be correctly applied after
the changed path names
> * Review all of the updated files, specially the `.ts` and `.js` files
listed in the sections below, as some of them contain relative paths
that have been updated.
> * Think of potential impact of the move, including tooling and
configuration files that can be pointing to the relocated modules. E.g.:
>     * customised eslint rules
>     * docs pointing to source code

> [!NOTE]
> * This PR has been auto-generated.
> * Any manual contributions will be lost if the 'relocate' script is
re-run.
> * Try to obtain the missing reviews / approvals before applying manual
fixes, and/or keep your changes in a .patch / git stash.
> * Please use
[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)
Slack channel for feedback.

Are you trying to rebase this PR to solve merge conflicts? Please follow
the steps describe
[here](https://elastic.slack.com/archives/C07TCKTA22E/p1734019532879269?thread_ts=1734019339.935419&cid=C07TCKTA22E).

#### 1 packages(s) are going to be relocated:

| Id | Target folder |
| -- | ------------- |
| `@kbn/grid-layout` | `src/platform/packages/private/kbn-grid-layout` |


<details >
<summary>Updated references</summary>

```
./.i18nrc.json
./examples/grid_example/tsconfig.type_check.json
./package.json
./packages/kbn-ts-projects/config-paths.json
./src/platform/packages/private/kbn-grid-layout/jest.config.js
./src/platform/packages/private/kbn-repo-packages/package-map.json
./tsconfig.base.json
./tsconfig.base.type_check.json
./tsconfig.refs.json
./yarn.lock
.github/CODEOWNERS
```

</details><details >
<summary>Updated relative paths</summary>

```
src/platform/packages/private/kbn-grid-layout/jest.config.js:12
src/platform/packages/private/kbn-grid-layout/tsconfig.json:2
src/platform/packages/private/kbn-grid-layout/tsconfig.type_check.json:2
```

</details>
This commit is contained in:
Gerard Soldevila 2025-01-15 18:39:41 +01:00 committed by GitHub
parent a928f28e9a
commit b21a70dabb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 9 additions and 9 deletions

2
.github/CODEOWNERS vendored
View file

@ -143,7 +143,6 @@ packages/kbn-gen-ai-functional-testing @elastic/appex-ai-infra
packages/kbn-generate @elastic/kibana-operations
packages/kbn-generate-console-definitions @elastic/kibana-management
packages/kbn-get-repo-files @elastic/kibana-operations
packages/kbn-grid-layout @elastic/kibana-presentation
packages/kbn-import-locator @elastic/kibana-operations
packages/kbn-import-resolver @elastic/kibana-operations
packages/kbn-jest-serializers @elastic/kibana-operations
@ -358,6 +357,7 @@ src/platform/packages/private/kbn-apm-config-loader @elastic/kibana-core @vignes
src/platform/packages/private/kbn-config-mocks @elastic/kibana-core
src/platform/packages/private/kbn-esql-editor @elastic/kibana-esql
src/platform/packages/private/kbn-generate-csv @elastic/appex-sharedux
src/platform/packages/private/kbn-grid-layout @elastic/kibana-presentation
src/platform/packages/private/kbn-handlebars @elastic/kibana-security
src/platform/packages/private/kbn-hapi-mocks @elastic/kibana-core
src/platform/packages/private/kbn-health-gateway-server @elastic/kibana-core

View file

@ -35,7 +35,7 @@
"presentationPanel": "src/platform/plugins/private/presentation_panel",
"embeddableExamples": "examples/embeddable_examples",
"esQuery": "src/platform/packages/shared/kbn-es-query/src",
"kbnGridLayout": "packages/kbn-grid-layout",
"kbnGridLayout": "src/platform/packages/private/kbn-grid-layout",
"esUi": "src/platform/plugins/shared/es_ui_shared",
"expandableFlyout": "packages/kbn-expandable-flyout",
"expressionError": "src/platform/plugins/shared/expression_error",

View file

@ -545,7 +545,7 @@
"@kbn/global-search-test-plugin": "link:x-pack/test/plugin_functional/plugins/global_search_test",
"@kbn/graph-plugin": "link:x-pack/platform/plugins/private/graph",
"@kbn/grid-example-plugin": "link:examples/grid_example",
"@kbn/grid-layout": "link:packages/kbn-grid-layout",
"@kbn/grid-layout": "link:src/platform/packages/private/kbn-grid-layout",
"@kbn/grokdebugger-plugin": "link:x-pack/platform/plugins/private/grokdebugger",
"@kbn/grouping": "link:src/platform/packages/shared/kbn-grouping",
"@kbn/guided-onboarding": "link:src/platform/packages/shared/kbn-guided-onboarding",

View file

@ -9,6 +9,6 @@
module.exports = {
preset: '@kbn/test',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-grid-layout'],
rootDir: '../../../../..',
roots: ['<rootDir>/src/platform/packages/private/kbn-grid-layout'],
};

View file

@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../../../../tsconfig.base.json",
"compilerOptions": {
"outDir": "target/types",
},

View file

@ -1002,8 +1002,8 @@
"@kbn/graph-plugin/*": ["x-pack/platform/plugins/private/graph/*"],
"@kbn/grid-example-plugin": ["examples/grid_example"],
"@kbn/grid-example-plugin/*": ["examples/grid_example/*"],
"@kbn/grid-layout": ["packages/kbn-grid-layout"],
"@kbn/grid-layout/*": ["packages/kbn-grid-layout/*"],
"@kbn/grid-layout": ["src/platform/packages/private/kbn-grid-layout"],
"@kbn/grid-layout/*": ["src/platform/packages/private/kbn-grid-layout/*"],
"@kbn/grokdebugger-plugin": ["x-pack/platform/plugins/private/grokdebugger"],
"@kbn/grokdebugger-plugin/*": ["x-pack/platform/plugins/private/grokdebugger/*"],
"@kbn/grouping": ["src/platform/packages/shared/kbn-grouping"],

View file

@ -5863,7 +5863,7 @@
version "0.0.0"
uid ""
"@kbn/grid-layout@link:packages/kbn-grid-layout":
"@kbn/grid-layout@link:src/platform/packages/private/kbn-grid-layout":
version "0.0.0"
uid ""