Search: Don't return hidden projects/jobsets

[?]
Feb 22, 2013, 2:56 PM
GK326R5NJYVROQQUOBQT26P3OV6OZLMLTZRU6VIDR2HEOOTRAGAQC

Dependencies

  • [2] UICHT2PS Add a search feature
  • [3] HRAFVVOE make logo configurable via HYDRA_LOGO env var
  • [4] VH5ZABDR Add a page to show the latest evaluations for the entire server
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.

Change contents

  • replacement in src/lib/Hydra/Controller/Root.pm at line 314
    [2.360][2.360:496]()
    { -or => [ name => { ilike => "%$query%" }, displayName => { ilike => "%$query%" }, description => { ilike => "%$query%" } ] },
    [2.360]
    [2.496]
    { -and =>
    [ { -or => [ name => { ilike => "%$query%" }, displayName => { ilike => "%$query%" }, description => { ilike => "%$query%" } ] }
    , { hidden => 0 }
    ]
    },
  • replacement in src/lib/Hydra/Controller/Root.pm at line 322
    [2.598][2.598:743]()
    { -or => [ name => { ilike => "%$query%" }, description => { ilike => "%$query%" } ] },
    { order_by => ["project", "name"] } ) ];
    [2.598]
    [2.743]
    { -and =>
    [ { -or => [ "me.name" => { ilike => "%$query%" }, "me.description" => { ilike => "%$query%" } ] }
    , { "project.hidden" => 0, "me.hidden" => 0 }
    ]
    },
    { order_by => ["project", "name"], join => ["project"] } ) ];
  • replacement in src/lib/Hydra/Controller/Root.pm at line 330
    [2.801][2.801:905]()
    { name => { ilike => "%$query%" } },
    { order_by => ["project", "jobset", "name"] } ) ];
    [2.801]
    [3.416]
    { "me.name" => { ilike => "%$query%" }
    , "project.hidden" => 0
    , "jobset.hidden" => 0
    },
    { order_by => ["project", "jobset", "name"], join => ["project", "jobset"] } ) ];