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 {
last: Int
): DiscussionConnection!
"""
Timestamp of when the vulnerability state was changed to dismissed
"""
dismissedAt: Time
"""
List of external issue links related to the vulnerability
"""
......
......@@ -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",
......@@ -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. |
......
......@@ -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
......
---
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
detected_at
confirmed_at
resolved_at
dismissed_at
notes
external_issue_links
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