Show buildinput and buildproduct information in the Builds API

[?]
Nov 5, 2013, 2:42 PM
LKEX7GZ4KQKK567K55PWJHISLNW5EJMFKGBGVY2VI6VUGOK5TYQAC

Dependencies

  • [2] ZIIXICG7 Make the outputs' outpaths available via the Build JSON API
  • [3] VVOAXWH4 fix wrong dbix:class:loader generation
  • [4] J5UVLXOK * Start of a basic Catalyst web interface.
  • [5] JM3DPYOM generated schema with new dbix class schema loader, grrrrrr
  • [6] Y6AHH4TH Remove the logfile and logSize columns from the database
  • [7] NP7IOJ4Q Flesh out the API a bit
  • [8] MOX7XJ2E Merge the BuildSchedulingInfo table into the Builds table
  • [9] SB2V735V Keep track of the database schema version
  • [10] LZVO64YG Merge in the first bits of the API work
  • [11] 2DGIP6L4 Cleanup build serialization
  • [12] SHIENRAL Clean up root controller
  • [*] PHX2HIVG * Store info about the build inputs in the build record.
  • [*] 7ZSVXUGF sequence fix for postgresql

Change contents

  • edit in src/lib/Hydra/Schema/BuildInputs.pm at line 182
    [15.152]
    [14.1016]
    my %hint = (
    columns => [
    'type',
    'uri',
    'value',
    'revision',
    ],
    );
    sub json_hint {
    return \%hint;
    }
  • replacement in src/lib/Hydra/Schema/BuildProducts.pm at line 156
    [3.5066][3.5066:5156]()
    # You can replace this text with custom content, and it will be preserved on regeneration
    [3.5066]
    [3.5156]
    my %hint = (
    columns => [
    'type',
    'subtype',
    'name',
    'fileSize',
    'sha1hash',
    'sha256hash',
    'description',
    'path',
    'defaultPath'
    ],
    );
    sub json_hint {
    return \%hint;
    }
  • edit in src/lib/Hydra/Schema/Builds.pm at line 606
    [3.56][3.422:477]()
    'id',
    'finished',
    'timestamp',
  • replacement in src/lib/Hydra/Schema/Builds.pm at line 619
    [2.127][2.127:158]()
    buildoutputs => 'name'
    [2.127]
    [2.158]
    buildoutputs => 'name',
    buildinputs => 'name'
    buildproducts => 'productnr',