1. 17.09.2018 1 коммит
    • Jan Provaznik's avatar
      Pass group IDs to MilestonesFinder
      · ff54c82e
      Jan Provaznik создал
      MilestonesFinder expects group ids in group_ids parameter (it does
      `Array(params[:group_ids])`), but DashboardGroupMilestone.build_collection
      was passing subquery instead. This doesn't work in rails 5 because
      this evaluates into array of NULLs in the final query.
      
      Because a separate query is used for loading group IDs both in rails4
      and rails5 we can explicitly pass array of IDs to the MilestonesFinder
      instead of subquery anyway.
      
      `select.map` is used because `pluck` is failing with:
      `undefined method `map' for #<Arel::Nodes::SqlLiteral...>`
      ff54c82e
  2. 15.09.2018 3 коммита
  3. 14.09.2018 36 коммитов