-
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] Other bucket defaults to false for top values greater than equal 1000 #167141
Conversation
Pinging @elastic/kibana-visualizations (Team:Visualizations) |
I would expect to be notified, as a user, if as side effect of my input "automagically" switches a setting somewhere.
Given that the |
@dej611 honestly i wanted to add a toast and I forgot it. I will update tmr :) |
@gchaps @amyjtechwriter can I have some help on the toast notification? The current state is: This notification appears when the user changes the terms size from a value below 1000 to a value above. When this happens we set the |
@elasticmachine merge upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested again and it works fine 👍
I have only a personal opinion about the behaviour when, within the same editing session, the user changes from 100 to 1000, then restores back to 100.
If the Group remaining values as "Others"
was enabled at 100 initially, I would expect the same state to be restored at the end. If the setting was disabled I would expect instead it to remain so.
Not a blocker for this PR, but the current behaviour of not restoring the initial state itches me a bit. 😅
Thanx Marco, I am waiting for Gail's text proposal so I am not going to merge it without it. I appreciate your review. Personally I think that at this case it is weird to enable it if the user types again the same number they had. This is an edge case and even if it happens we have already informed them with a notification that this switch is off. If we did what you propose in my mind it would require another notification because I don't think that it is expected that the switch will turn on again. We don't enable it for other cases so it is more confusing to enable it for this particular case. This complicates things in the UI without any good reason imho. (We can always change it if any user complains or finds it confusing) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Text LGTM
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
Summary
Closes #162456
It switches off the other bucket switch if the user updates the terms to a number greater than equal 1000.
In the beginning I had made it simpler so the switch would change to false if size >= 1000 and to true if size < 1000. But I am not sure I like this experience so I decided to do something else:
Let me know if you agree that this experience makes more sense.
Checklist