Add bump-to-front role
[?]
Nov 5, 2019, 6:24 PM
6DMDTQ7MVNBUFZLF6F3N2TCJH3VALH3T56DOOSOR53LXYSLBNHFQCDependencies
- [2]
WE5Q2NVIAllow build to be bumped to the front of the queue via the web interface - [3]
JO75HQLOAdd a restart-jobs role - [4]
LZVO64YGMerge in the first bits of the API work - [5]
6S3ZLOZLReturn JSON for /eval - [6]
MZ63OVKPAllow bumping an entire evaluation to the front of the queue - [7]
T273UOB7Support obtaining the contents of an evaluation as a channel - [8]
Z6MDQIGO* A quick (non-Web 2.0) interface to manually add builds to a release. - [*]
LBNVQXUB* Build the /build stuff in a separate controller. - [*]
U4TD3AIQAdd support for viewing jobset evaluations - [*]
FPK5LF53* Put the project-related actions in a separate controller. Put the - [*]
LYVUXIGTClean up the authorization code a bit - [*]
SZYDW2DGhydra: added some user admin - [*]
XJRJ4J7MAdd user registration
Change contents
- replacement in src/lib/Hydra/Controller/Build.pm at line 543
requireProjectOwner($c, $build->project); # FIXME: require admin?requireBumpPrivileges($c, $build->project); - replacement in src/lib/Hydra/Controller/JobsetEval.pm at line 213
requireProjectOwner($c, $c->stash->{eval}->project); # FIXME: require admin?requireBumpPrivileges($c, $c->stash->{eval}->project); # FIXME: require admin? - edit in src/lib/Hydra/Helper/CatalystUtils.pm at line 16
requireBumpPrivileges - edit in src/lib/Hydra/Helper/CatalystUtils.pm at line 183
}sub hasBumpJobsRole {my ($c) = @_;return $c->user_exists && $c->check_user_roles('bump-to-front');}sub mayBumpJobs {my ($c, $project) = @_;return$c->user_exists &&(isAdmin($c) ||hasBumpJobsRole($c) ||isProjectOwner($c, $project)); - edit in src/lib/Hydra/Helper/CatalystUtils.pm at line 199
sub requireBumpPrivileges {my ($c, $project) = @_;requireUser($c);accessDenied($c, "Only the project members, administrators, and accounts with bump-to-front privileges can perform this operation.")unless mayBumpJobs($c, $project);} - edit in src/root/user.tt at line 84[3.809][15.6750]
[% INCLUDE roleoption role="bump-to-front" %]