Commit 27bfa8a5 authored by Nick Thomas's avatar Nick Thomas

Merge branch 'use-enriched-type-for-dast-site-profiles' into 'master'

Add more specific ID type for DastSiteProfiles

See merge request gitlab-org/gitlab!38660
parents 4dde3f60 bb64e45f
......@@ -2421,7 +2421,7 @@ type DastSiteProfile {
"""
ID of the site profile
"""
id: ID!
id: DastSiteProfileID!
"""
The name of the site profile
......@@ -2506,7 +2506,7 @@ type DastSiteProfileCreatePayload {
"""
ID of the site profile.
"""
id: ID
id: DastSiteProfileID
}
"""
......
......@@ -6531,7 +6531,7 @@
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"name": "DastSiteProfileID",
"ofType": null
}
},
......@@ -6785,7 +6785,7 @@
],
"type": {
"kind": "SCALAR",
"name": "ID",
"name": "DastSiteProfileID",
"ofType": null
},
"isDeprecated": false,
......@@ -429,7 +429,7 @@ Represents a DAST Site Profile.
| Name | Type | Description |
| --- | ---- | ---------- |
| `id` | ID! | ID of the site profile |
| `id` | DastSiteProfileID! | ID of the site profile |
| `profileName` | String | The name of the site profile |
| `targetUrl` | String | The URL of the target to be scanned |
| `userPermissions` | DastSiteProfilePermissions! | Permissions for the current user on the resource |
......@@ -443,7 +443,7 @@ Autogenerated return type of DastSiteProfileCreate
| --- | ---- | ---------- |
| `clientMutationId` | String | A unique identifier for the client performing the mutation. |
| `errors` | String! => Array | Errors encountered during execution of the mutation. |
| `id` | ID | ID of the site profile. |
| `id` | DastSiteProfileID | ID of the site profile. |
## DastSiteProfileDeletePayload
......
......@@ -7,7 +7,7 @@ module Mutations
graphql_name 'DastSiteProfileCreate'
field :id, GraphQL::ID_TYPE,
field :id, ::Types::GlobalIDType[::DastSiteProfile],
null: true,
description: 'ID of the site profile.'
......
......@@ -9,7 +9,7 @@ module Types
expose_permissions Types::PermissionTypes::DastSiteProfile
field :id, GraphQL::ID_TYPE, null: false,
field :id, ::Types::GlobalIDType[::DastSiteProfile], null: false,
description: 'ID of the site profile'
field :profile_name, GraphQL::STRING_TYPE, null: true,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment