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
5bad251e
Commit
5bad251e
authored
Apr 01, 2022
by
Jose Vargas
Committed by
Jose Ivan Vargas
Apr 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add status to DependencyProxy::Manifest type in GraphQL
Changelog: changed
parent
437ae2c8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletion
+3
-1
app/graphql/types/dependency_proxy/manifest_type.rb
app/graphql/types/dependency_proxy/manifest_type.rb
+1
-0
doc/api/graphql/reference/index.md
doc/api/graphql/reference/index.md
+1
-0
spec/graphql/types/dependency_proxy/manifest_type_spec.rb
spec/graphql/types/dependency_proxy/manifest_type_spec.rb
+1
-1
No files found.
app/graphql/types/dependency_proxy/manifest_type.rb
View file @
5bad251e
...
...
@@ -15,6 +15,7 @@ module Types
field
:image_name
,
GraphQL
::
Types
::
String
,
null:
false
,
description:
'Name of the image.'
field
:size
,
GraphQL
::
Types
::
String
,
null:
false
,
description:
'Size of the manifest file.'
field
:updated_at
,
Types
::
TimeType
,
null:
false
,
description:
'Date of most recent update.'
field
:status
,
GraphQL
::
Types
::
Int
,
null:
false
,
description:
'Status of the manifest file.'
def
image_name
object
.
file_name
.
chomp
(
File
.
extname
(
object
.
file_name
))
...
...
doc/api/graphql/reference/index.md
View file @
5bad251e
...
...
@@ -10100,6 +10100,7 @@ Dependency proxy manifest.
| <a id="dependencyproxymanifestid"></a>`id` | [`DependencyProxyManifestID!`](#dependencyproxymanifestid) | ID of the manifest. |
| <a id="dependencyproxymanifestimagename"></a>`imageName` | [`String!`](#string) | Name of the image. |
| <a id="dependencyproxymanifestsize"></a>`size` | [`String!`](#string) | Size of the manifest file. |
| <a id="dependencyproxymanifeststatus"></a>`status` | [`Int!`](#int) | Status of the manifest file. |
| <a id="dependencyproxymanifestupdatedat"></a>`updatedAt` | [`Time!`](#time) | Date of most recent update. |
### `DependencyProxySetting`
spec/graphql/types/dependency_proxy/manifest_type_spec.rb
View file @
5bad251e
...
...
@@ -5,7 +5,7 @@ require 'spec_helper'
RSpec
.
describe
GitlabSchema
.
types
[
'DependencyProxyManifest'
]
do
it
'includes dependency proxy manifest fields'
do
expected_fields
=
%w[
id file_name image_name size created_at updated_at digest
id file_name image_name size created_at updated_at digest
status
]
expect
(
described_class
).
to
include_graphql_fields
(
*
expected_fields
)
...
...
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