-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Closed
Labels
Feature:ExpressionLanguageInterpreter expression language (aka canvas pipeline)Interpreter expression language (aka canvas pipeline)bugFixes for quality problems that affect the customer experienceFixes for quality problems that affect the customer experiencegood first issuelow hanging fruitlow hanging fruit
Description
Kibana version: 6.6+
Describe the bug:
When converting from a string to a number, it simply passes the string through Number. This mostly works, except when the resulting value is NaN, in which case it just returns NaN, which is a number, but isn't valid.
Steps to reproduce:
- Set an number argument to a string value, like "cats" (font size on the plot function in Canvas is one example).
- The value of
argspassed into the function is the string"NaN"
Expected behavior:
The conversion should throw if isNaN(Number(value)) is true.
Metadata
Metadata
Assignees
Labels
Feature:ExpressionLanguageInterpreter expression language (aka canvas pipeline)Interpreter expression language (aka canvas pipeline)bugFixes for quality problems that affect the customer experienceFixes for quality problems that affect the customer experiencegood first issuelow hanging fruitlow hanging fruit