-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Add new "references" attribute to saved objects for relationships #28199
Conversation
Pinging @elastic/kibana-platform |
This comment has been minimized.
This comment has been minimized.
944bafb
to
533fe26
Compare
This comment has been minimized.
This comment has been minimized.
8cfc569
to
c666d91
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
65a78c1
to
e7c7735
Compare
This comment has been minimized.
This comment has been minimized.
e7c7735
to
f2cf1e5
Compare
This comment has been minimized.
This comment has been minimized.
f2cf1e5
to
bf3b9fb
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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.
Just a couple nits, mostly superficial, but functions great and looks really good!
src/legacy/core_plugins/kibana/public/dashboard/saved_dashboard/saved_dashboard_references.js
Show resolved
Hide resolved
src/legacy/core_plugins/kibana/server/lib/management/saved_objects/relationships.js
Outdated
Show resolved
Hide resolved
src/legacy/core_plugins/kibana/server/routes/api/management/saved_objects/relationships.js
Outdated
Show resolved
Hide resolved
src/legacy/core_plugins/kibana/server/lib/export/collect_references_deep.ts
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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.
Changes LGTM
💚 Build Succeeded |
This is a breaking change, right? Can you add the breaking change label and update the breaking change documentation? |
@epixa correct, I will update the documentation 👍 |
💚 Build Succeeded |
Summary
Fixes #28377
Fixes #27210
This implements the saved object relationships proposed here #27210.
A new attribute is added to the saved objects structure called
references
. This is an array of{type, id, name}
that will contain all external references a given saved object has.The saved object courier class will add index patterns to the references array and have pre save / post read hooks allow injecting and extracting references for the new array.
Converted apps include: dashboard, visualization, search and graph.
Other changes in this PR
{ searches: [] }
becomes{ search: [] }
)extractReferences
andinjectReferences
capabilities to the saved object UI class.