-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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] Avoid to have fieldless operations by restored last valid state #98588
Conversation
Pinging @elastic/kibana-app (Team:KibanaApp) |
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, LGTM
The PR might fail because of unused deleteColumn
in x-pack/plugins/lens/public/indexpattern_datasource/dimension_panel/dimension_editor.tsx
, but should be easy to fix.
Checked on Chrome, the code looks good to me! |
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
elastic#98588) Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
Summary
Fixes #89032 and #83466
This PR is another take on the field input clearing scenario within the dimension panel.
Previous iteration was #98295 which was attempting to validate the invalid state, but had various implications on other aspects of the app to handle.
This PR has a simpler approach, where previous valid state is restored on field clear, similar to other interactions within the same panel (i.e. invalid field type for the current operation).