ToJSON: serialize string_columns to JSON

[?]
Apr 26, 2021, 11:37 PM
2XGJ54SFMXISWLZCPCFGHJKCH4FJS7YKJSLA4D6WVILTRDLMOJFQC

Dependencies

  • [2] 4OG3W43V Get rid of old ToJSON code path
  • [3] LN3E2P4E t: Test Projects JSON serialization and deserialization
  • [4] KSBB33RE Add a dashboard
  • [5] T5BIOVJE Add support for tracking custom metrics
  • [6] IQBLO5PW Projects: serialize `enabled` and `hidden` as boolean
  • [7] W5OAZWPD Drop the errorMsg column in the Jobs table
  • [8] 6WRGCITD Enable declarative projects.
  • [9] PCD3ZH6Z Partially revert 1c20cfdf2403feb78cef515faf15c04d5c9f17bd
  • [10] NZXX6PLD Remove the Jobs table
  • [11] YU6CND7C Remove support for views
  • [12] N74SRHS6 Remove the "releases" feature
  • [13] BMGYDRNK jobsetevals: refer to jobset by ID
  • [14] MB5INTIQ Normalize nixexpr{input,path} from builds to jobsetevals.
  • [15] 7RRDNLP3 Add homepage to Projects schema
  • [16] BXHG3HYL When renaming a jobset, add a redirect from the old name
  • [17] 7ECJWNVX Cleanup Project model
  • [18] IGR322YP sql: Generate models from postgresql
  • [*] LZVO64YG Merge in the first bits of the API work
  • [*] X27GNHDV * Basic job info in the database.

Change contents

  • edit in src/lib/Hydra/Component/ToJSON.pm at line 19
    [2.154]
    [2.154]
    }
    foreach my $column (@{$hint->{string_columns}}) {
    $json{$column} = $self->get_column($column) // "";
  • replacement in src/lib/Hydra/Schema/Projects.pm at line 250
    [4.185][4.185:202]()
    columns => [
    [4.185]
    [4.202]
    string_columns => [
  • replacement in t/Controller/projects.t at line 28
    [3.599][3.599:625]()
    description => undef,
    [3.599]
    [3.625]
    description => "",
  • replacement in t/Controller/projects.t at line 32
    [3.702][3.702:725]()
    homepage => undef,
    [3.702]
    [3.725]
    homepage => "",