-
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
[SO Tagging] Migrate the tag
type to namespaceType : "multiple-isolated"
mode
#102870
Comments
I've been looking into this issue and I'm not sure what the scope is here. Tags don't use the root-level
If the intent of this issue is only to migrate the |
From offline communication: Tags themselves do not use references, however, saved object tags are referenced from other saved objects (dashboard, vis, map and lens). In order to migrate saved objects that reference other saved objects, the objects being referenced must also be migrated to In addition to the type change, we also need to refactor all The UI uses a custom route for retrieving SO tags by ID. This route is handled by the |
@legrego @jportner In #100489 there's only an explicit instruction to migrate client side code but we're assuming we also need to handle server-side calls to |
Sorry, that is worded incredibly poorly. If the client is calling the generic
The recommendations are in a Google Slide and also (a little buried in) the POC here: #95958 In a nutshell:
Note: the POC uses the |
@jportner let me know if I'm understanding this correctly. I believe we may be able to get away without implementing any UI or using the
It seems to me if those two are true for this SO type, then we should be able to rewrite all the references to tags in the same pass (which I believe is what the core migration for this already does) and all aliases would go unused since users can't have any bookmarks that point to legacy tag IDs. If that's the case, then I actually don't think we have to make any changes to how tags are retrieved. We also shouldn't need to actually update any UIs in Kibana to handle the conflict case, because there shouldn't be any user flow that could encounter that scenario. To be safe, we could go ahead and use the In other words, I really think this may be as simple as changing the |
Not true, they are exposed / they are not a hidden type
True, we don't have any pages that I know of that can deep-link to a tag
True
Agree
Yeah I think so. Technically aliases will get created for tags, but we don't need to worry about using them. I'm wondering if we should add some sort of flag at SO registration to allow consumers to "opt out" of aliases for that type when it is converted to become share-capable. I'm not sure if there are other cases where objects are not deep-linkable and don't need aliases to begin with. Thoughts? |
So far, I've confirmed that the points are true for
Based on the comments above, the immediate scope for this issue seems to only be changing the namespace type then. We can always revisit refactoring the api to use |
Good catch, I had assumed since we had built dedicated APIs for this that it was hidden. I wonder if that was an oversight and it should be
That would make some sense to me. I'm already worried about the number of Saved Objects we're going to be creating with the aliases, so if we can reduce that number, that may be helpful. But yeah I agree, only if there are other use cases for this. This may be a somewhat special case? |
Cool, I'll keep this in mind as I engage with other teams. |
With dashboards, a potential issue might be with embeddables, where SO references are also injected. AFAICT, dashboards don't have pages that can deep link to a tag but I'm waiting for full confirmation of that from the app team. |
FWIW I am not aware of any embeddables where we would be including a reference to a tag - at this point I think the only integrations are in "listing" pages (visualizations list, maps list, SO list, etc). But still a good idea to confirm with the app team to be safe.
++ Agree, unless the app team uncovers any surprises for us 😉 |
Sorry @joshdover I missed this when I replied to you. I am not sure what the intent there was. For the longest time, you couldn't view
So yeah, likely we can/should mark tags as |
No worries, that question wasn't really directed at anyone 😄 Yeah we can revisit that decision now that #90178 is solved. |
Part of #100489
As we'll potentially want to make the
tag
type shareable in the (near?) future, we need to change itsnamespaceType
tomultiple-isolated
before8.0
See #100489 for more detail about the reasons and conversion process.
See #54837 for full background information and detailed description of the changes to saved objects
The text was updated successfully, but these errors were encountered: