Explorar o código

HUE-7226 [frontend] Log when the editor operations hang

Romain Rigaux %!s(int64=8) %!d(string=hai) anos
pai
achega
61b5495

+ 5 - 0
desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

@@ -1157,6 +1157,11 @@ var EditorViewModel = (function() {
 
     self.executingBlockingOperation = null; // A ExecuteStatement()
     self.showLongOperationWarning = ko.observable(false);
+    self.showLongOperationWarning.subscribe(function(newValue) {
+      if (newValue) {
+        hueAnalytics.convert('editor', 'showLongOperationWarning');
+      }
+    });
 
     var longOperationTimeout = -1;