Skip to content

Bugfix: Interpreter conversion of string to number should throw on NaN #27788#50063

Merged
Dosant merged 4 commits intoelastic:masterfrom
Dosant:dev/interpreter-conversion-of-string-to-number-should-throw-on-nan-27788
Nov 12, 2019
Merged

Bugfix: Interpreter conversion of string to number should throw on NaN #27788#50063
Dosant merged 4 commits intoelastic:masterfrom
Dosant:dev/interpreter-conversion-of-string-to-number-should-throw-on-nan-27788

Conversation

@Dosant
Copy link
Copy Markdown
Contributor

@Dosant Dosant commented Nov 6, 2019

Summary

Fixes #27788

Screenshot 2019-11-06 at 18 30 13

Checklist

For maintainers

Questions:

  1. About tests:
    I was looking for where to put a proper test for the fix,
    I was trying to find some place where expression execution would be tested end-to-end.
    e.g: input an expression string -> output a snapshot of result json.
    The closest to what I was looking for was: https://github.com/elastic/kibana/tree/master/test/interpreter_functional
    So ideally I would create a test case which should fail on invalid NaN conversion there.
    But most of those tests are skipped because of [interpreter] Failing functional tests on chromedriver 76 #42842
    In this pr, I could also enable those tests leaving only toMatchSnapshot and adding new test for this bug fix. And would address screenshots flakiness separately.
    Please suggest.

I opened #50089 to enable those test and #50080 which enables just snapshots.
If/when those are merged - will be able to add a proper test for this error.

@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

@Dosant Dosant added the v8.0.0 label Nov 6, 2019
@Dosant Dosant force-pushed the dev/interpreter-conversion-of-string-to-number-should-throw-on-nan-27788 branch from 6239c8f to 99397ac Compare November 6, 2019 17:52
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@Dosant
Copy link
Copy Markdown
Contributor Author

Dosant commented Nov 11, 2019

@elasticmachine merge upstream

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Copy link
Copy Markdown
Contributor

@lizozom lizozom left a comment

Choose a reason for hiding this comment

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

Tested text input for numeric fields in Canvas.
LGTM

However please find a way to reproduce a call to validate or remove it before merging.

@lizozom lizozom added the bug Fixes for quality problems that affect the customer experience label Nov 11, 2019
Wasn’t able to trigger that scenario
…er-conversion-of-string-to-number-should-throw-on-nan-27788
@Dosant
Copy link
Copy Markdown
Contributor Author

Dosant commented Nov 11, 2019

However please find a way to reproduce a call to validate or remove it before merging.

@lizozom, didn't reproduce a call, so removed it 👍

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@Dosant Dosant merged commit a97c9d3 into elastic:master Nov 12, 2019
@Dosant Dosant deleted the dev/interpreter-conversion-of-string-to-number-should-throw-on-nan-27788 branch November 12, 2019 10:08
jloleysens added a commit to jloleysens/kibana that referenced this pull request Nov 12, 2019
* upstream/master:
  [ML] Make navigation in tests more stable (elastic#50132)
  Migrate authorization subsystem to the new platform.  (elastic#46145)
  Bugfix: Interpreter conversion of string to number should throw on NaN elastic#27788 (elastic#50063)
  Update dependency @elastic/charts to v14 (elastic#49947)
  [ML] Adding cloud specific ML node warning (elastic#50139)
  Fixing bugs in the Shareable Runtime (elastic#49965)
  Revert router base name for Uptime plugin to use hash in default path. (elastic#50095)
  Ability to have telemetry always opted in (elastic#49798)
  Add "Get Help" and "Kibana Feedback" links to the help popover (elastic#49797)
  Removes references to Elasticsearch mapping types (elastic#47610)
  [skip-ci] Replace coordinate map in Kibana getting started docs with Maps (elastic#50167)
  [ML] Indicate missing required privileges for import in File Data Viz (elastic#50147)
  [SIEM][Detection Engine] Removes technical debt and minor bug fixes (elastic#50111)
jloleysens added a commit to jloleysens/kibana that referenced this pull request Nov 12, 2019
* upstream/master:
  Move table-list-view to kibana-react (elastic#50046)
  [ML] Stats bar for data frame analytics (elastic#49464)
  [ML] Make navigation in tests more stable (elastic#50132)
  Migrate authorization subsystem to the new platform.  (elastic#46145)
  Bugfix: Interpreter conversion of string to number should throw on NaN elastic#27788 (elastic#50063)
  Update dependency @elastic/charts to v14 (elastic#49947)
  [ML] Adding cloud specific ML node warning (elastic#50139)
  Fixing bugs in the Shareable Runtime (elastic#49965)
  Revert router base name for Uptime plugin to use hash in default path. (elastic#50095)
  Ability to have telemetry always opted in (elastic#49798)
  Add "Get Help" and "Kibana Feedback" links to the help popover (elastic#49797)
  Removes references to Elasticsearch mapping types (elastic#47610)
  [skip-ci] Replace coordinate map in Kibana getting started docs with Maps (elastic#50167)
  [ML] Indicate missing required privileges for import in File Data Viz (elastic#50147)
  [SIEM][Detection Engine] Removes technical debt and minor bug fixes (elastic#50111)
jloleysens added a commit to jloleysens/kibana that referenced this pull request Nov 12, 2019
…skip ci]

* upstream/master:
  Move table-list-view to kibana-react (elastic#50046)
  [ML] Stats bar for data frame analytics (elastic#49464)
  [ML] Make navigation in tests more stable (elastic#50132)
  Migrate authorization subsystem to the new platform.  (elastic#46145)
  Bugfix: Interpreter conversion of string to number should throw on NaN elastic#27788 (elastic#50063)
  Update dependency @elastic/charts to v14 (elastic#49947)
  [ML] Adding cloud specific ML node warning (elastic#50139)
  Fixing bugs in the Shareable Runtime (elastic#49965)
  Revert router base name for Uptime plugin to use hash in default path. (elastic#50095)
  Ability to have telemetry always opted in (elastic#49798)
  Add "Get Help" and "Kibana Feedback" links to the help popover (elastic#49797)
  Removes references to Elasticsearch mapping types (elastic#47610)
  [skip-ci] Replace coordinate map in Kibana getting started docs with Maps (elastic#50167)
  [ML] Indicate missing required privileges for import in File Data Viz (elastic#50147)
  [SIEM][Detection Engine] Removes technical debt and minor bug fixes (elastic#50111)
jloleysens added a commit to jloleysens/kibana that referenced this pull request Nov 13, 2019
…ger-ace-theme

* 'master' of github.com:elastic/kibana: (56 commits)
  [ML] Server info service refactor (elastic#50302)
  Remove internal platform types exports (elastic#50427)
  [APM] Document `apm_oss.metricsIndices` and `apm_oss.sourcemap… (elastic#50312)
  [Telemetry] Server side fetcher (elastic#50015)
  [SIEM] Detection engine placeholders (elastic#50220)
  [Uptime] Donut chart loader position centered vertically  (elastic#50219)
  update telemetry banner notice text (elastic#50403)
  Fix aborting when searching without batching (elastic#49966)
  [Telemetry] Remove telemetry splash page and add conditional messaging (elastic#50189)
  Revert chromedriver update (elastic#50324)
  Remove deprecated argument include_type_name from ES calls (elastic#50285)
  [Maps] add settings to maps telemetry (elastic#50161)
  remove visualize loader (elastic#46910)
  Fix misuse of react-router and react-router-dom (elastic#50120)
  Move table-list-view to kibana-react (elastic#50046)
  [ML] Stats bar for data frame analytics (elastic#49464)
  [ML] Make navigation in tests more stable (elastic#50132)
  Migrate authorization subsystem to the new platform.  (elastic#46145)
  Bugfix: Interpreter conversion of string to number should throw on NaN elastic#27788 (elastic#50063)
  Update dependency @elastic/charts to v14 (elastic#49947)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Fixes for quality problems that affect the customer experience release_note:fix review v7.6.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Interpreter conversion of string to number should throw on NaN

3 participants