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
dcf49473
Commit
dcf49473
authored
Dec 10, 2020
by
Savas Vedova
Committed by
Mark Chao
Dec 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add confirmed at field to vulnerability type in GQL
- Update docs - Add changelog
parent
59e3ea2c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
0 deletions
+30
-0
doc/api/graphql/reference/gitlab_schema.graphql
doc/api/graphql/reference/gitlab_schema.graphql
+5
-0
doc/api/graphql/reference/gitlab_schema.json
doc/api/graphql/reference/gitlab_schema.json
+14
-0
doc/api/graphql/reference/index.md
doc/api/graphql/reference/index.md
+1
-0
ee/app/graphql/types/vulnerability_type.rb
ee/app/graphql/types/vulnerability_type.rb
+4
-0
ee/changelogs/unreleased/228740-add-confirmed-at.yml
ee/changelogs/unreleased/228740-add-confirmed-at.yml
+5
-0
ee/spec/graphql/types/vulnerability_type_spec.rb
ee/spec/graphql/types/vulnerability_type_spec.rb
+1
-0
No files found.
doc/api/graphql/reference/gitlab_schema.graphql
View file @
dcf49473
...
@@ -24606,6 +24606,11 @@ type VulnerabilitiesCountByDayEdge {
...
@@ -24606,6 +24606,11 @@ type VulnerabilitiesCountByDayEdge {
Represents a vulnerability
Represents a vulnerability
"""
"""
type
Vulnerability
implements
Noteable
{
type
Vulnerability
implements
Noteable
{
"""
Timestamp
of
when
the
vulnerability
state
was
changed
to
confirmed
"""
confirmedAt
:
Time
"""
"""
Description
of
the
vulnerability
Description
of
the
vulnerability
"""
"""
...
...
doc/api/graphql/reference/gitlab_schema.json
View file @
dcf49473
...
@@ -71715,6 +71715,20 @@
...
@@ -71715,6 +71715,20 @@
"name": "Vulnerability",
"name": "Vulnerability",
"description": "Represents a vulnerability",
"description": "Represents a vulnerability",
"fields": [
"fields": [
{
"name": "confirmedAt",
"description": "Timestamp of when the vulnerability state was changed to confirmed",
"args": [
],
"type": {
"kind": "SCALAR",
"name": "Time",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
{
"name": "description",
"name": "description",
"description": "Description of the vulnerability",
"description": "Description of the vulnerability",
doc/api/graphql/reference/index.md
View file @
dcf49473
...
@@ -3716,6 +3716,7 @@ Represents a vulnerability.
...
@@ -3716,6 +3716,7 @@ Represents a vulnerability.
| Field | Type | Description |
| Field | Type | Description |
| ----- | ---- | ----------- |
| ----- | ---- | ----------- |
|
`confirmedAt`
| Time | Timestamp of when the vulnerability state was changed to confirmed |
|
`description`
| String | Description of the vulnerability |
|
`description`
| String | Description of the vulnerability |
|
`detectedAt`
| Time! | Timestamp of when the vulnerability was first detected |
|
`detectedAt`
| Time! | Timestamp of when the vulnerability was first detected |
|
`discussions`
| DiscussionConnection! | All discussions on this noteable |
|
`discussions`
| DiscussionConnection! | All discussions on this noteable |
...
...
ee/app/graphql/types/vulnerability_type.rb
View file @
dcf49473
...
@@ -62,6 +62,10 @@ module Types
...
@@ -62,6 +62,10 @@ module Types
description:
'Timestamp of when the vulnerability was first detected'
,
description:
'Timestamp of when the vulnerability was first detected'
,
method: :created_at
method: :created_at
field
:confirmed_at
,
Types
::
TimeType
,
null:
true
,
description:
'Timestamp of when the vulnerability state was changed to confirmed'
,
method: :confirmed_at
def
user_notes_count
def
user_notes_count
::
Gitlab
::
Graphql
::
Aggregations
::
Vulnerabilities
::
LazyUserNotesCountAggregate
.
new
(
context
,
object
)
::
Gitlab
::
Graphql
::
Aggregations
::
Vulnerabilities
::
LazyUserNotesCountAggregate
.
new
(
context
,
object
)
end
end
...
...
ee/changelogs/unreleased/228740-add-confirmed-at.yml
0 → 100644
View file @
dcf49473
---
title
:
Add confirmed_at field to vulnerability in GraphQL
merge_request
:
49376
author
:
type
:
changed
ee/spec/graphql/types/vulnerability_type_spec.rb
View file @
dcf49473
...
@@ -24,6 +24,7 @@ RSpec.describe GitlabSchema.types['Vulnerability'] do
...
@@ -24,6 +24,7 @@ RSpec.describe GitlabSchema.types['Vulnerability'] do
project
project
issueLinks
issueLinks
detected_at
detected_at
confirmed_at
notes
notes
discussions]
discussions]
end
end
...
...
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