Преглед на файлове

AMBARI-20740.Coordinator Actions(workflows) are empty even when workflows are executed.(M Madhan Mohan Reddy via padmapriyanitt)

padmapriyanitt преди 8 години
родител
ревизия
42b99b403c

+ 1 - 1
contrib/views/wfmanager/src/main/resources/ui/app/routes/design/jobtab.js

@@ -37,7 +37,7 @@ export default Ember.Route.extend({
     return deferred.promise;
     return deferred.promise;
   },
   },
   model : function(params){
   model : function(params){
-    return this.getJobInfo(Ember.ENV.API_URL+'/v2/job/'+params.id+'?show=info&timezone=GMT&offset=1').catch(function(){
+    return this.getJobInfo(Ember.ENV.API_URL+'/v2/job/'+params.id+'?show=info&timezone=GMT&offset=1&len='+1000).catch(function(){
         return {error : "Remote API Failed"};
         return {error : "Remote API Failed"};
       }).then(function(response){
       }).then(function(response){
       if (typeof response === "string") {
       if (typeof response === "string") {

+ 6 - 0
contrib/views/wfmanager/src/main/resources/ui/app/styles/app.less

@@ -1813,3 +1813,9 @@ input:invalid {
   overflow-y: scroll;
   overflow-y: scroll;
   margin-bottom: 10px;
   margin-bottom: 10px;
 }
 }
+
+#coord-actions-list-body-conatiner {
+  max-height: 350px;
+  overflow-y: scroll;
+  margin-bottom: 10px;
+}

+ 36 - 30
contrib/views/wfmanager/src/main/resources/ui/app/templates/components/coord-job-details.hbs

@@ -82,36 +82,42 @@
     </div>
     </div>
   </div>
   </div>
   <div role="tabpanel" class="tab-pane" id="jobAction">
   <div role="tabpanel" class="tab-pane" id="jobAction">
-    <table id="action-list" class="table listing job-listing table-striped table-hover table-bordered">
-      <thead>
-        <tr>
-          <th>Id</th>
-          <th>Status</th>
-          <th>External Id</th>
-          <th>Error Code</th>
-          <th>Created Time</th>
-          <th>Nominal Time</th>
-          <th>Last Modified Time</th>
-        </tr>
-      </thead>
-      <tbody>
-        {{#each model.actions as |actionInfo|}}
-        <tr class="{{if (eq actionInfo model.actionDetails) "active"}}">
-          {{#if actionInfo.externalId}}
-            <td class="pointer action-link" {{action 'showWorkflow' actionInfo.externalId}}>{{actionInfo.id}}</td>
-          {{else}}
-            <td>{{actionInfo.id}}</td>
-          {{/if}}
-          <td>{{actionInfo.status}}</td>
-          <td>{{actionInfo.externalId}}</td>
-          <td>{{actionInfo.errorCode}}</td>
-          <td>{{actionInfo.createdTime}}</td>
-          <td>{{actionInfo.nominalTime}}</td>
-          <td>{{actionInfo.lastModifiedTime}}</td>
-        </tr>
-        {{/each}}
-      </tbody>
-    </table>
+    <div id="actions-list-header-conatiner">
+      <table id="actions-list-header" class="table listing job-listing table-striped table-hover table-bordered">
+        <thead>
+          <tr>
+            <th class="col-xs-2">Id</th>
+            <th class="col-xs-1">Status</th>
+            <th class="col-xs-2">External Id</th>
+            <th class="col-xs-1">Error Code</th>
+            <th class="col-xs-2">Created Time</th>
+            <th class="col-xs-2">Nominal Time</th>
+            <th class="col-xs-2">Last Modified Time</th>
+          </tr>
+        </thead>
+      </table>
+    </div>
+    <div id="coord-actions-list-body-conatiner">
+      <table id="actions-list-body" class="table listing job-listing table-striped table-hover table-bordered">
+        <tbody>
+          {{#each model.actions as |actionInfo|}}
+          <tr class="{{if (eq actionInfo model.actionDetails) "active"}}">
+            {{#if actionInfo.externalId}}
+              <td class="pointer action-link col-xs-2" {{action 'showWorkflow' actionInfo.externalId}}>{{actionInfo.id}}</td>
+            {{else}}
+              <td class="col-xs-2">{{actionInfo.id}}</td>
+            {{/if}}
+            <td class="col-xs-1">{{actionInfo.status}}</td>
+            <td class="col-xs-2">{{actionInfo.externalId}}</td>
+            <td class="col-xs-1">{{actionInfo.errorCode}}</td>
+            <td class="col-xs-2">{{actionInfo.createdTime}}</td>
+            <td class="col-xs-2">{{actionInfo.nominalTime}}</td>
+            <td class="col-xs-2">{{actionInfo.lastModifiedTime}}</td>
+          </tr>
+          {{/each}}
+        </tbody>
+      </table>
+    </div>
   </div>
   </div>
   <div role="tabpanel" class="tab-pane" id="jobDefinition">
   <div role="tabpanel" class="tab-pane" id="jobDefinition">
     <div class="panel panel-default">
     <div class="panel panel-default">