Skip to content

SKA: Unify serverless modules + storybook config#211570

Merged
gsoldevila merged 3 commits intoelastic:mainfrom
gsoldevila:unify-serverless-modules
Feb 19, 2025
Merged

SKA: Unify serverless modules + storybook config#211570
gsoldevila merged 3 commits intoelastic:mainfrom
gsoldevila:unify-serverless-modules

Conversation

@gsoldevila
Copy link
Copy Markdown
Member

@gsoldevila gsoldevila commented Feb 18, 2025

Summary

As part of the SKA, some groups of modules have been broken-down and relocated in different folders, negatively impacting DX. This is the case for serverless modules, that are spread across:

- packages/serverless  # storybook config
- src/platform/packages/private/serverless
- src/platform/packages/shared/serverless

The goal of this PR is to unify them back under src/platform/packages/shared/severless.
In this scenario, I believe the simplification is worth the trade off.

CC @elastic/kibana-management @elastic/appex-sharedux WDYT?

@gsoldevila gsoldevila added Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// release_note:skip Skip the PR/issue when compiling release notes Team:SharedUX Platform AppEx-SharedUX (formerly Global Experience) t// backport:version Backport to applied version labels v8.19.0 labels Feb 18, 2025
@gsoldevila gsoldevila requested review from a team as code owners February 18, 2025 12:44
Copy link
Copy Markdown
Contributor

@Dosant Dosant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree 👍

kibanamachine and others added 2 commits February 18, 2025 13:01
…t --include-path /api/status --include-path /api/alerting/rule/ --include-path /api/alerting/rules --include-path /api/actions --include-path /api/security/role --include-path /api/spaces --include-path /api/fleet --include-path /api/dashboards --update'
@gsoldevila gsoldevila requested a review from a team as a code owner February 18, 2025 13:40
@gsoldevila gsoldevila changed the title Unify serverless modules + storybook config SKA: Unify serverless modules + storybook config Feb 18, 2025
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

Copy link
Copy Markdown
Contributor

@ElenaStoeva ElenaStoeva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kibana Management changes lgtm, but I'm deferring approval to @mattkime since he primarily worked on moving the team's modules for the Sustainable Kibana Architecture project and I'm not familiar with the reasoning behind why some of the packages were moved to the private directory while others were placed in shared.

@ElenaStoeva ElenaStoeva requested a review from mattkime February 18, 2025 16:27
Copy link
Copy Markdown
Contributor

@mattkime mattkime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks!

@gsoldevila
Copy link
Copy Markdown
Member Author

Kibana Management changes lgtm, but I'm deferring approval to @mattkime since he primarily worked on moving the team's modules for the Sustainable Kibana Architecture project and I'm not familiar with the reasoning behind why some of the packages were moved to the private directory while others were placed in shared.

I can answer this one. The visibility property applies to all packages in the "platform" group.
Packages can be:

  • "private": only accessible from within platform group.
  • "shared": accessible from solutions.

They were automatically categorised as private because they were not being imported / used from any solution.
In this case, we had storybook configs that were left dangling in the /packages folder, and some of the packages were already shared, so I think it's worth grouping them back, even if that means "sharing" some of them even though they're currently not accessed by solutions.

@gsoldevila gsoldevila merged commit 8f7f6a7 into elastic:main Feb 19, 2025
10 checks passed
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/13408051314

@kibanamachine
Copy link
Copy Markdown
Contributor

💔 All backports failed

Status Branch Result
8.x Backport failed because of merge conflicts

