Add a hydra.conf option to enable email notification

[?]
Mar 12, 2018, 12:52 PM
CLBOP44WGI6B47PRPPLKOQODTLDXEZRT7SXLSDS6I42DGFNI2SLQC

Dependencies

  • [2] 2G63HKCH Fix some wellformedness issues
  • [3] GEADFVZ5 hydra-queue-runner: Improved scheduling
  • [4] OGLMBJSC Enable setting emailresponsible in the edit jobset form
  • [5] K3HODXGH Check all inputs for blame but only email selected inputs
  • [6] QLOLZHRX Allow a per-jobset check interval
  • [7] OX6NYJDV Split viewing and editing a jobset
  • [*] 3HZY24CX * Make jobsets viewable under
  • [*] LZVO64YG Merge in the first bits of the API work
  • [*] OOQ2D3KC * Refactoring: move fetchInput out of hydra_scheduler into a separate
  • [*] 5EQYVRWE Add a plugin mechanism
  • [*] BLVQGJ4L Use OO-style plugins
  • [*] ODNCGFQ5 * Improved the navigation bar: don't include all projects (since that

Change contents

  • edit in src/lib/Hydra/Controller/Jobset.pm at line 49
    [3.197]
    [10.7208]
    $c->stash->{emailNotification} = $c->config->{email_notification} // 0;
  • edit in src/lib/Hydra/Controller/Jobset.pm at line 178
    [3.867]
    [11.848]
    $c->stash->{emailNotification} = $c->config->{email_notification} // 0;
  • edit in src/lib/Hydra/Plugin/EmailNotification.pm at line 46
    [13.71]
    [12.749]
    return unless $self->{config}->{email_notification} // 0;
  • replacement in src/root/edit-jobset.tt at line 133
    [4.3738][2.1932:2058]()
    <input type="checkbox" name="enableemail" [% IF jobset.enableemail; 'checked="checked"'; END %]/>Email notification
    [4.3738]
    [4.3871]
    <input type="checkbox" name="enableemail" [% IF jobset.enableemail; 'checked="checked"'; END %] [%IF !emailNotification%]disabled=1[%END%] />Email notification
  • replacement in src/root/edit-jobset.tt at line 141
    [4.4032][2.2059:2176]()
    <input type="text" class="span3" name="emailoverride" [% HTML.attributes(value => jobset.emailoverride) %]/>
    [4.4032]
    [4.4156]
    <input type="text" class="span3" name="emailoverride" [% HTML.attributes(value => jobset.emailoverride) %] [%IF !emailNotification%]disabled=1[%END%] />
  • edit in src/root/jobset.tt at line 151
    [3.2962]
    [3.2962]
    [% IF emailNotification %]
  • edit in src/root/jobset.tt at line 160
    [4.9560]
    [4.9560]
    [% END %]