-
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] [WIP] Switch over index pattern automatically #42427
[Lens] [WIP] Switch over index pattern automatically #42427
Conversation
💔 Build Failed |
Jenkins, test this. |
💚 Build Succeeded |
No need to review that one yet, let's discuss the UX implications first. |
How about we have a popup that says something along the lines of "Lens found the same fields in index B would you like to apply index b on the current visualization? yes change to index B / no do nothing`
How about we have a popup that says |
@AlonaNadler That's a nice way of handling that, but do we want to show a popup each time the user switches the index pattern (which would be implied by your suggestion above)? How about only showing the popup if we could transfer the layer and just doing nothing if that's not the case? A new layer will be opened automatically once the user drags a field from the new index pattern into the workspace. To make it less intrusive, @wylieconlon also had the idea to show the popup inline in the data panel (maybe above the field list). |
I had a similar idea to @wylieconlon's but in the layer panel instead since that's where the "switch" would happen. |
💔 Build Failed |
💚 Build Succeeded |
💔 Build Failed |
Closing this because the switcher will always switch all layers as discussed offline for the first version. |
Switches the assigned index patterns for all layers to the one selected in the data panel if the following conditions hold true:
The
isLayerTransferable
function and the part of the operations figuring out whether they are transferable or not will be useful to also implement a manual switch on a per layer basis (I will do that in a separate PR).About the "automatic switching" part:
I'm worried that the UI could be confusing in some situations:
What do you think, @AlonaNadler @cchaos ? Can we make the UI more predictable? I have a feeling this way of doing things tries to be too clever and will fail in some situations.