From a93e2a5d6f4432e81e46929abc70941f1a2d9c62 Mon Sep 17 00:00:00 2001 From: Urban Rotnik Date: Wed, 3 Jun 2020 23:18:22 +0200 Subject: [PATCH] Remove select --- app/helpers/reports_helper.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/helpers/reports_helper.rb b/app/helpers/reports_helper.rb index 8fb1dd8a0..9d0ae9387 100644 --- a/app/helpers/reports_helper.rb +++ b/app/helpers/reports_helper.rb @@ -151,7 +151,6 @@ module ReportsHelper .where(original_repositories_repositories: { id: nil }) .select('DISTINCT ON ("repositories"."parent_id") "repositories".*') .order(:parent_id, updated_at: :desc) - .select(:id, :name) snapshots.each { |snapshot| snapshot.name = "#{snapshot.name} #{t('projects.reports.index.deleted')}" } (live_repositories + snapshots).sort_by { |r| r.name.downcase }