parent
2fb3fcf0c0
commit
1286151578
|
@ -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) }
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: 'Add performance query regression fix for !9088 affecting #27267'
|
||||
merge_request:
|
||||
author:
|
Loading…
Reference in New Issue