-
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
Discover - Selected Fields not reset with index pattern change #4909
Comments
When index patterns are changed, selected fields should be reset by default ( |
Want to bump this. It still happens in 5.0, and there's no way to remove the selected field without switching back to the index pattern it came from. There's several options I can think of:
Option 3 is a bigger change I guess and needs thinking about the user experience, while 1 or 2 would probably be easier to do. |
There actually is a button next to the column name, but it's tiny and appears only when hovering over it. |
I did encounter this today and my first thought was: "hmm, why are these still here?". It would be nice to have it saved for each index, but for now it still is a bad experience for the user and just resetting it would make a big difference. |
Looks the same in 4.x and 5.x, The selected field is not displayed in the upper right list, but it will still be displayed on the dashboard table as a column. |
Removing discuss label - we will triage this in the context of Discovery team. |
Is this only limited to the columns? Other parts of the application state that relate to the available fields should probably also be reset when the index pattern changes, i.e. sorting, filters (see #9387), query. How would we justify resetting some but not others? Discover could absolutely use an overhaul of the way the app state is managed, but then it almost feels like a breaking change instead of a bugfix. |
@weltenwort I tend to agree, I've left similar comments on other issues. In my mental model the index pattern is just one part of the search, and it should be possible to swap the index pattern without losing the rest of your search. Now that the New button correctly resets the columns, I wonder how useful this would be. |
Clicking "New" button before switching the index clears the selected fields... as per #10357 |
Closing this for now as you can now click the "New" button to clear things out, and some people may want this behavior if they have fields that are the same across index patterns. |
In Discover, if you select a field in one index pattern:
Then change index patterns without removing that field, it sticks around in the new index pattern, even when it's not a valid field there:
The text was updated successfully, but these errors were encountered: