Skip to content

[Discover Sessions as Code] Rename discover_session_id to ref_id#261186

Merged
lukasolson merged 9 commits into
elastic:mainfrom
lukasolson:rename-discover-embeddable-ref-id
Apr 7, 2026
Merged

[Discover Sessions as Code] Rename discover_session_id to ref_id#261186
lukasolson merged 9 commits into
elastic:mainfrom
lukasolson:rename-discover-embeddable-ref-id

Conversation

@lukasolson
Copy link
Copy Markdown
Contributor

Summary

Renames the Discover session embeddable by-reference field from discover_session_id to ref_id so it matches other as-code panel schemas (e.g. Lens) that use ref_id for saved object references.

Changes

  • Server embeddable schema: ref_id instead of discover_session_id
  • Transform utilities, type guards, serialization, and panel factory comparators
  • Unit tests updated accordingly

…chema

Aligns the Discover session embeddable by-reference field with other as-code
schemas (e.g. Lens) that use ref_id for saved object references.

Updates server schema, transform utilities, type guards, serialization, and tests.

Made-with: Cursor
@lukasolson lukasolson self-assigned this Apr 3, 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 3, 2026
@lukasolson lukasolson marked this pull request as ready for review April 3, 2026 21:44
@lukasolson lukasolson requested a review from a team as a code owner April 3, 2026 21:44
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

@lukasolson lukasolson merged commit 2735a71 into elastic:main Apr 7, 2026
19 checks passed
@elasticmachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #85 / dashboard app - group 4 dashboard time dashboard with stored time sets time on open
  • [job] [logs] FTR Configs #149 / task_manager migrations 8.5.0 migrates active tasks to set enabled to true

Metrics [docs]

Async chunks

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

id before after diff
discover 1.6MB 1.6MB -65.0B

History

cc @lukasolson

nickpeihl added a commit that referenced this pull request Apr 8, 2026
…cal Preview (#256302)

Fixes #256073

## Summary

Introduces the Dashboard API endpoints as Technical Preview

Dashboard API documentation will be published as OpenAPI specifications
and available in the [Kibana API
Documentation](https://www.elastic.co/docs/api/doc/kibana/). Dashboard
API create/update endpoints are initially limited to a select few types
including Lens, markdown, synthetics, and SLO panels. Support for
additional panel types will be available in future updates.

## OAS documentation
To build documentation bundle for public route
* Add `server.oas.enabled: true` to `config/kibana.dev.yml`
* Run `node scripts/capture_oas_snapshot --include-path /api/dashboards
--no-serverless --update`

### Blocked by

- [x] #259670
- [x] #259461
- [x] #260040
- [x] #261186
- [x] #260945

---------

Co-authored-by: Nathan Reese <reese.nathan@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Nick Partridge <nicholas.partridge@elastic.co>
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// v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants