Skip to content
代码片段 群组 项目
提交 9805adde 编辑于 作者: Aleksei Lipniagov's avatar Aleksei Lipniagov
浏览文件

Merge branch '430760_add_projects_field_to_compliance_frameworks_type' into 'master'

Add projects field to compliance frameworks GraphQL type

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



Merged-by: default avatarAleksei Lipniagov <alipniagov@gitlab.com>
Approved-by: default avatarHitesh Raghuvanshi <hraghuvanshi@gitlab.com>
Co-authored-by: default avatarhuzaifaiftikhar1 <hiftikhar@gitlab.com>
No related branches found
No related tags found
无相关合并请求
...@@ -15970,6 +15970,7 @@ Represents a ComplianceFramework associated with a Project. ...@@ -15970,6 +15970,7 @@ Represents a ComplianceFramework associated with a Project.
| <a id="complianceframeworkid"></a>`id` | [`ID!`](#id) | Compliance framework ID. | | <a id="complianceframeworkid"></a>`id` | [`ID!`](#id) | Compliance framework ID. |
| <a id="complianceframeworkname"></a>`name` | [`String!`](#string) | Name of the compliance framework. | | <a id="complianceframeworkname"></a>`name` | [`String!`](#string) | Name of the compliance framework. |
| <a id="complianceframeworkpipelineconfigurationfullpath"></a>`pipelineConfigurationFullPath` | [`String`](#string) | Full path of the compliance pipeline configuration stored in a project repository, such as `.gitlab/.compliance-gitlab-ci.yml@compliance/hipaa` **(ULTIMATE ALL)**. | | <a id="complianceframeworkpipelineconfigurationfullpath"></a>`pipelineConfigurationFullPath` | [`String`](#string) | Full path of the compliance pipeline configuration stored in a project repository, such as `.gitlab/.compliance-gitlab-ci.yml@compliance/hipaa` **(ULTIMATE ALL)**. |
| <a id="complianceframeworkprojects"></a>`projects` | [`ProjectConnection`](#projectconnection) | Projects associated with the compliance framework. (see [Connections](#connections)) |
   
### `ComplianceStandardsAdherence` ### `ComplianceStandardsAdherence`
   
...@@ -32,6 +32,10 @@ class ComplianceFrameworkType < Types::BaseObject ...@@ -32,6 +32,10 @@ class ComplianceFrameworkType < Types::BaseObject
description: 'Full path of the compliance pipeline configuration stored in a project repository, such as `.gitlab/.compliance-gitlab-ci.yml@compliance/hipaa` **(ULTIMATE ALL)**.', description: 'Full path of the compliance pipeline configuration stored in a project repository, such as `.gitlab/.compliance-gitlab-ci.yml@compliance/hipaa` **(ULTIMATE ALL)**.',
authorize: :manage_group_level_compliance_pipeline_config authorize: :manage_group_level_compliance_pipeline_config
field :projects, Types::ProjectType.connection_type,
null: true,
description: 'Projects associated with the compliance framework.'
def default def default
object.id == object.namespace.namespace_settings.default_compliance_framework_id object.id == object.namespace.namespace_settings.default_compliance_framework_id
end end
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
color color
default default
pipeline_configuration_full_path pipeline_configuration_full_path
projects
] ]
it 'has the correct fields' do it 'has the correct fields' do
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册