Projects: don't respond with unnecessary declarative field

[?]
May 24, 2021, 10:22 PM
BQEXO33NG7QCHWO6GT645I5DSY7PROIY3SRG25K2THAGJQGUJGTQC

Dependencies

  • [2] K4B5ECOH Project: add test for declarative->normal project transition
  • [3] LN3E2P4E t: Test Projects JSON serialization and deserialization
  • [4] 7ECJWNVX Cleanup Project model
  • [5] 3NGONGQ7 Project: add declfile, decltype, declvalue to API
  • [*] X27GNHDV * Basic job info in the database.

Change contents

  • edit in src/lib/Hydra/Schema/Projects.pm at line 266
    [3.1550]
    [3.1550]
    "jobsets" => [ map { $_->name } $self->jobsets ]
    );
    my %decl = (
  • replacement in src/lib/Hydra/Schema/Projects.pm at line 274
    [3.1755][3.1755:1766]()
    },
    [3.1755]
    [3.1766]
    }
    );
  • replacement in src/lib/Hydra/Schema/Projects.pm at line 277
    [3.1767][3.1767:1831]()
    "jobsets" => [ map { $_->name } $self->jobsets ]
    );
    [3.1767]
    [3.1831]
    %json = (%json, %decl) if !($decl{"declarative"}->{"file"} eq "");
  • replacement in t/Controller/projects.t at line 52
    [2.1057][2.1057:1189]()
    owner => "root",
    declarative => {
    file => "",
    type => "",
    value => ""
    }
    [2.1057]
    [2.1189]
    owner => "root"
  • replacement in t/Controller/projects.t at line 134
    [2.3719][2.3719:3875]()
    owner => "root",
    declarative => {
    file => "",
    type => "",
    value => ""
    }
    [2.3719]
    [2.3875]
    owner => "root"