superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: [sql lab] allow stoping 'pending' queries (#4896)
Date Fri, 27 Apr 2018 23:10:32 GMT
This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 0a95371  [sql lab] allow stoping 'pending' queries (#4896)
0a95371 is described below

commit 0a953714acedd9d58ab331c996b6961a996d685e
Author: Maxime Beauchemin <maximebeauchemin@gmail.com>
AuthorDate: Fri Apr 27 16:10:29 2018 -0700

    [sql lab] allow stoping 'pending' queries (#4896)
---
 superset/assets/src/SqlLab/components/SqlEditor.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/assets/src/SqlLab/components/SqlEditor.jsx b/superset/assets/src/SqlLab/components/SqlEditor.jsx
index b3093f3..37626a8 100644
--- a/superset/assets/src/SqlLab/components/SqlEditor.jsx
+++ b/superset/assets/src/SqlLab/components/SqlEditor.jsx
@@ -145,7 +145,7 @@ class SqlEditor extends React.PureComponent {
     this.props.actions.setActiveSouthPaneTab('Results');
   }
   stopQuery() {
-    if (this.props.latestQuery && this.props.latestQuery.state === 'running') {
+    if (this.props.latestQuery && ['running', 'pending'].indexOf(this.props.latestQuery.state)
>= 0) {
       this.props.actions.postStopQuery(this.props.latestQuery);
     }
   }

-- 
To stop receiving notification emails like this one, please contact
maximebeauchemin@apache.org.

Mime
View raw message