Skip to content

Conversation

@nreese
Copy link
Contributor

@nreese nreese commented Sep 11, 2025

PR moves map embeddable reference handling to the server.

dashboard CRUD APIs no longer contain references from map panels. In the screen shot below, notice how indexPatternId contain saved object ids and are not references. Notice how the reference array for the dashboard is empty.
Screenshot 2025-09-11 at 6 59 55 PM

References are extracted on server and stored in dashboard saved object. In the screen shot below, notice how indexPatternId has been replaced with indexPatternRefName and points to a reference that contains the saved objec tid.
Screenshot 2025-09-11 at 7 01 41 PM

@nreese
Copy link
Contributor Author

nreese commented Sep 11, 2025

/ci

@nreese
Copy link
Contributor Author

nreese commented Sep 12, 2025

/ci

@nreese
Copy link
Contributor Author

nreese commented Sep 12, 2025

/ci

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
maps 331 333 +2

Async chunks

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

id before after diff
maps 3.1MB 3.1MB -33.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
maps 40.9KB 41.1KB +183.0B
Unknown metric groups

API count

id before after diff
maps 337 339 +2

History

@nreese nreese marked this pull request as ready for review September 12, 2025 16:37
@nreese nreese requested a review from a team as a code owner September 12, 2025 16:37
@nreese nreese added Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting Project:Dashboards API v9.2.0 labels Sep 12, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

@nreese
Copy link
Contributor Author

nreese commented Sep 15, 2025

@elasticmachine merge upstream

Copy link
Contributor

