Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/26/15 18:02:03 (9 years ago)
Author:
dglaser
Message:

#2388:

HeuristicLab.Services.WebApp.Statistics-3.3:

  • added groups page
  • improved jobs, clients and users pages

HeuristicLab.Services.WebApp-3.3:

  • merged from trunk
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Statistics/3.3/WebApi/JobController.cs

    r12516 r12525  
    135135    }
    136136
     137    [Authorize(Roles = HiveRoles.Administrator)]
     138    public IEnumerable<DT.Job> GetAllActiveJobsFromAllUsers() {
     139      using (var pm = PersistenceManager) {
     140        var dimJobDao = pm.DimJobDao;
     141        return pm.UseTransaction(() => {
     142          return dimJobDao.GetAll()
     143            .Where(x => x.DateCompleted == null)
     144            .OrderByDescending(x => x.DateCreated)
     145            .Select(x => ConvertToDT(x))
     146            .ToList();
     147        });
     148      }
     149    }
     150
    137151    private DT.Job ConvertToDT(DA.DimJob job) {
    138152      return new DT.Job {
Note: See TracChangeset for help on using the changeset viewer.