Skip to content

Commit

Permalink
[FLINK-2902][web-dashboard] Sort finished jobs by their end time, run…
Browse files Browse the repository at this point in the history
…ning jobs by start time

This closes apache#1296
  • Loading branch information
sachingoel0101 authored and fhueske committed Oct 29, 2015
1 parent 1fd386e commit 676854b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ nav.navbar.navbar-default.navbar-fixed-top.navbar-main
th Status

tbody
tr(ng-repeat="job in jobs" ui-sref="single-job.plan.overview({ jobid: job.jid })")
tr(ng-repeat="job in jobs|orderBy:\"'end-time'\":true" ui-sref="single-job.plan.overview({ jobid: job.jid })")
td {{job['start-time'] | amDateFormat:'YYYY-MM-DD, H:mm:ss'}}
td {{job['end-time'] | amDateFormat:'YYYY-MM-DD, H:mm:ss'}}
td {{job.duration}} ms
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ nav.navbar.navbar-default.navbar-fixed-top.navbar-main
th Status

tbody
tr(ng-repeat="job in jobs" ui-sref="single-job.plan.overview({ jobid: job.jid })")
tr(ng-repeat="job in jobs|orderBy:\"'start-time'\"" ui-sref="single-job.plan.overview({ jobid: job.jid })")
td {{job['start-time'] | amDateFormat:'YYYY-MM-DD, H:mm:ss'}}
td {{job['end-time'] | amDateFormat:'YYYY-MM-DD, H:mm:ss'}}
td {{job.duration}} ms
Expand Down
4 changes: 2 additions & 2 deletions flink-runtime-web/web-dashboard/app/partials/overview.jade
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ nav.navbar.navbar-default.navbar-fixed-top.navbar-main
th Status

tbody
tr(ng-repeat="job in runningJobs" ui-sref="single-job.plan.overview({ jobid: job.jid })")
tr(ng-repeat="job in runningJobs|orderBy:\"'start-time'\"" ui-sref="single-job.plan.overview({ jobid: job.jid })")
td {{job['start-time'] | amDateFormat:'YYYY-MM-DD, H:mm:ss'}}
td {{job['end-time'] | amDateFormat:'YYYY-MM-DD, H:mm:ss'}}
td {{job.duration}} ms
Expand Down Expand Up @@ -123,7 +123,7 @@ nav.navbar.navbar-default.navbar-fixed-top.navbar-main
th Status

tbody
tr(ng-repeat="job in finishedJobs" ui-sref="single-job.plan.overview({ jobid: job.jid })")
tr(ng-repeat="job in finishedJobs|orderBy:\"'end-time'\":true" ui-sref="single-job.plan.overview({ jobid: job.jid })")
td {{job['start-time'] | amDateFormat:'YYYY-MM-DD, H:mm:ss'}}
td {{job['end-time'] | amDateFormat:'YYYY-MM-DD, H:mm:ss'}}
td {{job.duration}} ms
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</tr>
</thead>
<tbody>
<tr ng-repeat="job in jobs" ui-sref="single-job.plan.overview({ jobid: job.jid })">
<tr ng-repeat="job in jobs|orderBy:&quot;'end-time'&quot;:true" ui-sref="single-job.plan.overview({ jobid: job.jid })">
<td>{{job['start-time'] | amDateFormat:'YYYY-MM-DD, H:mm:ss'}}</td>
<td>{{job['end-time'] | amDateFormat:'YYYY-MM-DD, H:mm:ss'}}</td>
<td>{{job.duration}} ms</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</tr>
</thead>
<tbody>
<tr ng-repeat="job in jobs" ui-sref="single-job.plan.overview({ jobid: job.jid })">
<tr ng-repeat="job in jobs|orderBy:&quot;'start-time'&quot;" ui-sref="single-job.plan.overview({ jobid: job.jid })">
<td>{{job['start-time'] | amDateFormat:'YYYY-MM-DD, H:mm:ss'}}</td>
<td>{{job['end-time'] | amDateFormat:'YYYY-MM-DD, H:mm:ss'}}</td>
<td>{{job.duration}} ms</td>
Expand Down
4 changes: 2 additions & 2 deletions flink-runtime-web/web-dashboard/web/partials/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ <h3 class="panel-title">Running Jobs</h3>
</tr>
</thead>
<tbody>
<tr ng-repeat="job in runningJobs" ui-sref="single-job.plan.overview({ jobid: job.jid })">
<tr ng-repeat="job in runningJobs|orderBy:&quot;'start-time'&quot;" ui-sref="single-job.plan.overview({ jobid: job.jid })">
<td>{{job['start-time'] | amDateFormat:'YYYY-MM-DD, H:mm:ss'}}</td>
<td>{{job['end-time'] | amDateFormat:'YYYY-MM-DD, H:mm:ss'}}</td>
<td>{{job.duration}} ms</td>
Expand Down Expand Up @@ -127,7 +127,7 @@ <h3 class="panel-title">Completed Jobs</h3>
</tr>
</thead>
<tbody>
<tr ng-repeat="job in finishedJobs" ui-sref="single-job.plan.overview({ jobid: job.jid })">
<tr ng-repeat="job in finishedJobs|orderBy:&quot;'end-time'&quot;:true" ui-sref="single-job.plan.overview({ jobid: job.jid })">
<td>{{job['start-time'] | amDateFormat:'YYYY-MM-DD, H:mm:ss'}}</td>
<td>{{job['end-time'] | amDateFormat:'YYYY-MM-DD, H:mm:ss'}}</td>
<td>{{job.duration}} ms</td>
Expand Down

0 comments on commit 676854b

Please sign in to comment.