Skip to content

[Lens as code] Flatten partition chart schemas in Lens API spec#251646

Merged
andrimal merged 2 commits intoelastic:mainfrom
andrimal:fix/nested-partition-api-schema
Feb 4, 2026
Merged

[Lens as code] Flatten partition chart schemas in Lens API spec#251646
andrimal merged 2 commits intoelastic:mainfrom
andrimal:fix/nested-partition-api-schema

Conversation

@andrimal
Copy link
Copy Markdown
Contributor

@andrimal andrimal commented Feb 4, 2026

Summary

The partition chart schemas (pie, mosaic, treemap, waffle) were nested under an intermediate partitionStateSchema wrapper in lensApiStateSchema. This additional level of nesting caused these schemas to be omitted from the generated client in the Terraform provider.

This PR removes the partitionStateSchema grouping and adds the individual chart schemas directly to lensApiStateSchema.

@andrimal andrimal self-assigned this Feb 4, 2026
@andrimal andrimal added Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// release_note:skip Skip the PR/issue when compiling release notes Feature:Lens backport:skip This PR does not require backporting labels Feb 4, 2026
@andrimal andrimal marked this pull request as ready for review February 4, 2026 12:22
@andrimal andrimal requested a review from a team as a code owner February 4, 2026 12:22
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-visualizations (Team:Visualizations)

@elasticmachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
agentBuilder 1432 1431 -1
dashboard 1055 1054 -1
discover 2076 2075 -1
infra 1940 1939 -1
lens 1704 1703 -1
observability 1829 1828 -1
observabilityAIAssistantApp 820 819 -1
unifiedDocViewer 804 803 -1
total -8

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
lens 2.0MB 2.0MB -18.0B

History

cc @andrimal

@andrimal andrimal merged commit 2a79f01 into elastic:main Feb 4, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting Feature:Lens release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants