-
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
[Lens][Annotations] Annotation group should behave by reference #211597
Comments
Pinging @elastic/kibana-visualizations (Team:Visualizations) |
I think @thomasneirynck found out some underline problem with the current Annotation sync flow. Current stateCurrently an annotation group can behave in 3 ways:
The problemThe main problem with the hybrid approach seems to be related to its implementation, which is designed to be a multi-author experience while lacking the foundations to resolve the type of conflicts that this kind of user experience requires. This error can be described with the following story:
After t4 the edits made by User B now overrides completely what User A did. Some ideasIdea 1First idea that comes to mind is to actually go all-in with a full multi-author experience (a-la google doc) with a data structure and sync engine able to handle this type of challenges. Idea 2On the complete opposite side we could stop the hybrid approach once for all.
Probably the idea space here has not bee fully explored, so feedback is welcomed. |
I don't think we need to be too worried about simulataneous edits of annotation groups from different users in different visualizations. Is there an "Idea 1" where the last saver wins? (thus keeping the implementation cost down?) |
@thomasneirynck: Is this hybrid approach the issue you were encountering? For example, you loaded a by-reference annotation into a visualization, made a change to it, but didn't save the annotation changes to the library (leaving it in a dirty/changed state)? If so, did you assume the annotation changes would be auto-saved and applied to all other visualizations when saving the parent visualization?
@thomasneirynck: Or was this your issue, where there was a bug in the inline editing experience that was causing your saved by-reference annotations not to be correctly synced? If your issue was the hybrid approach, and it's one that we can confidently say confuses our users, then we can certainly consider alternatives. The most obvious approach is likely forcing users to save any dirty/changed by-reference annotations when attempting to save the parent visualization. It's a roadblock we we hoping to avoid with the hybrid approach, but I imagine it would be considered acceptable to avoid confusion. However, if your issue was the inline editing bug that @dej611 mentioned, then I'd hesitate to make any changes beyond fixing the bug. |
Describe the feature:
When adding an annotation group to one or more visualizations, this group should behave "by reference". When changes are made to the group, these changes should reflect on all charts.
Currently, a group behaves "by value". A user can add a group to a chart, but it "copies" over all the annotaitons. When this group is edited, these changes will only reflect on that single chart.
Describe a specific use case for the feature:
This is an important feature because it allows annotations to be kept "in sync" on multiple charts on a dashboards. ie. different charts should be able to show the same annotations.
The text was updated successfully, but these errors were encountered: