Mountable engine for Open Build Service to add paths that will provide a better overview of some distribution specific artifacts like staging projects.
Provides the following paths:
-
project/dashboard/:project
-
project/staging_projects/:project
-
project/staging_projects/:project/:id
Append ?format=json
to access the raw data which will output something like the following.
{ projects: [ { name: staging:A, description: blah, untracked_requests: [ 3443, 3444 ], obsolete_requests: [ 33221 ], unreviewed_requests: [ { id => 44434, missing_reviews => [repo_checker, legal] }, { id => 44431, missing_reviews => [repo_checker] } ], buildstatus: { working => 3, broken => 1 } openqa: [ {job => 33, result => 'ok'} ] subprojects: [ name: staging:A:DVD, description: blah DVD, untracked_requests: [ ], invalid_requests: [ ], unreviewed_requests: [ ], buildstatus: { working => 3, broken => 1 } openqa: [ ] ] } ]}
Add this to OBS Gemfile in src/api
.
gem 'obs_factory', path: '/local/path/to/obs_factory'
Copy dist/init_obs_factory.rb
to OBS/src/api/lib/engines/
and change the require path as needed.