[Dashboards as Code] uid to id#259461
Merged
Merged
Conversation
Heenawter
commented
Mar 31, 2026
Comment on lines
+122
to
+135
| it('transforms by-reference state', () => { | ||
| const state: StoredSearchEmbeddableState = { | ||
| title: 'Test Title', | ||
| description: 'Test Description', | ||
| }; | ||
| const result = getSearchEmbeddableTransforms(mockDrilldownTransforms).transformOut?.(state, [ | ||
| { | ||
| id: '2f360f30-ea74-11eb-b4c6-3d2afc1cb389', | ||
| name: 'savedObjectRef', | ||
| type: 'search', | ||
| }, | ||
| ]); | ||
| expect(result).toEqual({ ...state, savedObjectId: '2f360f30-ea74-11eb-b4c6-3d2afc1cb389' }); | ||
| }); |
Contributor
Author
There was a problem hiding this comment.
Search sessions don't serialize their saved object ID - they just rely on the reference to generate it. So I wanted to add a test case for this.
Contributor
|
Pinging @elastic/kibana-presentation (Team:Presentation) |
cb6802d to
5b5b196
Compare
This comment was marked as outdated.
This comment was marked as outdated.
…r-uid-to-id * commit '6868ae2f195462f1f6809a6a544114f54e48239e': [One Workflow] Replace workflows:aiAgent:enabled with agentBuilder:experimentalFeatures (elastic#261330) [EDR Workflows] Osquery: hide query code from dropdown and show Elastic for automated Run By (elastic#261394) [Observability Onboarding] Add data detection & loading indicators to onboarding flows (elastic#257870) [Significant events] Format event count with locale-aware number separators (elastic#261570) [Fleet] Fix deprecated filter in browse integrations (elastic#261459) [Lens as code] Split `xyStateSchema` config (elastic#261089) [Data Views as Code] Use `ref_id` and add metadata in data views schemas (elastic#261181)
…r-uid-to-id * commit '2dc1eb699581a0b24f3b433de8db41d312bc5c93': [Dashboard Agent] Extract safe dashboard attachment integration refactors (elastic#261422) # Conflicts: # x-pack/platform/packages/shared/dashboard-agent/dashboard-agent-common/types.ts
5 tasks
Contributor
💛 Build succeeded, but was flaky
Failed CI StepsTest FailuresMetrics [docs]Async chunks
History
cc @Heenawter |
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #255826
Summary
This PR swaps
uidtoidfor Dashboard panels + pinned panels.Noting here that
idwas used to store saved object ID in versions <8.19, so this was something we had to consider for BWC. However, I tested the following app states in the URL + saved objects and everything worked as expected:v8.18
test-8.18.ndjson.zip
logs-8.18.ndjson.zip
URL with saved object ID stored as
id:URL with by value panel:
v8.19
test-8.19.ndjson.zip
logs-8.19.ndjson.zip
URL with saved object ID stored as
savedObjectId:URL with by value panel:
v9.0
test-9.0.ndjson.zip
logs-9.0.ndjson.zip
URL with saved object ID stored as
id:URL with by value panel:
v9.2
test-9.2.ndjson.zip
logs-9.2.ndjson.zip
URL with saved object ID stored as
id:URL with by value panel:
v9.3
test-9.3.ndjson.zip
logs-9.3.ndjson.zip
URL with saved object ID stored as
savedObjectId:URL with by value panel:
For convenience, here are some ZIP files with saved objects from version 8.19 to 9.3:
Warning
Controls will error out in the 9.0 Logs dashboard.
This has nothing to do with this PR, and will be resolved by #255878
Checklist
release_note:*label is applied per the guidelinesbackport:*labels.