Commit de44d27f authored by Vijay Hawoldar's avatar Vijay Hawoldar

Deprecate `blob` in Snippet GraphQL type

It has been replaced by `blobs`
parent a4c7d5b3
...@@ -66,7 +66,8 @@ module Types ...@@ -66,7 +66,8 @@ module Types
field :blob, type: Types::Snippets::BlobType, field :blob, type: Types::Snippets::BlobType,
description: 'Snippet blob', description: 'Snippet blob',
calls_gitaly: true, calls_gitaly: true,
null: false null: false,
deprecated: { reason: 'Use `blobs`', milestone: '13.3' }
field :blobs, type: [Types::Snippets::BlobType], field :blobs, type: [Types::Snippets::BlobType],
description: 'Snippet blobs', description: 'Snippet blobs',
......
---
title: Deprecate blob field on GraphQL SnippetType
merge_request: 39088
author:
type: deprecated
...@@ -13673,9 +13673,9 @@ type Snippet implements Noteable { ...@@ -13673,9 +13673,9 @@ type Snippet implements Noteable {
author: User 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 Snippet blobs
......
...@@ -40253,7 +40253,7 @@ ...@@ -40253,7 +40253,7 @@
}, },
{ {
"name": "blob", "name": "blob",
"description": "Snippet blob", "description": "Snippet blob. Deprecated in 13.3: Use `blobs`",
"args": [ "args": [
], ],
...@@ -40266,8 +40266,8 @@ ...@@ -40266,8 +40266,8 @@
"ofType": null "ofType": null
} }
}, },
"isDeprecated": false, "isDeprecated": true,
"deprecationReason": null "deprecationReason": "Use `blobs`. Deprecated in 13.3"
}, },
{ {
"name": "blobs", "name": "blobs",
...@@ -2020,7 +2020,7 @@ Represents a snippet entry ...@@ -2020,7 +2020,7 @@ Represents a snippet entry
| Name | Type | Description | | Name | Type | Description |
| --- | ---- | ---------- | | --- | ---- | ---------- |
| `author` | User | The owner of the snippet | | `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 | | `blobs` | SnippetBlob! => Array | Snippet blobs |
| `createdAt` | Time! | Timestamp this snippet was created | | `createdAt` | Time! | Timestamp this snippet was created |
| `description` | String | Description of the snippet | | `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