Commit 7ef72c9e authored by Mark Chao's avatar Mark Chao

Merge branch '228740-add-confirmed-at' into 'master'

Add confirmed at field to vulnerability in GQL

See merge request gitlab-org/gitlab!49376
parents f5d816b8 dcf49473
......@@ -24605,6 +24605,11 @@ type VulnerabilitiesCountByDayEdge {
Represents a vulnerability
"""
type Vulnerability implements Noteable {
"""
Timestamp of when the vulnerability state was changed to confirmed
"""
confirmedAt: Time
"""
Description of the vulnerability
"""
......
......@@ -71715,6 +71715,20 @@
"name": "Vulnerability",
"description": "Represents a vulnerability",
"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",
"description": "Description of the vulnerability",
......@@ -3716,6 +3716,7 @@ Represents a vulnerability.
| Field | Type | Description |
| ----- | ---- | ----------- |
| `confirmedAt` | Time | Timestamp of when the vulnerability state was changed to confirmed |
| `description` | String | Description of the vulnerability |
| `detectedAt` | Time! | Timestamp of when the vulnerability was first detected |
| `discussions` | DiscussionConnection! | All discussions on this noteable |
......
......@@ -62,6 +62,10 @@ module Types
description: 'Timestamp of when the vulnerability was first detected',
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
::Gitlab::Graphql::Aggregations::Vulnerabilities::LazyUserNotesCountAggregate.new(context, object)
end
......
---
title: Add confirmed_at field to vulnerability in GraphQL
merge_request: 49376
author:
type: changed
......@@ -24,6 +24,7 @@ RSpec.describe GitlabSchema.types['Vulnerability'] do
project
issueLinks
detected_at
confirmed_at
notes
discussions]
end
......
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