Commit b9710b5c authored by Rémy Coutable's avatar Rémy Coutable

Merge branch '228740-add-dismissed-at-field' into 'master'

Add dismissed_at field to vulnerability in GraphQL

See merge request gitlab-org/gitlab!49797
parents 39847335 28843ef0
...@@ -24871,6 +24871,11 @@ type Vulnerability implements Noteable { ...@@ -24871,6 +24871,11 @@ type Vulnerability implements Noteable {
last: Int last: Int
): DiscussionConnection! ): DiscussionConnection!
"""
Timestamp of when the vulnerability state was changed to dismissed
"""
dismissedAt: Time
""" """
List of external issue links related to the vulnerability List of external issue links related to the vulnerability
""" """
......
...@@ -72394,6 +72394,20 @@ ...@@ -72394,6 +72394,20 @@
"isDeprecated": false, "isDeprecated": false,
"deprecationReason": null "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", "name": "externalIssueLinks",
"description": "List of external issue links related to the vulnerability", "description": "List of external issue links related to the vulnerability",
...@@ -3745,6 +3745,7 @@ Represents a vulnerability. ...@@ -3745,6 +3745,7 @@ Represents a vulnerability.
| `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 |
| `dismissedAt` | Time | Timestamp of when the vulnerability state was changed to dismissed |
| `externalIssueLinks` | VulnerabilityExternalIssueLinkConnection! | List of external issue links related to the vulnerability | | `externalIssueLinks` | VulnerabilityExternalIssueLinkConnection! | List of external issue links related to the vulnerability |
| `id` | ID! | GraphQL ID of the vulnerability | | `id` | ID! | GraphQL ID of the vulnerability |
| `identifiers` | VulnerabilityIdentifier! => Array | Identifiers of the vulnerability. | | `identifiers` | VulnerabilityIdentifier! => Array | Identifiers of the vulnerability. |
......
...@@ -71,6 +71,9 @@ module Types ...@@ -71,6 +71,9 @@ module Types
field :resolved_at, Types::TimeType, null: true, field :resolved_at, Types::TimeType, null: true,
description: 'Timestamp of when the vulnerability state was changed to resolved' 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 def user_notes_count
::Gitlab::Graphql::Aggregations::Vulnerabilities::LazyUserNotesCountAggregate.new(context, object) ::Gitlab::Graphql::Aggregations::Vulnerabilities::LazyUserNotesCountAggregate.new(context, object)
end end
......
---
title: Add dismissed_at field to vulnerability in GraphQL
merge_request: 49797
author:
type: changed
...@@ -26,6 +26,7 @@ RSpec.describe GitlabSchema.types['Vulnerability'] do ...@@ -26,6 +26,7 @@ RSpec.describe GitlabSchema.types['Vulnerability'] do
detected_at detected_at
confirmed_at confirmed_at
resolved_at resolved_at
dismissed_at
notes notes
external_issue_links external_issue_links
discussions] discussions]
......
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