Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.

Wait until all chart data page requests are complete before rendering. #2785

Merged
merged 1 commit into from Aug 14, 2019

Conversation

jeffstieler
Copy link
Contributor

Fixes #2775. Pairs with #2710 and #2776.

When fetching data for charts with more than 1 page (100 items) of data, there is a chance that the request for the last page finishes before an earlier page, causing that page to be omitted from the chart render. This results in a single line connecting points across a long time scale.

This PR seeks to enforce that all page requests have finished before rendering the chart.

Note: when you do reproduce the bug, switching chart modes (line/bar) restores the data.

Screenshots

Before:

Screen Shot 2019-08-13 at 3 36 13 PM

After:

Screen Shot 2019-08-13 at 3 31 26 PM

Detailed test instructions:

Changelog Note:

Fix: chart data fetch/render over long time periods

@jeffstieler jeffstieler added type: bug The issue is a confirmed bug. [Status] Needs Review focus: analytics Issues about Analytics/Reports labels Aug 13, 2019
@jeffstieler jeffstieler requested a review from a team August 13, 2019 22:38
@jeffstieler jeffstieler added this to In Progress PRs (for automation purposes) in Isotope via automation Aug 13, 2019
Copy link
Collaborator

@rrennick rrennick left a comment

Choose a reason for hiding this comment

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

@jeffstieler This works great and fixes the issue identified in #2775 (comment) :shipit:

@jeffstieler jeffstieler merged commit b34b167 into master Aug 14, 2019
Isotope automation moved this from In Progress PRs (for automation purposes) to Done Sprint 23 (August 13 - August 26) Aug 14, 2019
@jeffstieler jeffstieler deleted the fix/2775-long-time-scale-chart-render branch August 14, 2019 14:59
@psealock psealock moved this from Done Sprint 23 (August 13 - August 26) to 🤖 Done Sprint 22 (July 29 - August 12) in Isotope Aug 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
focus: analytics Issues about Analytics/Reports type: bug The issue is a confirmed bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Category chart re-render broken on long time scale
2 participants