Sort constituents by job name

[?]
Aug 15, 2013, 1:28 AM
UYWFRWQ6QZFXXFZ7YCTEBBM2DQL2QZYGHQBWLRFUS3FKHE76OKTAC

Dependencies

  • [2] JTHWA6AM Rename aggregate members to constituents
  • [3] 3SQCOHZN * minor performance tweaks
  • [4] ODNCGFQ5 * Improved the navigation bar: don't include all projects (since that
  • [5] J5UVLXOK * Start of a basic Catalyst web interface.
  • [6] GNIEG2GC * Disambiguate jobs by jobset name. I.e. jobs with the same name in
  • [7] HPEG2RHV Merge the BuildResultInfo table into the Builds table
  • [8] JJHVQGEL Show aggregate members
  • [9] HN3V252L On the build page, show how many aggregate constituents failed
  • [10] 3PNG7NIB Remove trailing whitespace
  • [11] PMNWRTGJ Add multiple output support
  • [12] ZI535LI6 * hydra: 'new' UI for project/jobset/job/build
  • [*] LBNVQXUB * Build the /build stuff in a separate controller.
  • [*] LZVO64YG Merge in the first bits of the API work

Change contents

  • edit in src/lib/Hydra/Controller/Build.pm at line 121
    [15.4724]
    [14.1111]
    # If this is an aggregate build, get its constituents.
    $c->stash->{constituents} = [$c->stash->{build}->constituents_->search({}, {order_by => ["job"]})];
  • replacement in src/root/build.tt at line 10
    [3.6589][2.1892:1940]()
    [% isAggregate = build.constituents_ ? 1 : 0 %]
    [3.6589]
    [3.11433]
    [% isAggregate = constituents ? 1 : 0 %]
  • replacement in src/root/build.tt at line 125
    [2.2030][2.2030:2085]()
    FOREACH b IN build.constituents_;
    [2.2030]
    [2.2085]
    FOREACH b IN constituents;
  • replacement in src/root/build.tt at line 270
    [3.320][2.2648:2711]()
    [% INCLUDE renderBuildList builds=build.constituents_ %]
    [3.320]
    [3.378]
    [% INCLUDE renderBuildList builds=constituents %]