Skip to content
代码片段 群组 项目
提交 53859386 编辑于 作者: Felipe Artur's avatar Felipe Artur
浏览文件

Merge branch '322978-fix-some-graphql-deprecation-errors' into 'master'

Fix GraphQL deprecation messages

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/112146



Merged-by: default avatarFelipe Artur <fcardozo@gitlab.com>
Approved-by: default avatarFelipe Artur <fcardozo@gitlab.com>
Co-authored-by: default avatarHeinrich Lee Yu <heinrich@gitlab.com>
No related branches found
No related tags found
无相关合并请求
...@@ -178,6 +178,10 @@ class PipelineType < BaseObject ...@@ -178,6 +178,10 @@ class PipelineType < BaseObject
field :merge_request_event_type, Types::Ci::PipelineMergeRequestEventTypeEnum, null: true, field :merge_request_event_type, Types::Ci::PipelineMergeRequestEventTypeEnum, null: true,
description: "Event type of the pipeline associated with a merge request." description: "Event type of the pipeline associated with a merge request."
def commit
BatchLoader::GraphQL.wrap(object.commit)
end
def detailed_status def detailed_status
object.detailed_status(current_user) object.detailed_status(current_user)
end end
......
...@@ -610,7 +610,11 @@ def jobs_enabled ...@@ -610,7 +610,11 @@ def jobs_enabled
end end
def open_issues_count def open_issues_count
object.open_issues_count if object.feature_available?(:issues, context[:current_user]) BatchLoader::GraphQL.wrap(object.open_issues_count) if object.feature_available?(:issues, context[:current_user])
end
def forks_count
BatchLoader::GraphQL.wrap(object.forks_count)
end end
def statistics def statistics
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册