Commit d62ccc1e authored by Bob Van Landuyt's avatar Bob Van Landuyt

Merge branch 'doc/330260-rename-detected-to-needs-triage' into 'master'

Amend docs for Vulnerability status values

See merge request gitlab-org/gitlab!77548
parents 7d44bae2 56747884
...@@ -17690,10 +17690,10 @@ The state of the vulnerability. ...@@ -17690,10 +17690,10 @@ The state of the vulnerability.
| Value | Description | | Value | Description |
| ----- | ----------- | | ----- | ----------- |
| <a id="vulnerabilitystateconfirmed"></a>`CONFIRMED` | Confirmed vulnerability. | | <a id="vulnerabilitystateconfirmed"></a>`CONFIRMED` | For details, see [vulnerability status values](https://docs.gitlab.com/ee/user/application_security/vulnerabilities/index.html#vulnerability-status-values). |
| <a id="vulnerabilitystatedetected"></a>`DETECTED` | Detected vulnerability. | | <a id="vulnerabilitystatedetected"></a>`DETECTED` | For details, see [vulnerability status values](https://docs.gitlab.com/ee/user/application_security/vulnerabilities/index.html#vulnerability-status-values). |
| <a id="vulnerabilitystatedismissed"></a>`DISMISSED` | Dismissed vulnerability. | | <a id="vulnerabilitystatedismissed"></a>`DISMISSED` | For details, see [vulnerability status values](https://docs.gitlab.com/ee/user/application_security/vulnerabilities/index.html#vulnerability-status-values). |
| <a id="vulnerabilitystateresolved"></a>`RESOLVED` | Resolved vulnerability. | | <a id="vulnerabilitystateresolved"></a>`RESOLVED` | For details, see [vulnerability status values](https://docs.gitlab.com/ee/user/application_security/vulnerabilities/index.html#vulnerability-status-values). |
### `WeightWildcardId` ### `WeightWildcardId`
...@@ -37,7 +37,7 @@ A vulnerability's status can be one of the following: ...@@ -37,7 +37,7 @@ A vulnerability's status can be one of the following:
| Status | Description | | Status | Description |
|:----------|:------------| |:----------|:------------|
| Detected | The default state for a newly discovered vulnerability. | | Detected | The default state for a newly discovered vulnerability. Appears as "Needs triage" in the UI. |
| Confirmed | A user has seen this vulnerability and confirmed it to be accurate. | | Confirmed | A user has seen this vulnerability and confirmed it to be accurate. |
| Dismissed | A user has seen this vulnerability and dismissed it because it is not accurate or otherwise not to be resolved. | | Dismissed | A user has seen this vulnerability and dismissed it because it is not accurate or otherwise not to be resolved. |
| Resolved | The vulnerability has been fixed or is no longer present. | | Resolved | The vulnerability has been fixed or is no longer present. |
......
...@@ -5,8 +5,13 @@ module Types ...@@ -5,8 +5,13 @@ module Types
graphql_name 'VulnerabilityState' graphql_name 'VulnerabilityState'
description 'The state of the vulnerability' description 'The state of the vulnerability'
::Vulnerability.states.keys.each do |state| # FIXME: https://gitlab.com/gitlab-org/gitlab/-/issues/350109
value state.to_s.upcase, value: state.to_s, description: "#{state.to_s.titleize} vulnerability" DESCRIPTION_TEXT = 'For details, see [vulnerability status values]' \
end '(https://docs.gitlab.com/ee/user/application_security/vulnerabilities/index.html#vulnerability-status-values).'
value 'CONFIRMED', value: 'confirmed', description: DESCRIPTION_TEXT
value 'DETECTED', value: 'detected', description: DESCRIPTION_TEXT
value 'DISMISSED', value: 'dismissed', description: DESCRIPTION_TEXT
value 'RESOLVED', value: 'resolved', description: DESCRIPTION_TEXT
end end
end 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