-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[dashboards as code] move map embeddable reference handling to server #234806
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
/ci |
|
/ci |
|
/ci |
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Async chunks
Page load bundle
History
|
|
Pinging @elastic/kibana-presentation (Team:Presentation) |
|
@elasticmachine merge upstream |
ThomThomson
left a comment
There was a problem hiding this 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, |
There was a problem hiding this comment.
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 } : {}), |
There was a problem hiding this comment.
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.
…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]>
#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]>
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]>
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]>
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]>
…#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]>
#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]>
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]>
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

indexPatternIdcontain saved object ids and are not references. Notice how the reference array for the dashboard is empty.References are extracted on server and stored in dashboard saved object. In the screen shot below, notice how

indexPatternIdhas been replaced withindexPatternRefNameand points to a reference that contains the saved objec tid.