aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/webapp/apps/frontPageApp/frontPageApp.js
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-01-19 09:40:14 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2013-01-19 09:40:14 +0100
commiteb6cbd28992cec9025a8e95f8f03ae3839699e0b (patch)
treed3c1f1416da2ae36894d3087a75f3c1d7f280fad /src/main/resources/webapp/apps/frontPageApp/frontPageApp.js
parent17be3886fbee46c34f1ea78cd32d5726e538e641 (diff)
downloadesper-testing-eb6cbd28992cec9025a8e95f8f03ae3839699e0b.tar.gz
esper-testing-eb6cbd28992cec9025a8e95f8f03ae3839699e0b.tar.bz2
esper-testing-eb6cbd28992cec9025a8e95f8f03ae3839699e0b.tar.xz
esper-testing-eb6cbd28992cec9025a8e95f8f03ae3839699e0b.zip
o Reverting the timestamp => createdDate change, it was wrong. Adding ability to sort on timestamp.
Created date is when we discovered the build, the timestamp is when Jenkins did the build.
Diffstat (limited to 'src/main/resources/webapp/apps/frontPageApp/frontPageApp.js')
-rwxr-xr-xsrc/main/resources/webapp/apps/frontPageApp/frontPageApp.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/resources/webapp/apps/frontPageApp/frontPageApp.js b/src/main/resources/webapp/apps/frontPageApp/frontPageApp.js
index c376f83..5623c18 100755
--- a/src/main/resources/webapp/apps/frontPageApp/frontPageApp.js
+++ b/src/main/resources/webapp/apps/frontPageApp/frontPageApp.js
@@ -88,11 +88,11 @@ function PersonCtrl($scope, $routeParams, Person, Build, JenkinsUser, PagingTabl
$scope.mode = 'overview';
var watcher = function () {
- $scope.buildGroups = groupByDay($scope.builds.rows, function(build) { return build.createdDate});
+ $scope.buildGroups = groupByDay($scope.builds.rows, function(build) { return build.timestamp});
console.log("$scope.buildGroups", $scope.buildGroups);
};
$scope.buildGroups = [];
- $scope.builds = PagingTableService.create($scope, PagingTableService.defaultCallback(Build, {person: personUuid}),
+ $scope.builds = PagingTableService.create($scope, PagingTableService.defaultCallback(Build, {person: personUuid, orderBy: "timestamp-"}),
{count: 50, watcher: watcher});
$scope.setMode = function(mode) {
@@ -118,14 +118,14 @@ function PersonCtrl($scope, $routeParams, Person, Build, JenkinsUser, PagingTabl
})});
});
- Build.query({person: personUuid}, function (builds) {
+ Build.query({person: personUuid, orderBy: "timestamp-"}, function (builds) {
$scope.recentBuilds = builds;
});
}
function BuildListCtrl($scope, Build, PagingTableService) {
var watcher = function () {
- $scope.buildGroups = groupByDay($scope.builds.rows, function(build) { return build.build.createdDate});
+ $scope.buildGroups = groupByDay($scope.builds.rows, function(build) { return build.build.timestamp});
};
$scope.buildGroups = [];