@AntonKhorev commented on this pull request.


> @@ -44,6 +44,11 @@ def index
     end
 
     @issues, @newer_issues_id, @older_issues_id = get_page_items(@issues, 
:limit => @params[:limit])
+
+    @unique_reporters = @issues.each_with_object({}) do |issue, reporters|
+      reporters[issue.id] = issue.reports.order(:created_at => 
:desc).preload(:user).map(&:user).uniq

Is it possible to select unique user ids, then limit them to 3 per issue, and 
only after that load users?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4990#pullrequestreview-2568799030
You are receiving this because you are subscribed to this thread.

Message ID: 
<openstreetmap/openstreetmap-website/pull/4990/review/2568799...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to