You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by GitBox <gi...@apache.org> on 2018/11/11 23:53:51 UTC

[GitHub] kkhatua commented on a change in pull request #1531: DRILL-5571: Cancel running query from its Web UI

kkhatua commented on a change in pull request #1531: DRILL-5571: Cancel running query from its Web UI
URL: https://github.com/apache/drill/pull/1531#discussion_r232511213
 
 

 ##########
 File path: exec/java-exec/src/main/resources/rest/profile/profile.ftl
 ##########
 @@ -50,6 +50,34 @@
         "info": false
       }
     );} );
+
+    //Show cancellation status
+    function showCancelPopup(queryId) {
+        document.getElementById("cancelText").innerHTML = "Issued cancellation for query ID: <br>"+queryId+"<br>Click to continue";
+        document.getElementById("cancelPopup").style.display = "block";
+    }
+
+    //Close the cancellation status popup
+    function closePopup() {
+        document.getElementById("cancelPopup").style.display = "none";
+        location.reload(true);
+    }
+
+    //Cancel query
+    function cancelQuery(queryId) {
+        var cancelRestURL = location.protocol + "//" + location.hostname + "/profiles/cancel/" + queryId;
 
 Review comment:
   My assumption is that if HTTPS is enabled, the protocol should reflect it, though I probably just needed `"/profiles/cancel/" + queryId` 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services