[8.x] Sustainable Kibana Architecture: Move content management related packages (#205593) (#205855)

# Backport

This will backport the following commits from `main` to `8.x`:
- [Sustainable Kibana Architecture: Move content management related
packages (#205593)](https://github.com/elastic/kibana/pull/205593)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Anton
Dosov","email":"anton.dosov@elastic.co"},"sourceCommit":{"committedDate":"2025-01-07T21:41:31Z","message":"Sustainable
Kibana Architecture: Move content management related packages
(#205593)","sha":"72d3f7b89c46231e70e8c992df133f653d9154a1","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:SharedUX","backport:prev-minor","plugin
groups"],"number":205593,"url":"https://github.com/elastic/kibana/pull/205593","mergeCommit":{"message":"Sustainable
Kibana Architecture: Move content management related packages
(#205593)","sha":"72d3f7b89c46231e70e8c992df133f653d9154a1"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/205593","number":205593,"mergeCommit":{"message":"Sustainable
Kibana Architecture: Move content management related packages
(#205593)","sha":"72d3f7b89c46231e70e8c992df133f653d9154a1"}}]}]
BACKPORT-->
This commit is contained in:
Anton Dosov 2025-01-08 13:27:41 +01:00 committed by GitHub
parent 31e59f00e1
commit 464426883a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
213 changed files with 220 additions and 217 deletions

30
.github/CODEOWNERS vendored
View file

@ -103,19 +103,19 @@ src/platform/packages/shared/kbn-config @elastic/kibana-core
src/platform/packages/private/kbn-config-mocks @elastic/kibana-core
src/platform/packages/shared/kbn-config-schema @elastic/kibana-core
src/platform/plugins/shared/console @elastic/kibana-management
packages/content-management/content_editor @elastic/appex-sharedux
packages/content-management/content_insights/content_insights_public @elastic/appex-sharedux
packages/content-management/content_insights/content_insights_server @elastic/appex-sharedux
src/platform/packages/shared/content-management/content_editor @elastic/appex-sharedux
src/platform/packages/shared/content-management/content_insights/content_insights_public @elastic/appex-sharedux
src/platform/packages/shared/content-management/content_insights/content_insights_server @elastic/appex-sharedux
examples/content_management_examples @elastic/appex-sharedux
packages/content-management/favorites/favorites_common @elastic/appex-sharedux
packages/content-management/favorites/favorites_public @elastic/appex-sharedux
packages/content-management/favorites/favorites_server @elastic/appex-sharedux
src/platform/packages/shared/content-management/favorites/favorites_common @elastic/appex-sharedux
src/platform/packages/shared/content-management/favorites/favorites_public @elastic/appex-sharedux
src/platform/packages/shared/content-management/favorites/favorites_server @elastic/appex-sharedux
src/platform/plugins/shared/content_management @elastic/appex-sharedux
packages/content-management/tabbed_table_list_view @elastic/appex-sharedux
packages/content-management/table_list_view @elastic/appex-sharedux
packages/content-management/table_list_view_common @elastic/appex-sharedux
packages/content-management/table_list_view_table @elastic/appex-sharedux
packages/content-management/user_profiles @elastic/appex-sharedux
src/platform/packages/shared/content-management/tabbed_table_list_view @elastic/appex-sharedux
src/platform/packages/shared/content-management/table_list_view @elastic/appex-sharedux
src/platform/packages/shared/content-management/table_list_view_common @elastic/appex-sharedux
src/platform/packages/shared/content-management/table_list_view_table @elastic/appex-sharedux
src/platform/packages/shared/content-management/user_profiles @elastic/appex-sharedux
src/platform/packages/shared/kbn-content-management-utils @elastic/kibana-data-discovery
examples/controls_example @elastic/kibana-presentation
src/platform/plugins/shared/controls @elastic/kibana-presentation
@ -659,8 +659,8 @@ src/platform/plugins/shared/newsfeed @elastic/kibana-core
test/common/plugins/newsfeed @elastic/kibana-core
src/platform/plugins/private/no_data_page @elastic/appex-sharedux
x-pack/platform/plugins/shared/notifications @elastic/appex-sharedux
packages/kbn-object-versioning @elastic/appex-sharedux
packages/kbn-object-versioning-utils @elastic/appex-sharedux
src/platform/packages/shared/kbn-object-versioning @elastic/appex-sharedux
src/platform/packages/shared/kbn-object-versioning-utils @elastic/appex-sharedux
x-pack/solutions/observability/plugins/observability_ai_assistant_app @elastic/obs-ai-assistant
x-pack/solutions/observability/plugins/observability_ai_assistant_management @elastic/obs-ai-assistant
x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant @elastic/obs-ai-assistant
@ -722,7 +722,7 @@ packages/react/kibana_context/styled @elastic/appex-sharedux
packages/react/kibana_context/theme @elastic/appex-sharedux
packages/react/kibana_mount @elastic/appex-sharedux
packages/kbn-react-mute-legacy-root-warning @elastic/appex-sharedux
packages/kbn-recently-accessed @elastic/appex-sharedux
src/platform/packages/shared/kbn-recently-accessed @elastic/appex-sharedux
packages/kbn-relocate @elastic/kibana-core
x-pack/platform/plugins/private/remote_clusters @elastic/kibana-management
test/plugin_functional/plugins/rendering_plugin @elastic/kibana-core
@ -983,7 +983,7 @@ src/platform/packages/shared/kbn-try-in-console @elastic/search-kibana
packages/kbn-ts-projects @elastic/kibana-operations
packages/kbn-ts-type-check-cli @elastic/kibana-operations
src/platform/packages/shared/kbn-typed-react-router-config @elastic/obs-knowledge-team @elastic/obs-ux-management-team
packages/kbn-ui-actions-browser @elastic/appex-sharedux
src/platform/packages/shared/kbn-ui-actions-browser @elastic/appex-sharedux
x-pack/examples/ui_actions_enhanced_examples @elastic/appex-sharedux
src/platform/plugins/shared/ui_actions_enhanced @elastic/appex-sharedux
examples/ui_action_examples @elastic/appex-sharedux

View file

@ -14,7 +14,7 @@
"cellActions": "src/platform/packages/shared/kbn-cell-actions",
"charts": "src/plugins/charts",
"console": "src/platform/plugins/shared/console",
"contentManagement": "packages/content-management",
"contentManagement": "src/platform/packages/shared/content-management",
"core": ["src/core", "packages/core"],
"customIntegrations": "src/platform/plugins/shared/custom_integrations",
"customIntegrationsPackage": "x-pack/solutions/observability/packages/kbn-custom-integrations",
@ -139,7 +139,7 @@
"telemetry": ["src/platform/plugins/shared/telemetry", "src/platform/plugins/shared/telemetry_management_section"],
"timelion": ["src/plugins/vis_types/timelion"],
"tryInConsole": "src/platform/packages/shared/kbn-try-in-console/",
"uiActions": ["src/platform/plugins/shared/ui_actions", "packages/kbn-ui-actions-browser"],
"uiActions": ["src/platform/plugins/shared/ui_actions", "src/platform/packages/shared/kbn-ui-actions-browser"],
"uiActionsEnhanced": "src/platform/plugins/shared/ui_actions_enhanced",
"uiActionsExamples": "examples/ui_action_examples",
"usageCollection": "src/platform/plugins/shared/usage_collection",

View file

@ -228,19 +228,19 @@
"@kbn/config-mocks": "link:src/platform/packages/private/kbn-config-mocks",
"@kbn/config-schema": "link:src/platform/packages/shared/kbn-config-schema",
"@kbn/console-plugin": "link:src/platform/plugins/shared/console",
"@kbn/content-management-content-editor": "link:packages/content-management/content_editor",
"@kbn/content-management-content-insights-public": "link:packages/content-management/content_insights/content_insights_public",
"@kbn/content-management-content-insights-server": "link:packages/content-management/content_insights/content_insights_server",
"@kbn/content-management-content-editor": "link:src/platform/packages/shared/content-management/content_editor",
"@kbn/content-management-content-insights-public": "link:src/platform/packages/shared/content-management/content_insights/content_insights_public",
"@kbn/content-management-content-insights-server": "link:src/platform/packages/shared/content-management/content_insights/content_insights_server",
"@kbn/content-management-examples-plugin": "link:examples/content_management_examples",
"@kbn/content-management-favorites-common": "link:packages/content-management/favorites/favorites_common",
"@kbn/content-management-favorites-public": "link:packages/content-management/favorites/favorites_public",
"@kbn/content-management-favorites-server": "link:packages/content-management/favorites/favorites_server",
"@kbn/content-management-favorites-common": "link:src/platform/packages/shared/content-management/favorites/favorites_common",
"@kbn/content-management-favorites-public": "link:src/platform/packages/shared/content-management/favorites/favorites_public",
"@kbn/content-management-favorites-server": "link:src/platform/packages/shared/content-management/favorites/favorites_server",
"@kbn/content-management-plugin": "link:src/platform/plugins/shared/content_management",
"@kbn/content-management-tabbed-table-list-view": "link:packages/content-management/tabbed_table_list_view",
"@kbn/content-management-table-list-view": "link:packages/content-management/table_list_view",
"@kbn/content-management-table-list-view-common": "link:packages/content-management/table_list_view_common",
"@kbn/content-management-table-list-view-table": "link:packages/content-management/table_list_view_table",
"@kbn/content-management-user-profiles": "link:packages/content-management/user_profiles",
"@kbn/content-management-tabbed-table-list-view": "link:src/platform/packages/shared/content-management/tabbed_table_list_view",
"@kbn/content-management-table-list-view": "link:src/platform/packages/shared/content-management/table_list_view",
"@kbn/content-management-table-list-view-common": "link:src/platform/packages/shared/content-management/table_list_view_common",
"@kbn/content-management-table-list-view-table": "link:src/platform/packages/shared/content-management/table_list_view_table",
"@kbn/content-management-user-profiles": "link:src/platform/packages/shared/content-management/user_profiles",
"@kbn/content-management-utils": "link:src/platform/packages/shared/kbn-content-management-utils",
"@kbn/controls-example-plugin": "link:examples/controls_example",
"@kbn/controls-plugin": "link:src/platform/plugins/shared/controls",
@ -689,8 +689,8 @@
"@kbn/newsfeed-test-plugin": "link:test/common/plugins/newsfeed",
"@kbn/no-data-page-plugin": "link:src/platform/plugins/private/no_data_page",
"@kbn/notifications-plugin": "link:x-pack/platform/plugins/shared/notifications",
"@kbn/object-versioning": "link:packages/kbn-object-versioning",
"@kbn/object-versioning-utils": "link:packages/kbn-object-versioning-utils",
"@kbn/object-versioning": "link:src/platform/packages/shared/kbn-object-versioning",
"@kbn/object-versioning-utils": "link:src/platform/packages/shared/kbn-object-versioning-utils",
"@kbn/observability-ai-assistant-app-plugin": "link:x-pack/solutions/observability/plugins/observability_ai_assistant_app",
"@kbn/observability-ai-assistant-management-plugin": "link:x-pack/solutions/observability/plugins/observability_ai_assistant_management",
"@kbn/observability-ai-assistant-plugin": "link:x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant",
@ -740,7 +740,7 @@
"@kbn/react-kibana-context-theme": "link:packages/react/kibana_context/theme",
"@kbn/react-kibana-mount": "link:packages/react/kibana_mount",
"@kbn/react-mute-legacy-root-warning": "link:packages/kbn-react-mute-legacy-root-warning",
"@kbn/recently-accessed": "link:packages/kbn-recently-accessed",
"@kbn/recently-accessed": "link:src/platform/packages/shared/kbn-recently-accessed",
"@kbn/remote-clusters-plugin": "link:x-pack/platform/plugins/private/remote_clusters",
"@kbn/rendering-plugin": "link:test/plugin_functional/plugins/rendering_plugin",
"@kbn/repo-info": "link:src/platform/packages/shared/kbn-repo-info",
@ -972,7 +972,7 @@
"@kbn/triggers-actions-ui-types": "link:src/platform/packages/shared/kbn-triggers-actions-ui-types",
"@kbn/try-in-console": "link:src/platform/packages/shared/kbn-try-in-console",
"@kbn/typed-react-router-config": "link:src/platform/packages/shared/kbn-typed-react-router-config",
"@kbn/ui-actions-browser": "link:packages/kbn-ui-actions-browser",
"@kbn/ui-actions-browser": "link:src/platform/packages/shared/kbn-ui-actions-browser",
"@kbn/ui-actions-enhanced-examples-plugin": "link:x-pack/examples/ui_actions_enhanced_examples",
"@kbn/ui-actions-enhanced-plugin": "link:src/platform/plugins/shared/ui_actions_enhanced",
"@kbn/ui-actions-examples-plugin": "link:examples/ui_action_examples",

View file

@ -1,14 +0,0 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/packages/content-management/user_profiles'],
};

View file

@ -1,14 +0,0 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-object-versioning-utils'],
};

View file

@ -1,14 +0,0 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-object-versioning'],
};

View file

@ -1,14 +0,0 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-recently-accessed'],
};

View file

@ -1,14 +0,0 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-ui-actions-browser'],
};

View file

@ -9,6 +9,6 @@
module.exports = {
preset: '@kbn/test',
rootDir: '../../../..',
roots: ['<rootDir>/packages/content-management/content_insights/content_insights_public'],
rootDir: '../../../../../..',
roots: ['<rootDir>/src/platform/packages/shared/content-management/content_editor'],
};

View file

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

View file

@ -0,0 +1,16 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test',
rootDir: '../../../../../../..',
roots: [
'<rootDir>/src/platform/packages/shared/content-management/content_insights/content_insights_public',
],
};

