-
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
Saved object relationships #27210
Comments
Pinging @elastic/kibana-platform |
This looks to be compatible with spaces, including the downgrade scenarios. A couple of things to keep in mind:
It's possible that we'll want to include the referenced object's
|
@legrego You are correct on both of these.
This seems easily doable, I will give that a try and reach out if I have any questions. Thanks! |
@legrego was speaking with @spalger and it seems better to leave the If there is a piece I missed or misunderstood that you think would make namespace important, I am open for discussion. |
@mikecote thanks for the explanation, and I mostly agree. No objections here if that's the path we want to take. My understanding of Migrations as they exist today is that each saved object type can only be migrated by a single plugin. In other words, once a plugin declares a migration for a particular saved object type, no other plugins can add migrations for that type. This isn't necessarily a bad thing, but if we needed this migration in the future, each plugin would have to define/duplicate that migration logic in order to be compliant. We can easily document this for first and third-party plugin authors, but it could be somewhat tedious. There's a lot of ifs here, and we may never need this, but I wanted to make sure we understood the implications. |
@legrego I see what you mean now, I have the same situation at this moment to migrate existing saved objects to use references. The base saved object class manages index patterns so I will need to find a way to make migrations run on any type of saved object. I will investigate and keep that in mind. |
Both of these things are "core" details, so we could update the saved object service to allow for core migrations that can be applied universally to all objects. |
@epixa Agreed, I will go that path when I create the migrations. |
A standard attribute is needed within each saved object that indicates what references to other saved objects it has. This will facilitate saved object export to know what other objects it needs to export for each.
From the UI side, the initial implementation can have hooks in the saved object class to extract references (pre save) and to put them back in (post read) to avoid having too many breaking changes.
In the future this could allow an expand feature where you don't have to go back to the server to get nested objects.
Dashboard example:
Prototype: #27155.
The text was updated successfully, but these errors were encountered: