-
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
[Canvas] Call out element using deprecated functions #134840
Comments
Pinging @elastic/kibana-presentation (Team:Presentation) |
@elastic/kibana-design, could you, please, have a look at this issue and provide some suggestions about the design of this functionality. Thanks a lot 😃 |
We don't have anybody free at the moment to work on Canvas designs, so this is just a quick take. First, it seems we'd want to draw attention to the Expression editor portion of the UI and avoid any obtrusive messaging on the element itself. (See badge option below) Second, highlighting the deprecated function in the editor UI would clarify the exact line(s) in question. In a brief scan of the Monaco demo / docs, we could do something like this: (see blue bar below) |
I'm wondering what's the impact on users when there are viz build using deprecated functions @Kunzetsov do the viz still work even if they are based on deprecated functions? It would be great to see a screenshot of the consequences for users for this problem |
@teresaalvarezsoler, the main goal of adding this functionality to Canvas is to inform users about the deprecation of the functions, their workpads contain. Also, it was planned to add some docs with migration guidelines (possibly, by displaying those notes in the sidebar of Canvas). In some major versions (I guess, don't have the real plan), those functions will be completely removed and replaced by the unified renderers, described in the current issue. So, this issue is describing the way of informing and guiding users about what to do with their current workpads, if automatic migration is impossible. Does it make sense to you? |
@teresaalvarezsoler, some discussions you can see here: #134838 |
I'm not sure having a label in the deprecated functions is the best way to communicate this... many users may miss it because they have automatic reporting processes going on or because they never manually edit their Canvas. I think we should first know what will happen with the deprecated functions before investing any effort on this. It would be a way better user experience if we can keep compatibility with previous versions or automatically replace them as you mentioned. If that cannot happen then let's think what's the best way to communicate this to users. |
Also, is there a way to know which users are using these functions? It would help us to decide the level of effort we put on this. Canvas has pretty low usage... if we can identify the users, it may even worth to contact them directly. |
@teresaalvarezsoler, as for real, I don't know how we can identify the users. This question is more for the developers from Elastic. @jb1b84 or @ThomThomson, could you, please, provide support in this question. Deprecated functions were planned to be removed in favor of So, we should:
@teresaalvarezsoler, WDYT about it? Does it make any sense? |
I think we should first know what's the impact of having deprecated functions. We should push for automatic replacement or full compatibility instead of relaying on users to do so. |
@teresaalvarezsoler, could you, please, suggest somebody to help with figuring out these questions. I have no idea, what is the impact of having deprecated functions, who is using them, and who will be affected, if we'll remove it at the current/next version. I know only one thing, it is impossible to have full compatibility, because those charts have a different purpose and the new charts have more reach functionality. They have different libraries, API's, ways of selecting data, etc. |
@Kunzetsov I thought this request came from you, this is the first time I hear about deprecated functions and them being an issue. Who asked you to do this? We should talk to that person and better understand why we need to do this, we cannot design or implement anything without the full context. |
@teresaalvarezsoler, the first time I heard about deprecation was a year ago while talking to @crob611 and @clintandrewhall while discussing the issue #101377. The last time we were talking about this part of the project with @crob611 and @jb1b84, was two weeks ago while discussing this issue: #134841, I guess. So, anybody of them will be a good point of contact. |
Thank you for the context. Corey left last week, I will talk with @jb1b84. |
Visually call out that an element that is rendered is using functions that are deprecated, and perhaps offer suggestions for how they can migrate away from those functions.
We will probably need to get design involved on this issue.
The text was updated successfully, but these errors were encountered: