瀏覽代碼

HUE-1059 [oozie] Display Coordinators start time

Romain Rigaux 12 年之前
父節點
當前提交
cdd1be9

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

@@ -65,7 +65,7 @@ ${layout.menubar(section='dashboard')}
           <th width="10%">${ _('Submitter') }</th>
           <th width="5%">${ _('Frequency') }</th>
           <th width="5%">${ _('Time unit') }</th>
-          <th width="5%">${ _('Started') }</th>
+          <th width="10%">${ _('Start Time') }</th>
           <th width="15%">${ _('Id') }</th>
           <th width="10%">${ _('Action') }</th>
         </tr>
@@ -88,7 +88,7 @@ ${layout.menubar(section='dashboard')}
           <th width="10%">${ _('Submitter') }</th>
           <th width="5%">${ _('Frequency') }</th>
           <th width="5%">${ _('Time unit') }</th>
-          <th width="5%">${ _('Started') }</th>
+          <th width="10%">${ _('Start Time') }</th>
           <th width="20%">${ _('Id') }</th>
         </tr>
       </thead>
@@ -133,7 +133,7 @@ ${layout.menubar(section='dashboard')}
       killUrl: c.killUrl,
       frequency: c.frequency,
       timeUnit: c.timeUnit,
-      created: c.created
+      startTime: c.startTime
     }
   }
 
@@ -359,7 +359,7 @@ ${layout.menubar(section='dashboard')}
                   coord.user,
 				  coord.frequency,
 				  coord.timeUnit,
-				  coord.created,
+				  coord.startTime,
 				  '<a href="' + coord.absoluteUrl + '" data-row-selector="true">' + coord.id + '</a>',
                   killCell
                 ]);
@@ -397,7 +397,7 @@ ${layout.menubar(section='dashboard')}
             coord.user,
             coord.frequency,
             coord.timeUnit,
-            coord.created,
+            coord.startTime,
             '<a href="' + coord.absoluteUrl + '" data-row-selector="true">' + coord.id + '</a>'], false);
         });
         completedTable.fnDraw();

+ 1 - 0
apps/oozie/src/oozie/views/dashboard.py

@@ -557,6 +557,7 @@ def massaged_oozie_jobs_for_json(oozie_jobs, user):
       'canEdit': has_job_edition_permission(job, user),
       'killUrl': reverse('oozie:manage_oozie_jobs', kwargs={'job_id':job.id, 'action':'kill'}),
       'created': hasattr(job, 'createdTime') and job.createdTime and job.createdTime and ((job.type == 'Bundle' and job.createdTime) or format_time(job.createdTime)),
+      'startTime': hasattr(job, 'startTime') and format_time(job.startTime) or None,
       'run': hasattr(job, 'run') and job.run or 0,
       'frequency': hasattr(job, 'frequency') and job.frequency or None,
       'timeUnit': hasattr(job, 'timeUnit') and job.timeUnit or None,