Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Statistics/3.3/WebApp/jobs/jobsCtrl.js @ 12484

Last change on this file since 12484 was 12484, checked in by dglaser, 9 years ago

#2388: Updated Hive, DataAccess and WebApp

HeuristicLab.Services.Hive.DataAccess:

  • Updated database statistics schema

HeuristicLab.Services.Hive:

  • Fixed event flag in HiveJanitor Service
  • Improved UpdateTaskFactsTable in the HiveStatisticsGenerator

HeuristicLab.Services.WebApp:

  • Updated Statistics DataController to match the new statistics schema
File size: 665 bytes
Line 
1(function () {
2    var module = appStatisticsPlugin.getAngularModule();
3    module.controller('app.statistics.jobsCtrl',
4        ['$scope', 'app.statistics.data.service', function($scope, statisticsService) {
5            var getJobs = function() {
6                statisticsService.getJobs({}, function(jobs) {
7                    $scope.jobs = jobs;
8                });
9            };
10
11            $scope.getTasksByJobId = function(id) {
12                statisticsService.getTasksByJobId({ id: id }, function(tasks) {
13                    $scope.tasks = tasks;
14                });
15            };
16
17            getJobs();
18        }]
19    );
20})();
Note: See TracBrowser for help on using the repository browser.