Explorar o código

HUE-8586 [notebook] Add selected cluster to the sample popup check status call

Romain Rigaux %!s(int64=7) %!d(string=hai) anos
pai
achega
487fc7f
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      desktop/core/src/desktop/static/desktop/js/apiHelper.js

+ 4 - 2
desktop/core/src/desktop/static/desktop/js/apiHelper.js

@@ -1580,7 +1580,8 @@ var ApiHelper = (function () {
     var waitForAvailable = function () {
       var request = self.simplePost('/notebook/api/check_status', {
         notebook: options.notebookJson,
-        snippet: options.snippetJson
+        snippet: options.snippetJson,
+        cluster: ko.mapping.toJSON(options.compute ? options.compute : '""')
       }, {
         silenceErrors: options.silenceErrors
       }).done(function (response) {
@@ -1652,7 +1653,8 @@ var ApiHelper = (function () {
       if (notebookJson) {
         self.simplePost('/notebook/api/cancel_statement', {
           notebook: notebookJson,
-          snippet: snippetJson
+          snippet: snippetJson,
+          cluster: ko.mapping.toJSON(options.compute ? options.compute : '""')
         }, { silenceErrors:  options.silenceErrors });
       }
     };