Remove the ability to add multiple jobset input alternatives
[?]
Sep 25, 2014, 2:43 PM
OK4P3AMKXIBSUNL4ABLFKTK3UBFLINDINBPZVP5OSHLRSV44BICACDependencies
- [2]
VJFLX7B6Fix rendering of jobset inputs - [3]
F7NHYL4CMaintain the order of the input alternatives - [4]
VZX6HJ3IFix jobset input handling in the API - [5]
GTXYNFUKMerge branch 'master' into persona - [6]
Z52T2BC4Support passing a jobset evaluation as an input - [7]
2G63HKCHFix some wellformedness issues - [8]
GEADFVZ5hydra-queue-runner: Improved scheduling - [9]
LMETCA7GCleanup - [10]
PCKLFRT5Support push notification of repository changes - [11]
MNKXBLNCReturn 410 Gone (rather than 500) if an output is no longer available - [12]
OX6NYJDVSplit viewing and editing a jobset - [13]
OOQ2D3KC* Refactoring: move fetchInput out of hydra_scheduler into a separate - [14]
RSEGBU6CHydra/20: Jobset clone feature - [15]
N45RZUQ6Reduce I/O in build listings by only fetching required columns - [16]
ODNCGFQ5* Improved the navigation bar: don't include all projects (since that - [17]
HQGXL4MXAdd validation for project and jobset names - [18]
2GUW2QBCFix adding jobset inputs - [19]
NIX2TKYVUse redirectJSON - [20]
ZFEN2MAOSimplify jobset cloning - [21]
LHBSOI2DFix adding jobset inputs - [22]
2CZSW5S5Don't redirect to /login if authentication is required - [23]
LYVUXIGTClean up the authorization code a bit - [24]
EWMC72QYedit-jobset.tt: Retain old inputs with dashes in their name - [25]
LSZLZHJYAllow users to edit their own settings - [26]
K3HODXGHCheck all inputs for blame but only email selected inputs - [27]
RQI3GRC6Enable setting checkresponsible in the edit jobset form - [28]
ZCTQCN3EUse inputTypes from plugins to determine valid input types - [29]
XJRJ4J7MAdd user registration - [30]
UMFB2767Hydra/64: Leaving number of builds empty gives DBIx error - [31]
TQVKZQUGUse the REST API in the web interface for editing jobsets - [32]
LZVO64YGMerge in the first bits of the API work - [33]
5NO7NCKT* Refactoring. - [34]
DEPAYN5WFix adding jobset inputs - [35]
RPTSGIRCEliminate duplicate getPreviousBuild functions - [*]
3HZY24CX* Make jobsets viewable under - [*]
LBNVQXUB* Build the /build stuff in a separate controller.
Change contents
- replacement in src/lib/Hydra/Controller/Jobset.pm at line 247
my $values = $inputData->{values};my $value = $inputData->{value}; - replacement in src/lib/Hydra/Controller/Jobset.pm at line 253
my $input = $jobset->jobsetinputs->create({name => $name,type => $type,emailresponsible => $emailresponsiblemy $input = $jobset->jobsetinputs->create({ name => $name,type => $type,emailresponsible => $emailresponsible - replacement in src/lib/Hydra/Controller/Jobset.pm at line 259[7.187]→[7.779:891](∅→∅),[7.891]→[7.3984:4007](∅→∅),[7.3984]→[7.3984:4007](∅→∅),[7.4007]→[7.892:930](∅→∅),[7.930]→[6.616:680](∅→∅),[6.680]→[7.4272:4365](∅→∅),[7.987]→[7.4272:4365](∅→∅),[7.2661]→[7.4272:4365](∅→∅),[7.4272]→[7.4272:4365](∅→∅)
# Set the values for this input.my @values = ref($values) eq 'ARRAY' ? @{$values} : ($values);my $altnr = 0;foreach my $value (@values) {$value = checkInputValue($c, $name, $type, $value);$input->jobsetinputalts->create({altnr => $altnr++, value => $value});}$value = checkInputValue($c, $name, $type, $value);$input->jobsetinputalts->create({altnr => 0, value => $value}); - replacement in src/lib/Hydra/Helper/CatalystUtils.pm at line 25
$pathCompRE $relPathRE $relNameRE $projectNameRE $jobsetNameRE $jobNameRE $systemRE $userNameRE$pathCompRE $relPathRE $relNameRE $projectNameRE $jobsetNameRE $jobNameRE $systemRE $userNameRE $inputNameRE - edit in src/lib/Hydra/Helper/CatalystUtils.pm at line 103
- edit in src/lib/Hydra/Helper/CatalystUtils.pm at line 238
Readonly our $inputNameRE => "(?:[A-Za-z_][A-Za-z0-9-_]*)"; - edit in src/root/edit-jobset.tt at line 4[7.2186]→[7.520:521](∅→∅),[7.520]→[7.520:521](∅→∅),[7.521]→[2.0:33](∅→∅),[2.33]→[7.548:691](∅→∅),[7.548]→[7.548:691](∅→∅),[7.691]→[7.771:850](∅→∅),[7.850]→[7.777:796](∅→∅),[7.777]→[7.777:796](∅→∅)
[% BLOCK renderJobsetInputAlt %]<button type="button" class="btn btn-warning" onclick='$(this).parents(".inputalt").remove()'><i class="icon-trash icon-white"></i></button><input type="text" [% HTML.attributes(value => alt.value, name => name) %]/><br />[% END %] - edit in src/root/edit-jobset.tt at line 9
</td><td> - replacement in src/root/edit-jobset.tt at line 16[7.1281]→[7.1281:1328](∅→∅),[7.1328]→[3.0:96](∅→∅),[3.96]→[7.1377:1409](∅→∅),[7.1377]→[7.1377:1409](∅→∅),[7.1409]→[2.65:142](∅→∅),[2.142]→[7.1480:1496](∅→∅),[7.1480]→[7.1480:1496](∅→∅)
<td class="inputalts" id="[% baseName %]">[% FOREACH alt IN input.search_related('jobsetinputalts', {}, { order_by => 'altnr' }) %]<span class="inputalt">[% INCLUDE renderJobsetInputAlt alt=alt name="$baseName-values" %]</span><td id="[% baseName %]">[% alt = input.search_related('jobsetinputalts', {altnr => 0}) %]<input type="text" [% HTML.attributes(value => alt.value, id => "$baseName-value", name => "$baseName-value") %]/>[% IF input.jobsetinputalts_rs.count > 1 %]<div class="alert alert-warning">Warning: This input had morethan one value. This is no longer supported. The additionalvalues have been removed.</div> - edit in src/root/edit-jobset.tt at line 24
[% IF edit %]<button type="button" class="add-inputalt btn btn-success" onclick='return false'><i class="icon-plus icon-white"></i></button>[% END %] - replacement in src/root/edit-jobset.tt at line 34
<tr><th>Input name</th><th>Type</th><th>Values</th><th>Notify committers</th></tr><tr><th></th><th>Input name</th><th>Type</th><th>Value</th><th>Notify committers</th></tr> - edit in src/root/edit-jobset.tt at line 151[7.4830]→[7.33:102](∅→∅),[7.102]→[2.409:456](∅→∅),[2.456]→[7.4925:4934](∅→∅),[7.4925]→[7.4925:4934](∅→∅)
<tt class="inputalt" id="inputalt-template" style="display: none">[% INCLUDE renderJobsetInputAlt alt=alt %]</tt> - edit in src/root/edit-jobset.tt at line 162
$("#input-template-value", x).attr("name", newid + "-value"); - edit in src/root/edit-jobset.tt at line 166
});$(".add-inputalt").click(function() {var x = $("#inputalt-template").clone(true).insertBefore($(this)).attr("id", "").show();$("input", x).attr("name", x.parents(".inputalts").attr("id") + "-values"); - replacement in src/root/edit-jobset.tt at line 173
for (var i = 0; i < formElements.length; i++) {for (var i = 0; formElements.length > i; i++) { - replacement in src/root/edit-jobset.tt at line 182
if (baseName === "template") {continue;}if (baseName === "template") continue; - replacement in src/root/edit-jobset.tt at line 184
if (!(baseName in inputs)) {if (!(baseName in inputs)) - edit in src/root/edit-jobset.tt at line 186
} - replacement in src/root/edit-jobset.tt at line 187
if (param === "name") {if (param === "name") - replacement in src/root/edit-jobset.tt at line 189
} else {else - edit in src/root/edit-jobset.tt at line 191
}