You might need to backport the following PRs to 8.x:
- SKA: Unify kbn-management folders + storybook config (#211564)
- Deprecate universal entity
- SKA: Fix kebab-case issues in obs-ux-management packages (#211312)
- SKA: Fix kebab-case issues in search-kibana packages (#211348)

Manual backport

To create the backport manually run:

node scripts/backport --pr 211570

Questions ?

Please refer to the Backport tool documentation

gsoldevila added a commit to gsoldevila/kibana that referenced this pull request Feb 19, 2025
## Summary

As part of the SKA, some groups of modules have been broken-down and
relocated in different folders, negatively impacting DX. This is the
case for `serverless` modules, that are spread across:
```
- packages/serverless  # storybook config
- src/platform/packages/private/serverless
- src/platform/packages/shared/serverless
```

The goal of this PR is to unify them back under
`src/platform/packages/shared/severless`.
In this scenario, I believe the simplification is worth the trade off.

CC @elastic/kibana-management @elastic/appex-sharedux WDYT?

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 8f7f6a7)
gsoldevila added a commit to gsoldevila/kibana that referenced this pull request Feb 19, 2025
## Summary

As part of the SKA, some groups of modules have been broken-down and
relocated in different folders, negatively impacting DX. This is the
case for `serverless` modules, that are spread across:
```
- packages/serverless  # storybook config
- src/platform/packages/private/serverless
- src/platform/packages/shared/serverless
```

The goal of this PR is to unify them back under
`src/platform/packages/shared/severless`.
In this scenario, I believe the simplification is worth the trade off.

CC @elastic/kibana-management @elastic/appex-sharedux WDYT?

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 8f7f6a7)

# Conflicts:
#	.github/CODEOWNERS
gsoldevila added a commit to gsoldevila/kibana that referenced this pull request Feb 19, 2025
## Summary

As part of the SKA, some groups of modules have been broken-down and
relocated in different folders, negatively impacting DX. This is the
case for `serverless` modules, that are spread across:
```
- packages/serverless  # storybook config
- src/platform/packages/private/serverless
- src/platform/packages/shared/serverless
```

The goal of this PR is to unify them back under
`src/platform/packages/shared/severless`.
In this scenario, I believe the simplification is worth the trade off.

CC @elastic/kibana-management @elastic/appex-sharedux WDYT?

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 8f7f6a7)

# Conflicts:
#	.github/CODEOWNERS
@gsoldevila
Copy link
Copy Markdown
Member Author

💚 All backports created successfully

Status Branch Result
9.0
8.x
8.18

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

gsoldevila added a commit that referenced this pull request Feb 19, 2025
…211692)

# Backport

This will backport the following commits from `main` to `9.0`:
- [SKA: Unify `serverless` modules + storybook config
(#211570)](#211570)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Gerard
Soldevila","email":"gerard.soldevila@elastic.co"},"sourceCommit":{"committedDate":"2025-02-19T08:10:35Z","message":"SKA:
Unify `serverless` modules + storybook config (#211570)\n\n##
Summary\r\n\r\nAs part of the SKA, some groups of modules have been
broken-down and\r\nrelocated in different folders, negatively impacting
DX. This is the\r\ncase for `serverless` modules, that are spread
across:\r\n```\r\n- packages/serverless # storybook config\r\n-
src/platform/packages/private/serverless\r\n-
src/platform/packages/shared/serverless\r\n```\r\n\r\nThe goal of this
PR is to unify them back
under\r\n`src/platform/packages/shared/severless`.\r\nIn this scenario,
I believe the simplification is worth the trade off.\r\n\r\nCC
@elastic/kibana-management @elastic/appex-sharedux
WDYT?\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"8f7f6a7a81dd25d529b1d87c882f49afbe7bdf99","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Kibana
Management","release_note:skip","v9.0.0","Team:SharedUX","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"SKA:
Unify `serverless` modules + storybook
config","number":211570,"url":"https://github.com/elastic/kibana/pull/211570","mergeCommit":{"message":"SKA:
Unify `serverless` modules + storybook config (#211570)\n\n##
Summary\r\n\r\nAs part of the SKA, some groups of modules have been
broken-down and\r\nrelocated in different folders, negatively impacting
DX. This is the\r\ncase for `serverless` modules, that are spread
across:\r\n```\r\n- packages/serverless # storybook config\r\n-
src/platform/packages/private/serverless\r\n-
src/platform/packages/shared/serverless\r\n```\r\n\r\nThe goal of this
PR is to unify them back
under\r\n`src/platform/packages/shared/severless`.\r\nIn this scenario,
I believe the simplification is worth the trade off.\r\n\r\nCC
@elastic/kibana-management @elastic/appex-sharedux
WDYT?\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"8f7f6a7a81dd25d529b1d87c882f49afbe7bdf99"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/211570","number":211570,"mergeCommit":{"message":"SKA:
Unify `serverless` modules + storybook config (#211570)\n\n##
Summary\r\n\r\nAs part of the SKA, some groups of modules have been
broken-down and\r\nrelocated in different folders, negatively impacting
DX. This is the\r\ncase for `serverless` modules, that are spread
across:\r\n```\r\n- packages/serverless # storybook config\r\n-
src/platform/packages/private/serverless\r\n-
src/platform/packages/shared/serverless\r\n```\r\n\r\nThe goal of this
PR is to unify them back
under\r\n`src/platform/packages/shared/severless`.\r\nIn this scenario,
I believe the simplification is worth the trade off.\r\n\r\nCC
@elastic/kibana-management @elastic/appex-sharedux
WDYT?\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"8f7f6a7a81dd25d529b1d87c882f49afbe7bdf99"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
gsoldevila added a commit that referenced this pull request Feb 19, 2025
…211694)

# Backport

This will backport the following commits from `main` to `8.18`:
- [SKA: Unify `serverless` modules + storybook config
(#211570)](#211570)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Gerard
Soldevila","email":"gerard.soldevila@elastic.co"},"sourceCommit":{"committedDate":"2025-02-19T08:10:35Z","message":"SKA:
Unify `serverless` modules + storybook config (#211570)\n\n##
Summary\r\n\r\nAs part of the SKA, some groups of modules have been
broken-down and\r\nrelocated in different folders, negatively impacting
DX. This is the\r\ncase for `serverless` modules, that are spread
across:\r\n```\r\n- packages/serverless # storybook config\r\n-
src/platform/packages/private/serverless\r\n-
src/platform/packages/shared/serverless\r\n```\r\n\r\nThe goal of this
PR is to unify them back
under\r\n`src/platform/packages/shared/severless`.\r\nIn this scenario,
I believe the simplification is worth the trade off.\r\n\r\nCC
@elastic/kibana-management @elastic/appex-sharedux
WDYT?\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"8f7f6a7a81dd25d529b1d87c882f49afbe7bdf99","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Kibana
Management","release_note:skip","v9.0.0","Team:SharedUX","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"SKA:
Unify `serverless` modules + storybook
config","number":211570,"url":"https://github.com/elastic/kibana/pull/211570","mergeCommit":{"message":"SKA:
Unify `serverless` modules + storybook config (#211570)\n\n##
Summary\r\n\r\nAs part of the SKA, some groups of modules have been
broken-down and\r\nrelocated in different folders, negatively impacting
DX. This is the\r\ncase for `serverless` modules, that are spread
across:\r\n```\r\n- packages/serverless # storybook config\r\n-
src/platform/packages/private/serverless\r\n-
src/platform/packages/shared/serverless\r\n```\r\n\r\nThe goal of this
PR is to unify them back
under\r\n`src/platform/packages/shared/severless`.\r\nIn this scenario,
I believe the simplification is worth the trade off.\r\n\r\nCC
@elastic/kibana-management @elastic/appex-sharedux
WDYT?\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"8f7f6a7a81dd25d529b1d87c882f49afbe7bdf99"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/211570","number":211570,"mergeCommit":{"message":"SKA:
Unify `serverless` modules + storybook config (#211570)\n\n##
Summary\r\n\r\nAs part of the SKA, some groups of modules have been
broken-down and\r\nrelocated in different folders, negatively impacting
DX. This is the\r\ncase for `serverless` modules, that are spread
across:\r\n```\r\n- packages/serverless # storybook config\r\n-
src/platform/packages/private/serverless\r\n-
src/platform/packages/shared/serverless\r\n```\r\n\r\nThe goal of this
PR is to unify them back
under\r\n`src/platform/packages/shared/severless`.\r\nIn this scenario,
I believe the simplification is worth the trade off.\r\n\r\nCC
@elastic/kibana-management @elastic/appex-sharedux
WDYT?\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"8f7f6a7a81dd25d529b1d87c882f49afbe7bdf99"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
gsoldevila added a commit that referenced this pull request Feb 19, 2025
…211693)

# Backport

This will backport the following commits from `main` to `8.x`:
- [SKA: Unify `serverless` modules + storybook config
(#211570)](#211570)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Gerard
Soldevila","email":"gerard.soldevila@elastic.co"},"sourceCommit":{"committedDate":"2025-02-19T08:10:35Z","message":"SKA:
Unify `serverless` modules + storybook config (#211570)\n\n##
Summary\r\n\r\nAs part of the SKA, some groups of modules have been
broken-down and\r\nrelocated in different folders, negatively impacting
DX. This is the\r\ncase for `serverless` modules, that are spread
across:\r\n```\r\n- packages/serverless # storybook config\r\n-
src/platform/packages/private/serverless\r\n-
src/platform/packages/shared/serverless\r\n```\r\n\r\nThe goal of this
PR is to unify them back
under\r\n`src/platform/packages/shared/severless`.\r\nIn this scenario,
I believe the simplification is worth the trade off.\r\n\r\nCC
@elastic/kibana-management @elastic/appex-sharedux
WDYT?\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"8f7f6a7a81dd25d529b1d87c882f49afbe7bdf99","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Kibana
Management","release_note:skip","v9.0.0","Team:SharedUX","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"SKA:
Unify `serverless` modules + storybook
config","number":211570,"url":"https://github.com/elastic/kibana/pull/211570","mergeCommit":{"message":"SKA:
Unify `serverless` modules + storybook config (#211570)\n\n##
Summary\r\n\r\nAs part of the SKA, some groups of modules have been
broken-down and\r\nrelocated in different folders, negatively impacting
DX. This is the\r\ncase for `serverless` modules, that are spread
across:\r\n```\r\n- packages/serverless # storybook config\r\n-
src/platform/packages/private/serverless\r\n-
src/platform/packages/shared/serverless\r\n```\r\n\r\nThe goal of this
PR is to unify them back
under\r\n`src/platform/packages/shared/severless`.\r\nIn this scenario,
I believe the simplification is worth the trade off.\r\n\r\nCC
@elastic/kibana-management @elastic/appex-sharedux
WDYT?\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"8f7f6a7a81dd25d529b1d87c882f49afbe7bdf99"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/211570","number":211570,"mergeCommit":{"message":"SKA:
Unify `serverless` modules + storybook config (#211570)\n\n##
Summary\r\n\r\nAs part of the SKA, some groups of modules have been
broken-down and\r\nrelocated in different folders, negatively impacting
DX. This is the\r\ncase for `serverless` modules, that are spread
across:\r\n```\r\n- packages/serverless # storybook config\r\n-
src/platform/packages/private/serverless\r\n-
src/platform/packages/shared/serverless\r\n```\r\n\r\nThe goal of this
PR is to unify them back
under\r\n`src/platform/packages/shared/severless`.\r\nIn this scenario,
I believe the simplification is worth the trade off.\r\n\r\nCC
@elastic/kibana-management @elastic/appex-sharedux
WDYT?\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"8f7f6a7a81dd25d529b1d87c882f49afbe7bdf99"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Mar 22, 2025
## Summary

As part of the SKA, some groups of modules have been broken-down and
relocated in different folders, negatively impacting DX. This is the
case for `serverless` modules, that are spread across:
```
- packages/serverless  # storybook config
- src/platform/packages/private/serverless
- src/platform/packages/shared/serverless
```

The goal of this PR is to unify them back under
`src/platform/packages/shared/severless`.
In this scenario, I believe the simplification is worth the trade off.

CC @elastic/kibana-management @elastic/appex-sharedux WDYT?

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// Team:SharedUX Platform AppEx-SharedUX (formerly Global Experience) t// v8.18.0 v8.19.0 v9.0.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants