Add latest changes from gitlab-org/gitlab@master

This commit is contained in:
GitLab Bot
2024-11-13 18:32:06 +00:00
parent d4a47f4e96
commit 673391836f
90 changed files with 601 additions and 197 deletions

View File

@ -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)

View File

@ -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

View File

@ -68,7 +68,7 @@ module Banzai
def node_includes
includes = [
:work_item_type,
::Gitlab::Issues::TypeAssociationGetter.call,
:namespace,
:author,
:assignees,