-
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
[discuss][uiActions] How to force specific action execution? #72673
Comments
Pinging @elastic/kibana-app-arch (Team:AppArch) |
i think 1. is fine. 3. doesn't make sense, it results in 1. so if app wants to execute specific action, execute that action. however for the case of maps i am not sure that is the case ? what happens when you put map embeddable somewhere where there is no filter manager (and no action that would apply that filter) ? If its something inside the application itself that would be fine, but for something inside embeddable triggers should be used. |
@ppisljar, this specific case is about map embeddable. In current scenario from inside map embeddable, depending on what exactly user did, I want to one of:
What if in case of executing action directly we would first call
|
we discussed over zoom and decided to try option 3. as its not true it will result in option 1. there is one big difference, app running executeTriggerActions will not know which action will execute, just that the default one will, which still allows us to provide different action implementations in different apps (for example apply_filter_action will look different in apps without filter bar and not using filter manager) |
@ppisljar, @streamich please check how it might look if we just go with WDYT? for future more advanced cases we could get back and implement: #72673 (comment) |
I guess this can be closed for now. Maps implement this using approach similar to #73067. |
Assuming we have:
When app executes
Trigger1
, context menu popup is shown and user has to pick either ActionA or ActionB.But assume for some cases
app
knows it wants to executeActionA
What is the best way to implement this?
Some options I thought of:
uiActions.exec(Trigger1, {useDefaultAction: true})
, where it knowns default isActionA
Probably related to #47468?
@streamich, @ppisljar, @stacey-gammon what is your take on it?
Real use case where this came up:
After adding nested triggers and actions I refactored explore underlying data to use
Apply_filter_action
. This enabled "explore underlying data" for Maps. Instead of disabling this functionality completely, I'd like to leave it. But there are advanced cases where this popup spoils the UX and, for now, I'd just like to not show that popup for some cases, but apply filter directly. (see Nathan's comment #71445 (comment))But I am not sure what is the correct way to do it.
The text was updated successfully, but these errors were encountered: