-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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: only fetch db function when db exists in sql lab #16754
fix: only fetch db function when db exists in sql lab #16754
Conversation
Codecov Report
@@ Coverage Diff @@
## master #16754 +/- ##
==========================================
- Coverage 76.98% 76.98% -0.01%
==========================================
Files 1007 1007
Lines 54174 54175 +1
Branches 7463 7464 +1
==========================================
- Hits 41708 41704 -4
- Misses 12226 12231 +5
Partials 240 240
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
/testenv up |
@yousoph Ephemeral environment spinning up at http://54.213.51.202:8080. Credentials are |
Ephemeral environment shutdown and build artifacts deleted. |
🏷 2021.38 |
(cherry picked from commit d375538)
SUMMARY
When closing multiple tabs, there would sometimes be errors because we were fetching function names with a null db. This checks that the db is present before updating. If the db is not present, the function names will fetch on the left toolbar db change method.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
before:
CleanShot.2021-06-24.at.11.14.59.mov
TESTING INSTRUCTIONS
save a query, copy it and open it in a window. Open a bunch of saved queries so that you have about 4 tabs loading all at once on a page load, then close them one by one. There should be no errors, and your database should update.
ADDITIONAL INFORMATION