-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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(sqllab): fix control x to stop query #21899
Conversation
/testenv up |
Codecov Report
@@ Coverage Diff @@
## master #21899 +/- ##
==========================================
+ Coverage 66.85% 66.89% +0.04%
==========================================
Files 1805 1806 +1
Lines 69058 69119 +61
Branches 7368 7393 +25
==========================================
+ Hits 46167 46239 +72
+ Misses 20995 20971 -24
- Partials 1896 1909 +13
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@pkdotson Ephemeral environment spinning up at http://35.92.164.144:8080. Credentials are |
@@ -219,6 +219,7 @@ const SqlEditor = ({ | |||
if (latestQuery && ['running', 'pending'].indexOf(latestQuery.state) >= 0) { | |||
dispatch(postStopQuery(latestQuery)); | |||
} | |||
return false; |
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.
What is this used for?
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.
yes to prevent the event from bubbling up. This is for the stopquery fn. Mousetrap sometimes recommends this.
Ephemeral environment shutdown and build artifacts deleted. |
SUMMARY
After the refactor of the sqleditor component users weren't able to to stop query by control + x. This pr ensures that the component rebinds the mouestrap keys when latesquery is updated.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
after
Screen.Recording.2022-10-21.at.3.06.30.PM.mov
TESTING INSTRUCTIONS
Go to sqllab and run a query and use the control + x key to stop the query.
ADDITIONAL INFORMATION