Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
de44d27f
Commit
de44d27f
authored
Aug 10, 2020
by
Vijay Hawoldar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deprecate `blob` in Snippet GraphQL type
It has been replaced by `blobs`
parent
a4c7d5b3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
7 deletions
+13
-7
app/graphql/types/snippet_type.rb
app/graphql/types/snippet_type.rb
+2
-1
changelogs/unreleased/vij-deprecate-graphql-snippet-blob.yml
changelogs/unreleased/vij-deprecate-graphql-snippet-blob.yml
+5
-0
doc/api/graphql/reference/gitlab_schema.graphql
doc/api/graphql/reference/gitlab_schema.graphql
+2
-2
doc/api/graphql/reference/gitlab_schema.json
doc/api/graphql/reference/gitlab_schema.json
+3
-3
doc/api/graphql/reference/index.md
doc/api/graphql/reference/index.md
+1
-1
No files found.
app/graphql/types/snippet_type.rb
View file @
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'
,
...
...
changelogs/unreleased/vij-deprecate-graphql-snippet-blob.yml
0 → 100644
View file @
de44d27f
---
title
:
Deprecate blob field on GraphQL SnippetType
merge_request
:
39088
author
:
type
:
deprecated
doc/api/graphql/reference/gitlab_schema.graphql
View file @
de44d27f
...
...
@@ -13673,9 +13673,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
...
...
doc/api/graphql/reference/gitlab_schema.json
View file @
de44d27f
...
...
@@ -40253,7 +40253,7 @@
},
{
"name": "blob",
"description": "Snippet blob",
"description": "Snippet blob
. Deprecated in 13.3: Use `blobs`
",
"args": [
],
...
...
@@ -40266,8 +40266,8 @@
"ofType": null
}
},
"isDeprecated":
fals
e,
"deprecationReason":
null
"isDeprecated":
tru
e,
"deprecationReason":
"Use `blobs`. Deprecated in 13.3"
},
{
"name": "blobs",
doc/api/graphql/reference/index.md
View file @
de44d27f
...
...
@@ -2020,7 +2020,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 |
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment