Skip to content
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] show the "Requires field" validation message for empty visualization for inline editing #178393

Merged

Conversation

mbondyra
Copy link
Contributor

Fixes #178237

In inline editing, the 'requires field' message appears even when the chart is empty. This behavior differs from the Lens editor, where the message is not shown when the chart is empty. The reason for this difference is that in Lens, we can easily start from an empty state and the chart workspace reflects it. However, in the inline Lens editor, we render the last correct state in the embeddable even if configuration is empty.

Adding this warning will help users understand why the state in the embeddable is desynchronized.

@mbondyra mbondyra added Team:Visualizations Visualization editors, elastic-charts and infrastructure release_note:skip Skip the PR/issue when compiling release notes Feature:Lens v8.14.0 labels Mar 11, 2024
@mbondyra mbondyra requested a review from a team as a code owner March 11, 2024 14:50
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-visualizations (Team:Visualizations)

@stratoula
Copy link
Contributor

/ci

Copy link
Contributor

@stratoula stratoula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great! LGTM!

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
lens 1.4MB 1.4MB -86.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@mbondyra mbondyra merged commit d2d0c83 into elastic:main Mar 12, 2024
16 checks passed
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Mar 12, 2024
@mbondyra mbondyra deleted the lens/highlight_empty_required_dimensions branch March 12, 2024 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:Lens release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v8.14.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Lens] show the standard Lens "Requires field" validation message for empty visualization
5 participants