Commit 37c08beb authored by Vitali Tatarintev's avatar Vitali Tatarintev

Merge branch 'vij-deprecate-graphql-snippet-blob' into 'master'

Deprecate `blob` in Snippet GraphQL type

See merge request gitlab-org/gitlab!39088
parents 7f0342e4 de44d27f
......@@ -66,7 +66,8 @@ module Types
field :blob, type: Types::Snippets::BlobType,
description: 'Snippet blob',
calls_gitaly: true,
null: false
null: false,
deprecated: { reason: 'Use `blobs`', milestone: '13.3' }
field :blobs, type: [Types::Snippets::BlobType],
description: 'Snippet blobs',
......
---
title: Deprecate blob field on GraphQL SnippetType
merge_request: 39088
author:
type: deprecated
......@@ -13739,9 +13739,9 @@ type Snippet implements Noteable {
author: User
"""
Snippet blob
Snippet blob. Deprecated in 13.3: Use `blobs`
"""
blob: SnippetBlob!
blob: SnippetBlob! @deprecated(reason: "Use `blobs`. Deprecated in 13.3")
"""
Snippet blobs
......
......@@ -40450,7 +40450,7 @@
},
{
"name": "blob",
"description": "Snippet blob",
"description": "Snippet blob. Deprecated in 13.3: Use `blobs`",
"args": [
],
......@@ -40463,8 +40463,8 @@
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
"isDeprecated": true,
"deprecationReason": "Use `blobs`. Deprecated in 13.3"
},
{
"name": "blobs",
......@@ -2030,7 +2030,7 @@ Represents a snippet entry
| Name | Type | Description |
| --- | ---- | ---------- |
| `author` | User | The owner of the snippet |
| `blob` | SnippetBlob! | Snippet blob |
| `blob` **{warning-solid}** | SnippetBlob! | **Deprecated:** Use `blobs`. Deprecated in 13.3 |
| `blobs` | SnippetBlob! => Array | Snippet blobs |
| `createdAt` | Time! | Timestamp this snippet was created |
| `description` | String | Description of the snippet |
......
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