aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/webapp/apps/frontPageApp/frontPageApp.js
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-01-18 16:57:49 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2013-01-18 16:57:49 +0100
commit17be3886fbee46c34f1ea78cd32d5726e538e641 (patch)
tree84f0c9606fa708feddc707c0565913010ea70609 /src/main/resources/webapp/apps/frontPageApp/frontPageApp.js
parent34546b9c5b5a9be2180e8b4801b72a48feb94d1d (diff)
downloadesper-testing-17be3886fbee46c34f1ea78cd32d5726e538e641.tar.gz
esper-testing-17be3886fbee46c34f1ea78cd32d5726e538e641.tar.bz2
esper-testing-17be3886fbee46c34f1ea78cd32d5726e538e641.tar.xz
esper-testing-17be3886fbee46c34f1ea78cd32d5726e538e641.zip
o Grouping builds by day on the person view.
Diffstat (limited to 'src/main/resources/webapp/apps/frontPageApp/frontPageApp.js')
-rwxr-xr-xsrc/main/resources/webapp/apps/frontPageApp/frontPageApp.js19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/main/resources/webapp/apps/frontPageApp/frontPageApp.js b/src/main/resources/webapp/apps/frontPageApp/frontPageApp.js
index be048d4..c376f83 100755
--- a/src/main/resources/webapp/apps/frontPageApp/frontPageApp.js
+++ b/src/main/resources/webapp/apps/frontPageApp/frontPageApp.js
@@ -77,20 +77,23 @@ function PersonListCtrl($scope, Person, PagingTableService) {
$scope.personGroups = groupBy($scope.persons.rows, groupSize);
};
+ $scope.personGroups = [];
$scope.persons = PagingTableService.create($scope, PagingTableService.defaultCallback(Person, {orderBy: "name"}),
{count: groupSize * rows, watcher: personsWatcher});
-
- console.log("$scope.persons.searchText", $scope.persons.searchText);
- console.log("$scope.persons.rows", $scope.persons.rows);
-
- $scope.personGroups = [];
}
function PersonCtrl($scope, $routeParams, Person, Build, JenkinsUser, PagingTableService) {
var personUuid = $routeParams.personUuid;
$scope.mode = 'overview';
- $scope.builds = PagingTableService.create($scope, PagingTableService.defaultCallback(Build, {person: personUuid}), {count: 100});
+
+ var watcher = function () {
+ $scope.buildGroups = groupByDay($scope.builds.rows, function(build) { return build.createdDate});
+ console.log("$scope.buildGroups", $scope.buildGroups);
+ };
+ $scope.buildGroups = [];
+ $scope.builds = PagingTableService.create($scope, PagingTableService.defaultCallback(Build, {person: personUuid}),
+ {count: 50, watcher: watcher});
$scope.setMode = function(mode) {
$scope.mode = mode;
@@ -98,7 +101,6 @@ function PersonCtrl($scope, $routeParams, Person, Build, JenkinsUser, PagingTabl
case 'builds':
var builds = $scope.builds;
- console.log("$scope.builds.length=" + builds.rows.length);
if (builds.rows.length == 0) {
$scope.builds.first();
}
@@ -126,10 +128,9 @@ function BuildListCtrl($scope, Build, PagingTableService) {
$scope.buildGroups = groupByDay($scope.builds.rows, function(build) { return build.build.createdDate});
};
+ $scope.buildGroups = [];
$scope.builds = PagingTableService.create($scope, PagingTableService.defaultCallback(Build, {fields: "detailed"}),
{ count: 100, watcher: watcher });
-
- $scope.buildGroups = [];
}
function BuildCtrl($scope, $routeParams, Build, PagingTableService) {