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] Static value: extends support for floating point number edge cases #118048

Open
Tracked by #57708
dej611 opened this issue Nov 9, 2021 · 2 comments
Open
Tracked by #57708
Labels
enhancement New value added to drive a business result Feature:Lens impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@dej611
Copy link
Contributor

dej611 commented Nov 9, 2021

Describe the bug:

Integer numbers written as "floating point numbers" without decimals are still valid numbers:

1. => 1

Currently that is not supported in Formula, leading to some gentle error message:

Screenshot 2021-11-09 at 17 56 59

Screenshot 2021-11-09 at 17 57 04

But for Static value, which uses Formula underneath, this gets a little bit more confusing:

Screenshot 2021-11-09 at 17 57 14

I guess this can be seen as both an enhancement from the Formula side and a bug from the Static value point of view.
I'll focus the issue on the latter as this leads to the more confusing result, but having a better support in Formula would be much better.

@dej611 dej611 added bug Fixes for quality problems that affect the customer experience Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Lens labels Nov 9, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors)

@dej611 dej611 added the impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. label Nov 9, 2021
@dej611
Copy link
Contributor Author

dej611 commented Nov 9, 2021

Noticed the same problem can be reproduced also with a double 0:
Screenshot 2021-11-09 at 18 16 06

@flash1293 flash1293 added enhancement New value added to drive a business result and removed bug Fixes for quality problems that affect the customer experience impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. labels Feb 14, 2022
@stratoula stratoula added the impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. label Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:Lens impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

6 participants