-
-
Notifications
You must be signed in to change notification settings - Fork 338
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 tables and queries API errors on the schema page #2644
Comments
@kgodey @ghislaineguerin tagging you just in case you want to have a proper design for this error state. |
I think it'd be better to have a retry button along with the error instead of a go to database page button. |
assign me this issue @rajatvijay @pavish , i would love to contribute to it. |
Go ahead @MANISH-LAB. |
@pavish that was my initial thought too. But then shouldn't these apis have default retry mechanism for let's say 3 times in built? |
@rajatvijay That's a backend concern (and as far as I know, we don't do anything of that sort) and I don't think we should account for it in the UX. I don't see any specific advantage in having a button move to database page, but I do see an advantage in a retry button, because it lets the user take an action to recover the error state. |
@rajatvijay should be a fairly simple check to check for data from both API calls right? But what should be the desired behavior if the request fails even after retrying? We might also want to rate limit the retry calls to our backend. What do you think? |
This is the main reason for having the go-to database page button too. I have already added this in the Expected section of the issue description.
I do not think that we should bother ourselves with this since this is similar to the user coming back to this page again and again which ends up making the same no of API calls. |
Unassigning due to in-activity |
Can I be assigned on this issue? |
Do you need a refresh button that makes a GET request? |
No, but you can start working on this. See #1490 (comment)
Please see the "Expected behaviour" section of the issue description. |
How do I trigger 504 error? |
You can send a response with status code 504 from the backend. Also, @rajatvijay, if none is working on the issue, can I be assigned? |
@Aritra8438 assigning this to you due to in activity from earlier contributor |
Hi, @rajatvijay, as you have already mentioned, the error state should have a proper design. While submitting the PR, I used a crude template to get things done. After the design, I will modify the PR accordingly. |
@ghislaineguerin assigning this to you to provide proper designs for this. |
@rajatvijay The design is already added in #2829 |
Unassigning due to inactivity |
can this be assigned to me? |
@Tweniee You're welcome to work on this and submit a PR, but in general we don't assign tickets to new contributors, as noted in our Contributor Guide. Once we've already merged a PR of yours, then we'll be happy to assign tickets to you after that. The reason for this policy is that in the past it has been a maintenance burden for us to manage ticket assignments while having an overwhelming volume of people fail to submit their first PR when initially expressing intent to contribute. |
Hi, I have created PR #3323 to address this issue. Could this issue please be assigned to me? Thanks :) |
@nikhilhenry As noted in our Contributor Guide and in the previous comment by Sean, we assign new tickets to contributors after one of their PRs is merged. Thanks for the PR #3323. After we've reviewed and merged it, if you wish to work on other open issues, we'd happily assign them to you. |
Description
The schema page directly relies on two API calls
Current behavior
When either one of the APIs fails the page assumes a success state with no results hence showing the button either create a new table or go to the data explorer to create a new exploration.
Expected behavior
When either one of the APIs fails the page should show an error state with a button to retry the failed API call and a button to go back to the database page.
The text was updated successfully, but these errors were encountered: