Commit f1afed1a authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch...

Merge branch 'switch-back-to-id-instead-of-global-id-in-dast-scanner-profile-mutations-270084' into 'master'

Deprecate globalId for id in DastScannerProfile

See merge request gitlab-org/gitlab!47559
parents 8aa5e570 4abcbf90
...@@ -4483,14 +4483,14 @@ type DastScannerProfile { ...@@ -4483,14 +4483,14 @@ type DastScannerProfile {
editPath: String editPath: String
""" """
ID of the DAST scanner profile ID of the DAST scanner profile. Deprecated in 13.6: Use `id`
""" """
globalId: DastScannerProfileID! globalId: DastScannerProfileID! @deprecated(reason: "Use `id`. Deprecated in 13.6")
""" """
ID of the DAST scanner profile. Deprecated in 13.4: Use `global_id` ID of the DAST scanner profile
""" """
id: ID! @deprecated(reason: "Use `global_id`. Deprecated in 13.4") id: DastScannerProfileID!
""" """
Name of the DAST scanner profile Name of the DAST scanner profile
...@@ -4607,14 +4607,14 @@ type DastScannerProfileCreatePayload { ...@@ -4607,14 +4607,14 @@ type DastScannerProfileCreatePayload {
errors: [String!]! errors: [String!]!
""" """
ID of the scanner profile. ID of the scanner profile.. Deprecated in 13.6: Use `id`
""" """
globalId: DastScannerProfileID globalId: DastScannerProfileID @deprecated(reason: "Use `id`. Deprecated in 13.6")
""" """
ID of the scanner profile.. Deprecated in 13.4: Use `global_id` ID of the scanner profile.
""" """
id: ID @deprecated(reason: "Use `global_id`. Deprecated in 13.4") id: DastScannerProfileID
} }
""" """
......
...@@ -12232,7 +12232,7 @@ ...@@ -12232,7 +12232,7 @@
}, },
{ {
"name": "globalId", "name": "globalId",
"description": "ID of the DAST scanner profile", "description": "ID of the DAST scanner profile. Deprecated in 13.6: Use `id`",
"args": [ "args": [
], ],
...@@ -12245,12 +12245,12 @@ ...@@ -12245,12 +12245,12 @@
"ofType": null "ofType": null
} }
}, },
"isDeprecated": false, "isDeprecated": true,
"deprecationReason": null "deprecationReason": "Use `id`. Deprecated in 13.6"
}, },
{ {
"name": "id", "name": "id",
"description": "ID of the DAST scanner profile. Deprecated in 13.4: Use `global_id`", "description": "ID of the DAST scanner profile",
"args": [ "args": [
], ],
...@@ -12259,12 +12259,12 @@ ...@@ -12259,12 +12259,12 @@
"name": null, "name": null,
"ofType": { "ofType": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "ID", "name": "DastScannerProfileID",
"ofType": null "ofType": null
} }
}, },
"isDeprecated": true, "isDeprecated": false,
"deprecationReason": "Use `global_id`. Deprecated in 13.4" "deprecationReason": null
}, },
{ {
"name": "profileName", "name": "profileName",
...@@ -12579,7 +12579,7 @@ ...@@ -12579,7 +12579,7 @@
}, },
{ {
"name": "globalId", "name": "globalId",
"description": "ID of the scanner profile.", "description": "ID of the scanner profile.. Deprecated in 13.6: Use `id`",
"args": [ "args": [
], ],
...@@ -12588,22 +12588,22 @@ ...@@ -12588,22 +12588,22 @@
"name": "DastScannerProfileID", "name": "DastScannerProfileID",
"ofType": null "ofType": null
}, },
"isDeprecated": false, "isDeprecated": true,
"deprecationReason": null "deprecationReason": "Use `id`. Deprecated in 13.6"
}, },
{ {
"name": "id", "name": "id",
"description": "ID of the scanner profile.. Deprecated in 13.4: Use `global_id`", "description": "ID of the scanner profile.",
"args": [ "args": [
], ],
"type": { "type": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "ID", "name": "DastScannerProfileID",
"ofType": null "ofType": null
}, },
"isDeprecated": true, "isDeprecated": false,
"deprecationReason": "Use `global_id`. Deprecated in 13.4" "deprecationReason": null
} }
], ],
"inputFields": null, "inputFields": null,
...@@ -737,8 +737,8 @@ Represents a DAST scanner profile. ...@@ -737,8 +737,8 @@ Represents a DAST scanner profile.
| Field | Type | Description | | Field | Type | Description |
| ----- | ---- | ----------- | | ----- | ---- | ----------- |
| `editPath` | String | Relative web path to the edit page of a scanner profile | | `editPath` | String | Relative web path to the edit page of a scanner profile |
| `globalId` | DastScannerProfileID! | ID of the DAST scanner profile | | `globalId` **{warning-solid}** | DastScannerProfileID! | **Deprecated:** Use `id`. Deprecated in 13.6 |
| `id` **{warning-solid}** | ID! | **Deprecated:** Use `global_id`. Deprecated in 13.4 | | `id` | DastScannerProfileID! | ID of the DAST scanner profile |
| `profileName` | String | Name of the DAST scanner profile | | `profileName` | String | Name of the DAST scanner profile |
| `scanType` | DastScanTypeEnum | Indicates the type of DAST scan that will run. Either a Passive Scan or an Active Scan. | | `scanType` | DastScanTypeEnum | Indicates the type of DAST scan that will run. Either a Passive Scan or an Active Scan. |
| `showDebugMessages` | Boolean! | Indicates if debug messages should be included in DAST console output. True to include the debug messages. | | `showDebugMessages` | Boolean! | Indicates if debug messages should be included in DAST console output. True to include the debug messages. |
...@@ -754,8 +754,8 @@ Autogenerated return type of DastScannerProfileCreate. ...@@ -754,8 +754,8 @@ Autogenerated return type of DastScannerProfileCreate.
| ----- | ---- | ----------- | | ----- | ---- | ----------- |
| `clientMutationId` | String | A unique identifier for the client performing the mutation. | | `clientMutationId` | String | A unique identifier for the client performing the mutation. |
| `errors` | String! => Array | Errors encountered during execution of the mutation. | | `errors` | String! => Array | Errors encountered during execution of the mutation. |
| `globalId` | DastScannerProfileID | ID of the scanner profile. | | `globalId` **{warning-solid}** | DastScannerProfileID | **Deprecated:** Use `id`. Deprecated in 13.6 |
| `id` **{warning-solid}** | ID | **Deprecated:** Use `global_id`. Deprecated in 13.4 | | `id` | DastScannerProfileID | ID of the scanner profile. |
### DastScannerProfileDeletePayload ### DastScannerProfileDeletePayload
......
...@@ -7,14 +7,14 @@ module Mutations ...@@ -7,14 +7,14 @@ module Mutations
graphql_name 'DastScannerProfileCreate' graphql_name 'DastScannerProfileCreate'
field :id, GraphQL::ID_TYPE, field :id, ::Types::GlobalIDType[::DastScannerProfile],
null: true, null: true,
description: 'ID of the scanner profile.', description: 'ID of the scanner profile.'
deprecated: { reason: 'Use `global_id`', milestone: '13.4' }
field :global_id, ::Types::GlobalIDType[::DastScannerProfile], field :global_id, ::Types::GlobalIDType[::DastScannerProfile],
null: true, null: true,
description: 'ID of the scanner profile.' description: 'ID of the scanner profile.',
deprecated: { reason: 'Use `id`', milestone: '13.6' }
argument :full_path, GraphQL::ID_TYPE, argument :full_path, GraphQL::ID_TYPE,
required: true, required: true,
......
...@@ -7,12 +7,12 @@ module Types ...@@ -7,12 +7,12 @@ module Types
authorize :create_on_demand_dast_scan authorize :create_on_demand_dast_scan
field :id, GraphQL::ID_TYPE, null: false, field :id, ::Types::GlobalIDType[::DastScannerProfile], null: false,
description: 'ID of the DAST scanner profile', description: 'ID of the DAST scanner profile'
deprecated: { reason: 'Use `global_id`', milestone: '13.4' }
field :global_id, ::Types::GlobalIDType[::DastScannerProfile], null: false, field :global_id, ::Types::GlobalIDType[::DastScannerProfile], null: false,
description: 'ID of the DAST scanner profile', description: 'ID of the DAST scanner profile',
deprecated: { reason: 'Use `id`', milestone: '13.6' },
method: :id method: :id
field :profile_name, GraphQL::STRING_TYPE, null: true, field :profile_name, GraphQL::STRING_TYPE, null: true,
......
---
title: Deprecate globalId and undeprecate id for DastScannerProfile
merge_request: 47559
author:
type: deprecated
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