Skip to content

[Discover sessions as Code] Default-on discover.embeddableTransforms#260945

Open
lukasolson wants to merge 1 commit intoelastic:mainfrom
lukasolson:discover-embeddable-transforms-default-on
Open

[Discover sessions as Code] Default-on discover.embeddableTransforms#260945
lukasolson wants to merge 1 commit intoelastic:mainfrom
lukasolson:discover-embeddable-transforms-default-on

Conversation

@lukasolson
Copy link
Copy Markdown
Contributor

Summary

Implements #260103.

When the discover.embeddableTransforms feature flag is unset, Kibana now defaults to enabled (declarative Discover session panel shape / dashboards-as-code alignment). Setting the flag explicitly to false continues to use the legacy transformOut path.

Changes

  • Added EMBEDDABLE_TRANSFORMS_FEATURE_FLAG_DEFAULT in discover/common/constants.ts as the single source of truth (true).
  • Server: initial embeddableTransformsEnabled matches the default; getBooleanValue$ already used this field as fallback.
  • Public: getEmbeddableTransformsEnabled() uses the same default for getBooleanValue when the flag is unset.
  • Tests: createDiscoverServicesMock returns true for embeddable transforms to mirror production default; tests that need legacy behavior still override the mock.

Acceptance criteria

  • Fresh installs / unset flag → embeddable transforms enabled.
  • Explicit false still disables new path (legacy unchanged).
  • No removal of legacyTransformOut or flag key.

Closes #260103

Made with Cursor

Introduce EMBEDDABLE_TRANSFORMS_FEATURE_FLAG_DEFAULT and use it for:
- server plugin initial state and getBooleanValue$ fallback
- client getBooleanValue fallback in discoverFeatureFlags
- discover services test mock

Fresh installs and unset flags now use the declarative Discover session
panel shape by default; explicit false keeps the legacy path.

Refs elastic#260103

Made-with: Cursor
@lukasolson lukasolson requested a review from a team as a code owner April 2, 2026 14:21
@lukasolson lukasolson self-assigned this Apr 2, 2026
@lukasolson lukasolson added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting Team:DataDiscovery Discover, search (data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. t// Project:Dashboards API labels Apr 2, 2026
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 Project:Dashboards API release_note:skip Skip the PR/issue when compiling release notes Team:DataDiscovery Discover, search (data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. t//

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Discover sessions as Code] Default-on feature flag

1 participant