[Lens as code] Config builder cleanup and improvements#262871
[Lens as code] Config builder cleanup and improvements#262871Ikuni17 merged 13 commits intoelastic:mainfrom
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
- use config instead of state - remove unnecessary type renaming - align other namings
eca5114 to
8da34f5
Compare
nreese
left a comment
There was a problem hiding this comment.
kibana-presentation changes LGTM - import change only
code review only
cauemarcondes
left a comment
There was a problem hiding this comment.
Obs exploration changes LGTM
janmonschke
left a comment
There was a problem hiding this comment.
kibana-cases changes lgtm (only code review)
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
|
@elastic/obs-presentation-team, @elastic/obs-ai-team, @elastic/appex-ai-infra, @elastic/workchat-eng could your review these naming changes? Thanks! |
andrimal
left a comment
There was a problem hiding this comment.
Changes LGTM ✨
One nit note: I checked that there are 2 more files with deep imports that maybe we could fix
x-pack/platform/plugins/shared/lens/common/transforms/transform_out.test.tsx-pack/platform/packages/shared/agent-builder/agent-builder-genai-utils/tools/visualization/chart_type_registry.ts
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Any counts in public APIs
Async chunks
Public APIs missing exports
Page load bundle
History
|
Run Metadata
FindingsNo findings -- all journeys completed without issues. ScreenshotsScreenshots are available in the workflow artifacts. Workflow run: https://github.com/elastic/kibana-exploratory-testing/actions/runs/24677418852 |
|
Starting backport for target branches: 9.4 https://github.com/elastic/kibana/actions/runs/24681411892 |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
The lens entry bundle was 72-83B over its 86,000B page-load limit after rebasing this branch on main. Nothing in this PR's scope (kbn-unified-chart-section-viewer + one Discover test spec) can reach lens's bundle — a codebase-wide grep shows zero imports of @kbn/unified-chart-section-viewer from x-pack/platform/plugins/shared/lens, and a local dist build's stats.json contains no matching module paths. Cumulative drift from recent Lens-as-code commits that merged into main (e.g., elastic#262871, elastic#264134, elastic#261581, elastic#264147, elastic#263810) pushed the entry bundle just over the line. Raising the limit here is the documented path when no in-PR contribution is found. Limit set via `node scripts/build_kibana_platform_plugins --focus lens --update-limits`.
#264501) # Backport This will backport the following commits from `main` to `9.4`: - [[Lens as code] Config builder cleanup and improvements (#262871)](#262871) <!--- Backport version: 11.0.1 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Nick Partridge","email":"nicholas.partridge@elastic.co"},"sourceCommit":{"committedDate":"2026-04-20T17:43:57Z","message":"[Lens as code] Config builder cleanup and improvements (#262871)\n\n## Summary\n\nThis PR is a widespread cleanup related to `@kbn/lens-embeddable-utils`\n\n- Using `Config` naming over `State` naming\n- Using simplified path imports from `@kbn/lens-embeddable-utils` not\ndeeper directories\n- Unifies type naming with schemas\n\n> [!NOTE]\n> This should have no functional affect on the code \n\n### Checklist\n- [x]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas added for features that require explanation or tutorials\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n- [x] Review the [backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand apply applicable `backport:*` labels.","sha":"9e0677119558fbed2e6b3b2994535cbaa9d7b422","branchLabelMapping":{"^v9.5.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","ci:project-deploy-observability","backport:version","v9.4.0","v9.5.0"],"title":"[Lens as code] Config builder cleanup and improvements","number":262871,"url":"https://github.com/elastic/kibana/pull/262871","mergeCommit":{"message":"[Lens as code] Config builder cleanup and improvements (#262871)\n\n## Summary\n\nThis PR is a widespread cleanup related to `@kbn/lens-embeddable-utils`\n\n- Using `Config` naming over `State` naming\n- Using simplified path imports from `@kbn/lens-embeddable-utils` not\ndeeper directories\n- Unifies type naming with schemas\n\n> [!NOTE]\n> This should have no functional affect on the code \n\n### Checklist\n- [x]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas added for features that require explanation or tutorials\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n- [x] Review the [backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand apply applicable `backport:*` labels.","sha":"9e0677119558fbed2e6b3b2994535cbaa9d7b422"}},"sourceBranch":"main","suggestedTargetBranches":["9.4"],"targetPullRequestStates":[{"branch":"9.4","label":"v9.4.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.5.0","branchLabelMappingKey":"^v9.5.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/262871","number":262871,"mergeCommit":{"message":"[Lens as code] Config builder cleanup and improvements (#262871)\n\n## Summary\n\nThis PR is a widespread cleanup related to `@kbn/lens-embeddable-utils`\n\n- Using `Config` naming over `State` naming\n- Using simplified path imports from `@kbn/lens-embeddable-utils` not\ndeeper directories\n- Unifies type naming with schemas\n\n> [!NOTE]\n> This should have no functional affect on the code \n\n### Checklist\n- [x]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas added for features that require explanation or tutorials\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n- [x] Review the [backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand apply applicable `backport:*` labels.","sha":"9e0677119558fbed2e6b3b2994535cbaa9d7b422"}}]}] BACKPORT-->
Summary
This PR is a widespread cleanup related to
@kbn/lens-embeddable-utilsConfignaming overStatenaming@kbn/lens-embeddable-utilsnot deeper directoriesNote
This should have no functional affect on the code
Checklist
release_note:*label is applied per the guidelinesbackport:*labels.