@ThomThomson ThomThomson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a really clean diff-set. Nice work! Changes LGTM. Code review only.

} as StoredMapEmbeddableState,
references: [
{
name: MAP_SAVED_OBJECT_REF_NAME,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking really clear!

if (savedObjectRef) {
return {
...state,
...(enhancementsState ? { enhancements: enhancementsState } : {}),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be neat if there was a one-step way to do this.

@nreese nreese merged commit 3e0efb9 into elastic:main Sep 15, 2025
12 checks passed
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Sep 24, 2025
…elastic#234806)

PR moves map embeddable reference handling to the server.

dashboard CRUD APIs no longer contain references from map panels. In the
screen shot below, notice how `indexPatternId` contain saved object ids
and are not references. Notice how the reference array for the dashboard
is empty.
<img width="2041" height="1014" alt="Screenshot 2025-09-11 at 6 59
55 PM"
src="https://github.com/user-attachments/assets/44a7c26c-b189-4c04-9f19-2159068ecc74"
/>

References are extracted on server and stored in dashboard saved object.
In the screen shot below, notice how `indexPatternId` has been replaced
with `indexPatternRefName` and points to a reference that contains the
saved objec tid.
<img width="2046" height="999" alt="Screenshot 2025-09-11 at 7 01 41 PM"
src="https://github.com/user-attachments/assets/ecbe6c80-21fb-4a88-8233-5555153d9430"
/>

---------

Co-authored-by: Elastic Machine <[email protected]>
nreese added a commit that referenced this pull request Sep 24, 2025
#235990)

#234806 moved references handling
for map embeddable to server. This PR does the same thing but for Map
application's REST API.

Maps CRUD APIs no longer contain references. In the screen shot below,
notice how `indexPatternId` contain saved object ids and the only
reference is for tags.
<img width="1500" height="746" alt="Screenshot 2025-09-23 at 10 38
50 AM"
src="https://github.com/user-attachments/assets/0415899d-a032-49a1-a741-36dcb785bf31"
/>

References are extracted on server and stored in Map saved object. In
the screen shot below, notice how `indexPatternId` has been replaced
with `indexPatternRefName` and points to a reference that contains the
saved object id.
<img width="1785" height="876" alt="Screenshot 2025-09-23 at 10 39
33 AM"
src="https://github.com/user-attachments/assets/2d88eee2-4f74-44fb-86f2-cf534c75fa58"
/>

---------

Co-authored-by: Elastic Machine <[email protected]>
Co-authored-by: kibanamachine <[email protected]>
rbrtj pushed a commit to rbrtj/kibana that referenced this pull request Sep 25, 2025
elastic#235990)

elastic#234806 moved references handling
for map embeddable to server. This PR does the same thing but for Map
application's REST API.

Maps CRUD APIs no longer contain references. In the screen shot below,
notice how `indexPatternId` contain saved object ids and the only
reference is for tags.
<img width="1500" height="746" alt="Screenshot 2025-09-23 at 10 38
50 AM"
src="https://github.com/user-attachments/assets/0415899d-a032-49a1-a741-36dcb785bf31"
/>

References are extracted on server and stored in Map saved object. In
the screen shot below, notice how `indexPatternId` has been replaced
with `indexPatternRefName` and points to a reference that contains the
saved object id.
<img width="1785" height="876" alt="Screenshot 2025-09-23 at 10 39
33 AM"
src="https://github.com/user-attachments/assets/2d88eee2-4f74-44fb-86f2-cf534c75fa58"
/>

---------

Co-authored-by: Elastic Machine <[email protected]>
Co-authored-by: kibanamachine <[email protected]>
CoenWarmer pushed a commit to CoenWarmer/kibana that referenced this pull request Sep 25, 2025
elastic#235990)

elastic#234806 moved references handling
for map embeddable to server. This PR does the same thing but for Map
application's REST API.

Maps CRUD APIs no longer contain references. In the screen shot below,
notice how `indexPatternId` contain saved object ids and the only
reference is for tags.
<img width="1500" height="746" alt="Screenshot 2025-09-23 at 10 38
50 AM"
src="https://github.com/user-attachments/assets/0415899d-a032-49a1-a741-36dcb785bf31"
/>

References are extracted on server and stored in Map saved object. In
the screen shot below, notice how `indexPatternId` has been replaced
with `indexPatternRefName` and points to a reference that contains the
saved object id.
<img width="1785" height="876" alt="Screenshot 2025-09-23 at 10 39
33 AM"
src="https://github.com/user-attachments/assets/2d88eee2-4f74-44fb-86f2-cf534c75fa58"
/>

---------

Co-authored-by: Elastic Machine <[email protected]>
Co-authored-by: kibanamachine <[email protected]>
VladimirFilonov pushed a commit to VladimirFilonov/kibana that referenced this pull request Sep 26, 2025
elastic#235990)

elastic#234806 moved references handling
for map embeddable to server. This PR does the same thing but for Map
application's REST API.

Maps CRUD APIs no longer contain references. In the screen shot below,
notice how `indexPatternId` contain saved object ids and the only
reference is for tags.
<img width="1500" height="746" alt="Screenshot 2025-09-23 at 10 38
50 AM"
src="https://github.com/user-attachments/assets/0415899d-a032-49a1-a741-36dcb785bf31"
/>

References are extracted on server and stored in Map saved object. In
the screen shot below, notice how `indexPatternId` has been replaced
with `indexPatternRefName` and points to a reference that contains the
saved object id.
<img width="1785" height="876" alt="Screenshot 2025-09-23 at 10 39
33 AM"
src="https://github.com/user-attachments/assets/2d88eee2-4f74-44fb-86f2-cf534c75fa58"
/>

---------

Co-authored-by: Elastic Machine <[email protected]>
Co-authored-by: kibanamachine <[email protected]>
niros1 pushed a commit that referenced this pull request Sep 30, 2025
…#234806)

PR moves map embeddable reference handling to the server.

dashboard CRUD APIs no longer contain references from map panels. In the
screen shot below, notice how `indexPatternId` contain saved object ids
and are not references. Notice how the reference array for the dashboard
is empty.
<img width="2041" height="1014" alt="Screenshot 2025-09-11 at 6 59
55 PM"
src="https://github.com/user-attachments/assets/44a7c26c-b189-4c04-9f19-2159068ecc74"
/>

References are extracted on server and stored in dashboard saved object.
In the screen shot below, notice how `indexPatternId` has been replaced
with `indexPatternRefName` and points to a reference that contains the
saved objec tid.
<img width="2046" height="999" alt="Screenshot 2025-09-11 at 7 01 41 PM"
src="https://github.com/user-attachments/assets/ecbe6c80-21fb-4a88-8233-5555153d9430"
/>

---------

Co-authored-by: Elastic Machine <[email protected]>
niros1 pushed a commit that referenced this pull request Sep 30, 2025
#235990)

#234806 moved references handling
for map embeddable to server. This PR does the same thing but for Map
application's REST API.

Maps CRUD APIs no longer contain references. In the screen shot below,
notice how `indexPatternId` contain saved object ids and the only
reference is for tags.
<img width="1500" height="746" alt="Screenshot 2025-09-23 at 10 38
50 AM"
src="https://github.com/user-attachments/assets/0415899d-a032-49a1-a741-36dcb785bf31"
/>

References are extracted on server and stored in Map saved object. In
the screen shot below, notice how `indexPatternId` has been replaced
with `indexPatternRefName` and points to a reference that contains the
saved object id.
<img width="1785" height="876" alt="Screenshot 2025-09-23 at 10 39
33 AM"
src="https://github.com/user-attachments/assets/2d88eee2-4f74-44fb-86f2-cf534c75fa58"
/>

---------

Co-authored-by: Elastic Machine <[email protected]>
Co-authored-by: kibanamachine <[email protected]>
rylnd pushed a commit to rylnd/kibana that referenced this pull request Oct 17, 2025
elastic#235990)

elastic#234806 moved references handling
for map embeddable to server. This PR does the same thing but for Map
application's REST API.

Maps CRUD APIs no longer contain references. In the screen shot below,
notice how `indexPatternId` contain saved object ids and the only
reference is for tags.
<img width="1500" height="746" alt="Screenshot 2025-09-23 at 10 38
50 AM"
src="https://github.com/user-attachments/assets/0415899d-a032-49a1-a741-36dcb785bf31"
/>

References are extracted on server and stored in Map saved object. In
the screen shot below, notice how `indexPatternId` has been replaced
with `indexPatternRefName` and points to a reference that contains the
saved object id.
<img width="1785" height="876" alt="Screenshot 2025-09-23 at 10 39
33 AM"
src="https://github.com/user-attachments/assets/2d88eee2-4f74-44fb-86f2-cf534c75fa58"
/>

---------

Co-authored-by: Elastic Machine <[email protected]>
Co-authored-by: kibanamachine <[email protected]>
nreese added a commit that referenced this pull request Nov 5, 2025
…es lost when dashboard updated from listing page (#241893)

Closes #241891 for 9.2 branch.
Fix is same as #241381 althought
the root cause is different. This regression is cause by moving
reference handling to the server in
[links](#228511),
[maps](#234806), and [legacy
vis](#234249)
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:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants