-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
fix: sql lab refetch button #16469
fix: sql lab refetch button #16469
Conversation
…esults (apache#15109) * fix: SQL Lab show "Refetch Results" button while fetching new query results * fix comments (cherry picked from commit 408d58f)
Codecov Report
@@ Coverage Diff @@
## master #16469 +/- ##
==========================================
- Coverage 76.63% 76.62% -0.01%
==========================================
Files 1002 1002
Lines 53637 53653 +16
Branches 6853 6861 +8
==========================================
+ Hits 41104 41114 +10
- Misses 12294 12300 +6
Partials 239 239
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM given #15109 was already approved
Reading the original description of #15109, I'm also wondering whether we can just replace the first "success" state to "fetching"? |
I think what is this PR doing. |
I mean where is the original first |
the first success is read from polling API, which is stored in queries table. |
Got it. Thanks for the clarification! |
* fix: SQL Lab show "Refetch Results" button while fetching new query results (apache#15109) * fix: SQL Lab show "Refetch Results" button while fetching new query results * fix comments (cherry picked from commit 408d58f) * handle exception caused by invalid query id
* fix: SQL Lab show "Refetch Results" button while fetching new query results (apache#15109) * fix: SQL Lab show "Refetch Results" button while fetching new query results * fix comments (cherry picked from commit 408d58f) * handle exception caused by invalid query id
SUMMARY
See #15109, SQL Lab show "Refetch Results" button while fetching large query results. The fix in #15109 works, but it introduce another issue so we had to revert it. This PR adds extra fix on top of it.
See the 2nd commit: in airbnb most users still using client side localStorage to store query history. it seems sometimes the queries data was broken or messed up (for example, after user clear localStorage or delete some queries from History Tab). When user tries to re-run a query and sql lab start polling, sql lab can not find query id in the Redux state, which will cause exception, and show offline status.
ADDITIONAL INFORMATION