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

Handle API error for timeseries #4211

Merged
merged 2 commits into from
Mar 3, 2024
Merged

Handle API error for timeseries #4211

merged 2 commits into from
Mar 3, 2024

Conversation

djbarnwal
Copy link
Member

Partially fixes #4188
This checks for error in the timeseries data store and propagates that to the TDD table.

We do not currently check for error on the individual timeseries API which is called for each row of the TDD table. Since we are planning to move away from individual timeseries API to a batch aggregation API, will add the error handling directly there.

@djbarnwal djbarnwal self-assigned this Feb 29, 2024
@ericpgreen2
Copy link
Contributor

To check this out, I manually set {#if $timeDimensionDataStore?.isError} to {#if true}. I see this:

image

Looks like a bug with the TDD table below the error message. I'm not sure if this case would ever happen in reality, but looks like an "else if" statement could be safer.

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.

Approving so you can merge at your discretion.

@djbarnwal djbarnwal merged commit 1db6017 into main Mar 3, 2024
4 checks passed
@djbarnwal djbarnwal deleted the handle-timeseries-error branch March 3, 2024 07:18
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 Dimension Detail: when a request has failed, show an error state rather than a perpetual loading spinner
2 participants