-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Reduce the impact of legacy-url-aliases introduced by sharing to multiple spaces #144358
Comments
Pinging @elastic/kibana-security (Team:Security) |
The question of how long legacy url aliases would need to stay around was never resolved -- even in the initial implementation, we knew it was an open question. But now that we have run into some real-world scenarios where it can cause scaling issues (specifically for users who are running upgrades with millions of saved objects), I think it's worth revisiting. Part of this discussion is around how much notice is reasonable to give users before breaking URLs, something we have historically gone to great lengths to avoid doing. And the other part of the discussion is more of a product-focused one: what type of ux do we envision to streamline removal of unused legacy aliases? Do we build a tool like Rudolf suggests for identifying unused aliases and removing them? Do we give people a choice of performing a "cleanup" of legacy aliases, while explaining the tradeoffs of doing so? cc @arisonl @alexh97 |
It's worth noting that legacy url aliases have unfortunately found a benefit in the post-8.0 era. They were originally intended to preserve bookmarks, but they also serve as a way to support "weak links" from one SO to another when these assets are imported or copied between spaces. Example: A markdown visualization within a dashboard which links to another dashboard.
My hope was that we'd be able to remove these legacy url aliases sooner rather than later, but as of now it's the only tool we have to support weak links for the import & copy-to-space use cases. |
Flagging this with |
We discussed about this issue during our platform services meeting, and we came with the idea/proposal of enabling the feature behind a configuration flag. The reasoning was that:
Functionally, it would be about adding two config settings (one to enable the feature, and one to define the retention period), and then implement the corresponding cleanup task / logic. cc @rudolf (well, when you're back) does that make sense to you? |
To enable sharing to multiple spaces #27004 the id's of saved objects had to be changed. A new saved object type, legacy-url-aliases was introduced to ensure that URLs to these old ids still work even though the underlying saved object's id was changed.
This means when users upgrade from 7.x to 8.x the amount of saved objects nearly doubles. This has the following impact:
This issue is to discuss ways to reduce the impact and eventually remove these legacy-url-aliases.
As a first step we should make it easy for users to delete legacy-url-aliases that aren't used. We could allow them to delete legacy-url-aliases that have never been used, or haven't been used in the last X months.
For the long term health of Kibana and our users it feels like we should deprecate these URLs and:
The text was updated successfully, but these errors were encountered: