-
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
[Lens] Update label if operation and field are changed at once #100991
Conversation
Pinging @elastic/kibana-app (Team:KibanaApp) |
@elasticmachine merge upstream |
Tested on FF and works fine. There is one more case that for me feels off: dragging a new field to replace existing operation with custom label. I feel like when only the field is changed we should reset the label as well. Let me know what you think about it and if needed to be addressed, if you prefer me to open a new issue or fix it here. |
It's hard to always do the right thing for custom labels - I didn't change the behavior for changing field because the user could pick a name without mentioning the field because it's implied by the context (e.g. I think reverting to default if both operation and field are changed is safer because there aren't much options what the label would refer to in this situation. |
@elasticmachine merge upstream |
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
* master: (68 commits) Unskip advanced settings a11y test (elastic#100558) [App Search] Crawler Landing Page (elastic#100822) [DOCS] Clarify when to use kbn clean (elastic#101155) change label behavior (elastic#100991) skip flaky suite (elastic#101126) Fix cases plugin ownership (elastic#101073) [Home] Adding file upload to add data page (elastic#100863) [ML] Functional tests - reenable categorization tests (elastic#101137) [DOCS] Adds server.uuid to settings docs (elastic#101121) Fix newsfeed unread notifications always on when reloading Kibana (elastic#100357) [Lens] Time shift metrics (elastic#98781) [Deprecations service] make `correctiveActions.manualSteps` required (elastic#100997) Add "Risk Matrix" section to the PR template (elastic#100649) [Maps] spatially filter by all geo fields (elastic#100735) [Security Solution] Add Ransomware canary advanced policy option (elastic#101068) [Exploratory view] Core web vitals (elastic#100320) [Security solution][Endpoint] Add unit tests for fleet event filters/trusted apps cards (elastic#101034) [Lens] Use a setter function for the dimension panel (elastic#101123) [Index Patterns] Fix return saved index pattern object (elastic#101051) [CI] For PRs, build TS refs before public api docs check (elastic#100791) ...
Fixes #100989
Reverts to default label if operation and field are changed at the same time (e.g. by dragging in a field which is not compatible with the current operation)