Clean up root controller

[?]
Oct 24, 2013, 8:12 PM
SHIENRALB65XTTIHXDBFXAXSG2AM23LDYENGOMEIIZROZ7HOH4XAC

Dependencies

  • [2] OIDTPX3F Remove some obsolete JSON APIs
  • [3] 2DGIP6L4 Cleanup build serialization
  • [4] C3AG65SW Add one-shot jobsets
  • [5] EFWN7JBV * Added a status page that shows all the currently executing build steps.
  • [6] ZWCTAZGL added newsitems, added some admin options to clear various caches.
  • [7] LZVO64YG Merge in the first bits of the API work
  • [8] S66BOMVU * Added authentication.
  • [9] J5UVLXOK * Start of a basic Catalyst web interface.
  • [10] VVOAXWH4 fix wrong dbix:class:loader generation
  • [11] XJRJ4J7M Add user registration
  • [*] CLJQCY2X * Store info about all the build actions and allow them to be
  • [*] PMNWRTGJ Add multiple output support

Change contents

  • replacement in src/lib/Hydra/Controller/Root.pm at line 60
    [2.25][4.21698:21827](),[4.21698][4.21698:21827](),[4.21827][2.26:98](),[2.98][4.21884:21904](),[4.21884][4.21884:21904]()
    entity => [$c->model('DB::Projects')->search(isAdmin($c) ? {} : {hidden => 0}, {
    order_by => 'name',
    columns => [ 'name', 'displayname', 'description' ]
    })]
    [2.25]
    [4.21904]
    entity => $c->stash->{projects}
  • replacement in src/lib/Hydra/Controller/Root.pm at line 73
    [4.22015][4.22015:22067](),[4.22067][4.181:284]()
    entity => [$c->model('DB::Builds')->search(
    {finished => 0}, { order_by => ["priority DESC", "id"], columns => [@buildListColumns] })]
    [4.22015]
    [4.22247]
    entity => [$c->model('DB::Builds')->search({finished => 0}, { order_by => ["priority DESC", "id"]})]
  • replacement in src/lib/Hydra/Controller/Root.pm at line 100
    [4.22493][4.22493:23079]()
    { join => { build => [ 'project', 'job', 'jobset' ] },
    columns => [
    'me.machine',
    'me.system',
    'me.stepnr',
    'me.drvpath',
    'me.starttime',
    'build.id',
    {
    'build.project.name' => 'project.name',
    'build.jobset.name' => 'jobset.name',
    'build.job.name' => 'job.name'
    }
    ],
    order_by => [ 'machine' ]
    }
    [4.22493]
    [4.23079]
    { order_by => [ 'machine' ] }
  • edit in src/lib/Hydra/Schema/BuildSteps.pm at line 172
    [14.10119]
    [13.3050]
    my %hint = (
    columns => [
    "machine",
    "system",
    "stepnr",
    "drvpath",
    "starttime",
    ],
    eager_relations => {
    build => 'id'
    }
    );
    sub json_hint {
    return \%hint;
    }
  • replacement in src/lib/Hydra/Schema/Builds.pm at line 606
    [3.56][3.56:90]()
    "job",
    "finished"
    [3.56]
    [3.90]
    'id',
    'finished',
    'timestamp',
    'stoptime',
    'project',
    'jobset',
    'job',
    'nixname',
    'system',
    'priority',
    'busy',
    'buildstatus',
    'releasename'