Skip to content

Commit

Permalink
Introduces Project.jobhistory
Browse files Browse the repository at this point in the history
To query the job history of all packages in all repositories/arch
combinations.
  • Loading branch information
hennevogel committed Dec 18, 2018
1 parent c58ac30 commit 6e0293b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/api/app/models/project.rb
Expand Up @@ -225,6 +225,10 @@ def buildresults
Buildresult.summary(name)
end

def jobhistory(filter: { limit: 100, start_epoch: nil, end_epoch: nil, code: [], package: nil })
Backend::Api::BuildResults::JobHistory.for_project(project_name: name, filter: filter)
end

def subprojects
Project.where('name like ?', "#{name}:%")
end
Expand Down

0 comments on commit 6e0293b

Please sign in to comment.