Эх сурвалжийг харах

HUE-2625 [oozie] Workflow dashboard completed table is being refreshed for nothing

Fixed bug on data length
Enrico Berti 10 жил өмнө
parent
commit
16784c71d6

+ 1 - 1
apps/oozie/src/oozie/templates/dashboard/list_oozie_bundles.mako

@@ -373,7 +373,7 @@ ${layout.menubar(section='bundles', dashboard=True)}
         if (data.jobs.length != numRunning) {
           refreshCompleted();
         }
-        numRunning = data.length;
+        numRunning = data.jobs.length;
 
         window.setTimeout(refreshRunning, 20000);
       });

+ 1 - 1
apps/oozie/src/oozie/templates/dashboard/list_oozie_coordinators.mako

@@ -425,7 +425,7 @@ ${layout.menubar(section='coordinators', dashboard=True)}
         if (data.jobs.length != numRunning) {
           refreshCompleted();
         }
-        numRunning = data.length;
+        numRunning = data.jobs.length;
         window.setTimeout(refreshRunning, 20000);
       });
     }

+ 1 - 2
apps/oozie/src/oozie/templates/dashboard/list_oozie_workflows.mako

@@ -399,11 +399,10 @@ ${ layout.menubar(section='workflows', dashboard=True) }
         if (data.jobs.length == 0) {
           runningTable.fnClearTable();
         }
-
         if (data.jobs.length != numRunning) {
           refreshCompleted();
         }
-        numRunning = data.length;
+        numRunning = data.jobs.length;
 
         window.setTimeout(refreshRunning, 5000);
       });