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
28843ef0
Commit
28843ef0
authored
Dec 11, 2020
by
Savas Vedova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add dismissed_at field to vulnerability in GraphQL
- Update documentation - Add changelog
parent
32f335e3
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
0 deletions
+29
-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
+3
-0
ee/changelogs/unreleased/228740-add-dismissed-at-field.yml
ee/changelogs/unreleased/228740-add-dismissed-at-field.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 @
28843ef0
...
...
@@ -24871,6 +24871,11 @@ type Vulnerability implements Noteable {
last
:
Int
):
DiscussionConnection
!
"""
Timestamp
of
when
the
vulnerability
state
was
changed
to
dismissed
"""
dismissedAt
:
Time
"""
List
of
external
issue
links
related
to
the
vulnerability
"""
...
...
doc/api/graphql/reference/gitlab_schema.json
View file @
28843ef0
...
...
@@ -72394,6 +72394,20 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "dismissedAt",
"description": "Timestamp of when the vulnerability state was changed to dismissed",
"args": [
],
"type": {
"kind": "SCALAR",
"name": "Time",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "externalIssueLinks",
"description": "List of external issue links related to the vulnerability",
doc/api/graphql/reference/index.md
View file @
28843ef0
...
...
@@ -3745,6 +3745,7 @@ Represents a vulnerability.
|
`description`
| String | Description of the vulnerability |
|
`detectedAt`
| Time! | Timestamp of when the vulnerability was first detected |
|
`discussions`
| DiscussionConnection! | All discussions on this noteable |
|
`dismissedAt`
| Time | Timestamp of when the vulnerability state was changed to dismissed |
|
`externalIssueLinks`
| VulnerabilityExternalIssueLinkConnection! | List of external issue links related to the vulnerability |
|
`id`
| ID! | GraphQL ID of the vulnerability |
|
`identifiers`
| VulnerabilityIdentifier! => Array | Identifiers of the vulnerability. |
...
...
ee/app/graphql/types/vulnerability_type.rb
View file @
28843ef0
...
...
@@ -71,6 +71,9 @@ module Types
field
:resolved_at
,
Types
::
TimeType
,
null:
true
,
description:
'Timestamp of when the vulnerability state was changed to resolved'
field
:dismissed_at
,
Types
::
TimeType
,
null:
true
,
description:
'Timestamp of when the vulnerability state was changed to dismissed'
def
user_notes_count
::
Gitlab
::
Graphql
::
Aggregations
::
Vulnerabilities
::
LazyUserNotesCountAggregate
.
new
(
context
,
object
)
end
...
...
ee/changelogs/unreleased/228740-add-dismissed-at-field.yml
0 → 100644
View file @
28843ef0
---
title
:
Add dismissed_at field to vulnerability in GraphQL
merge_request
:
49797
author
:
type
:
changed
ee/spec/graphql/types/vulnerability_type_spec.rb
View file @
28843ef0
...
...
@@ -26,6 +26,7 @@ RSpec.describe GitlabSchema.types['Vulnerability'] do
detected_at
confirmed_at
resolved_at
dismissed_at
notes
external_issue_links
discussions]
...
...
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