View file

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

View file

@ -9,6 +9,8 @@
module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../../../..',
roots: ['<rootDir>/packages/content-management/favorites/favorites_common'],
rootDir: '../../../../../../..',
roots: [
'<rootDir>/src/platform/packages/shared/content-management/content_insights/content_insights_server',
],
};

View file

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

View file

@ -9,6 +9,6 @@
module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../../../..',
roots: ['<rootDir>/packages/content-management/favorites/favorites_server'],
rootDir: '../../../../../../..',
roots: ['<rootDir>/src/platform/packages/shared/content-management/favorites/favorites_common'],
};

View file

@ -3,5 +3,5 @@
"id": "@kbn/content-management-favorites-common",
"owner": "@elastic/appex-sharedux",
"group": "platform",
"visibility": "private"
"visibility": "shared"
}

View file

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

View file

@ -0,0 +1,14 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test',
rootDir: '../../../../../../..',
roots: ['<rootDir>/src/platform/packages/shared/content-management/favorites/favorites_public'],
};

View file

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

View file

@ -9,6 +9,6 @@
module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../../../..',
roots: ['<rootDir>/packages/content-management/content_insights/content_insights_server'],
rootDir: '../../../../../../..',
roots: ['<rootDir>/src/platform/packages/shared/content-management/favorites/favorites_server'],
};

View file

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

View file

@ -0,0 +1,14 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test',
rootDir: '../../../../../..',
roots: ['<rootDir>/src/platform/packages/shared/content-management/tabbed_table_list_view'],
};

View file

@ -5,5 +5,5 @@
"@elastic/appex-sharedux"
],
"group": "platform",
"visibility": "private"
}
"visibility": "shared"
}

View file

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

View file

@ -0,0 +1,14 @@
/*
* 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
module.exports = {
preset: '@kbn/test',
rootDir: '../../../../../..',
roots: ['<rootDir>/src/platform/packages/shared/content-management/table_list_view'],
};

Some files were not shown because too many files have changed in this diff Show more