Add performance query regression fix for !9088 affecting #27267

This commit is contained in:
Oswaldo Ferreira 2017-02-24 16:56:34 -03:00
parent 2fb3fcf0c0
commit 1286151578
2 changed files with 5 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class Event < ActiveRecord::Base
scope :code_push, -> { where(action: PUSHED) }
scope :in_projects, ->(projects) do
where(project_id: projects).recent
where(project_id: projects.pluck(:id)).recent
end
scope :with_associations, -> { includes(:author, :project, project: :namespace).preload(:target) }

View File

@ -0,0 +1,4 @@
---
title: 'Add performance query regression fix for !9088 affecting #27267'
merge_request:
author: