mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2025-08-16 17:13:01 +00:00
Add latest changes from gitlab-org/gitlab@master
This commit is contained in:
@ -22,7 +22,8 @@ module Banzai
|
||||
end
|
||||
|
||||
def parent_records(parent, ids)
|
||||
parent.issues.where(iid: ids.to_a).includes(:project, :namespace, :work_item_type)
|
||||
parent.issues.where(iid: ids.to_a)
|
||||
.includes(:project, :namespace, ::Gitlab::Issues::TypeAssociationGetter.call)
|
||||
end
|
||||
|
||||
def object_link_text_extras(issue, matches)
|
||||
|
@ -12,7 +12,8 @@ module Banzai
|
||||
self.object_class = WorkItem
|
||||
|
||||
def parent_records(parent, ids)
|
||||
parent.work_items.where(iid: ids.to_a).includes(:project, :namespace, :work_item_type)
|
||||
parent.work_items.where(iid: ids.to_a)
|
||||
.includes(:project, :namespace, ::Gitlab::Issues::TypeAssociationGetter.call)
|
||||
end
|
||||
|
||||
def parent_type
|
||||
|
@ -68,7 +68,7 @@ module Banzai
|
||||
|
||||
def node_includes
|
||||
includes = [
|
||||
:work_item_type,
|
||||
::Gitlab::Issues::TypeAssociationGetter.call,
|
||||
:namespace,
|
||||
:author,
|
||||
:assignees,
|
||||
|
Reference in New Issue
Block a user