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

[TSVB] Fixes bug on TopN weird behavior with zero values #74942

Merged
merged 1 commit into from
Aug 14, 2020

Conversation

stratoula
Copy link
Contributor

@stratoula stratoula commented Aug 13, 2020

Summary

Closes #72604. When the value was zero, the division returned NaN, causing this weird behaviour on TopN.
I changed it to default on 0 when NaN is detected.

Checklist

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

async chunks size

id value diff baseline
visTypeTimeseries 1.8MB +3.0B 1.8MB

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

@stratoula stratoula changed the title Fix bug on TopN weird behavior with zero values [TSVB] Fixes bug on TopN weird behavior with zero values Aug 13, 2020
@stratoula stratoula added Feature:TSVB TSVB (Time Series Visual Builder) bug Fixes for quality problems that affect the customer experience v8.0.0 v7.10.0 Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Aug 13, 2020
@stratoula stratoula marked this pull request as ready for review August 13, 2020 13:51
@stratoula stratoula requested a review from a team August 13, 2020 13:51
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@stratoula stratoula requested review from alexwizp and removed request for alexwizp August 13, 2020 13:51
Copy link
Contributor

@alexwizp alexwizp left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you

Copy link
Contributor

@mbondyra mbondyra left a comment

Choose a reason for hiding this comment

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

Haven't tested, code looks good to me!

@stratoula stratoula merged commit 458bf9f into elastic:master Aug 14, 2020
stratoula added a commit to stratoula/kibana that referenced this pull request Aug 14, 2020
gmmorris added a commit to gmmorris/kibana that referenced this pull request Aug 14, 2020
* master:
  Fix bug on TopN weird behavior with zero values (elastic#74942)
  [Lens] Fix table sorting bug (elastic#74902)
  [SECURITY_SOLUTION] Retry on ingest setup (elastic#75000)
  [file upload] lazy load to reduce page load size (elastic#74967)
  Drilldowns for TSVB / Vega / Timelion (elastic#74848)
  [EventLog] Populate alert instances view with event log data (elastic#68437)
  [UiActions] pass trigger into action execution context (elastic#74363)
stratoula added a commit that referenced this pull request Aug 17, 2020
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 Feature:TSVB TSVB (Time Series Visual Builder) release_note:fix Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.10.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TSVB] Top N invalid chart rendering switching to a time range containing zeros as last data entry
5 participants