Commit 99bf6515 authored by Evan Read's avatar Evan Read

Merge branch 'ld-fix-deprecation-reasons' into 'master'

Fix GraphQL deprecation reasons

See merge request gitlab-org/gitlab!24131
parents d6c8dbbb 05f87da3
...@@ -40,7 +40,7 @@ module Types ...@@ -40,7 +40,7 @@ module Types
type: Types::Ci::PipelineType, type: Types::Ci::PipelineType,
null: true, null: true,
description: "Latest pipeline of the commit", description: "Latest pipeline of the commit",
deprecation_reason: 'use pipelines', deprecation_reason: 'Use pipelines',
resolver: Resolvers::CommitPipelinesResolver.last resolver: Resolvers::CommitPipelinesResolver.last
end end
end end
...@@ -203,7 +203,7 @@ type Commit { ...@@ -203,7 +203,7 @@ type Commit {
Filter pipelines by their status Filter pipelines by their status
""" """
status: PipelineStatusEnum status: PipelineStatusEnum
): Pipeline @deprecated(reason: "use pipelines") ): Pipeline @deprecated(reason: "Use pipelines")
""" """
Raw commit message Raw commit message
...@@ -2172,9 +2172,9 @@ type EpicIssue implements Noteable { ...@@ -2172,9 +2172,9 @@ type EpicIssue implements Noteable {
designCollection: DesignCollection designCollection: DesignCollection
""" """
Deprecated. Use `design_collection` Deprecated. Use `designCollection`
""" """
designs: DesignCollection @deprecated(reason: "use design_collection") designs: DesignCollection @deprecated(reason: "Use designCollection")
""" """
Indicates discussion is locked on the issue Indicates discussion is locked on the issue
...@@ -3062,9 +3062,9 @@ type Issue implements Noteable { ...@@ -3062,9 +3062,9 @@ type Issue implements Noteable {
designCollection: DesignCollection designCollection: DesignCollection
""" """
Deprecated. Use `design_collection` Deprecated. Use `designCollection`
""" """
designs: DesignCollection @deprecated(reason: "use design_collection") designs: DesignCollection @deprecated(reason: "Use designCollection")
""" """
Indicates discussion is locked on the issue Indicates discussion is locked on the issue
......
...@@ -8712,7 +8712,7 @@ ...@@ -8712,7 +8712,7 @@
}, },
{ {
"name": "designs", "name": "designs",
"description": "Deprecated. Use `design_collection`", "description": "Deprecated. Use `designCollection`",
"args": [ "args": [
], ],
...@@ -8722,7 +8722,7 @@ ...@@ -8722,7 +8722,7 @@
"ofType": null "ofType": null
}, },
"isDeprecated": true, "isDeprecated": true,
"deprecationReason": "use design_collection" "deprecationReason": "Use designCollection"
}, },
{ {
"name": "discussionLocked", "name": "discussionLocked",
...@@ -10255,7 +10255,7 @@ ...@@ -10255,7 +10255,7 @@
}, },
{ {
"name": "designs", "name": "designs",
"description": "Deprecated. Use `design_collection`", "description": "Deprecated. Use `designCollection`",
"args": [ "args": [
], ],
...@@ -10265,7 +10265,7 @@ ...@@ -10265,7 +10265,7 @@
"ofType": null "ofType": null
}, },
"isDeprecated": true, "isDeprecated": true,
"deprecationReason": "use design_collection" "deprecationReason": "Use designCollection"
}, },
{ {
"name": "discussionLocked", "name": "discussionLocked",
...@@ -13092,7 +13092,7 @@ ...@@ -13092,7 +13092,7 @@
"ofType": null "ofType": null
}, },
"isDeprecated": true, "isDeprecated": true,
"deprecationReason": "use pipelines" "deprecationReason": "Use pipelines"
}, },
{ {
"name": "message", "name": "message",
......
...@@ -335,7 +335,7 @@ Relationship between an epic and an issue ...@@ -335,7 +335,7 @@ Relationship between an epic and an issue
| `description` | String | Description of the issue | | `description` | String | Description of the issue |
| `descriptionHtml` | String | The GitLab Flavored Markdown rendering of `description` | | `descriptionHtml` | String | The GitLab Flavored Markdown rendering of `description` |
| `designCollection` | DesignCollection | Collection of design images associated with this issue | | `designCollection` | DesignCollection | Collection of design images associated with this issue |
| `designs` | DesignCollection | Deprecated. Use `design_collection` | | `designs` | DesignCollection | Deprecated. Use `designCollection` |
| `discussionLocked` | Boolean! | Indicates discussion is locked on the issue | | `discussionLocked` | Boolean! | Indicates discussion is locked on the issue |
| `downvotes` | Int! | Number of downvotes the issue has received | | `downvotes` | Int! | Number of downvotes the issue has received |
| `dueDate` | Time | Due date of the issue | | `dueDate` | Time | Due date of the issue |
...@@ -455,7 +455,7 @@ Autogenerated return type of EpicTreeReorder ...@@ -455,7 +455,7 @@ Autogenerated return type of EpicTreeReorder
| `description` | String | Description of the issue | | `description` | String | Description of the issue |
| `descriptionHtml` | String | The GitLab Flavored Markdown rendering of `description` | | `descriptionHtml` | String | The GitLab Flavored Markdown rendering of `description` |
| `designCollection` | DesignCollection | Collection of design images associated with this issue | | `designCollection` | DesignCollection | Collection of design images associated with this issue |
| `designs` | DesignCollection | Deprecated. Use `design_collection` | | `designs` | DesignCollection | Deprecated. Use `designCollection` |
| `discussionLocked` | Boolean! | Indicates discussion is locked on the issue | | `discussionLocked` | Boolean! | Indicates discussion is locked on the issue |
| `downvotes` | Int! | Number of downvotes the issue has received | | `downvotes` | Int! | Number of downvotes the issue has received |
| `dueDate` | Time | Due date of the issue | | `dueDate` | Time | Due date of the issue |
......
...@@ -14,9 +14,9 @@ module EE ...@@ -14,9 +14,9 @@ module EE
resolve: -> (obj, _args, _ctx) { obj.supports_weight? ? obj.weight : nil } resolve: -> (obj, _args, _ctx) { obj.supports_weight? ? obj.weight : nil }
field :designs, ::Types::DesignManagement::DesignCollectionType, null: true, field :designs, ::Types::DesignManagement::DesignCollectionType, null: true,
description: "Deprecated. Use `design_collection`", description: "Deprecated. Use `designCollection`",
method: :design_collection, method: :design_collection,
deprecation_reason: 'use design_collection' deprecation_reason: 'Use designCollection'
field :design_collection, ::Types::DesignManagement::DesignCollectionType, null: true, field :design_collection, ::Types::DesignManagement::DesignCollectionType, null: true,
description: 'Collection of design images associated with this issue' description: 'Collection of design images associated with this issue'
......
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