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

remove artificial time series chart delay #3696

Merged
merged 2 commits into from
Dec 14, 2023
Merged

Conversation

briangregoryholmes
Copy link
Contributor

Closes #3381

Note: I did not have access to the dataset being used in the referenced Notion doc, so had to artificially recreate this situation while debugging.

The issue seems to be that TimeSeriesDataStore was artificially holding back data and returning isFetching as true until both the totals and primary queries were available.

During exploration, I saw no obvious UI issues related to rendering either of those pieces of data independently. As such, my proposed fix is to simply change the boolean logic of the isFetching property and remove the stricter "gate". This appears to solve the issue.

This PR also updates the totals query to a priority of 30.

@briangregoryholmes briangregoryholmes self-assigned this Dec 14, 2023
@briangregoryholmes briangregoryholmes changed the title 3381 time series render remove artificial time series chart delay Dec 14, 2023
Copy link
Contributor

@ericpgreen2 ericpgreen2 left a comment

Choose a reason for hiding this comment

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

Nice 💪

@ericpgreen2 ericpgreen2 merged commit 135177d into main Dec 14, 2023
2 checks passed
@ericpgreen2 ericpgreen2 deleted the 3381-time-series-render branch December 14, 2023 17:25
mindspank pushed a commit that referenced this pull request Dec 18, 2023
* update timeseries-data-store to return data as long as the primary or primaryTotal data is available (rather than both)

* assign totals query a higher priority
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Time series charts render need not wait for totals API call is resolved
2 participants