Commit b7628666 authored by Dylan Griffith's avatar Dylan Griffith

Merge branch '299489-over-10-of-graphql-descriptions-are-missing-health-status' into 'master'

Add descriptions for HealthStatus

See merge request gitlab-org/gitlab!65886
parents 0f7ff2a9 dfec1e2d
......@@ -13,7 +13,6 @@
# WIP See https://gitlab.com/gitlab-org/gitlab/-/issues/322903
Graphql/Descriptions:
Exclude:
- 'ee/app/graphql/types/health_status_enum.rb'
- 'ee/app/graphql/types/iteration_state_enum.rb'
- 'ee/app/graphql/types/requirements_management/requirement_state_enum.rb'
- 'ee/app/graphql/types/requirements_management/test_report_state_enum.rb'
......
......@@ -14595,9 +14595,9 @@ Health status of an issue or epic.
| Value | Description |
| ----- | ----------- |
| <a id="healthstatusatrisk"></a>`atRisk` | |
| <a id="healthstatusneedsattention"></a>`needsAttention` | |
| <a id="healthstatusontrack"></a>`onTrack` | |
| <a id="healthstatusatrisk"></a>`atRisk` | At risk. |
| <a id="healthstatusneedsattention"></a>`needsAttention` | Needs attention. |
| <a id="healthstatusontrack"></a>`onTrack` | On track. |
### `IssuableSearchableField`
......
......@@ -5,8 +5,8 @@ module Types
graphql_name 'HealthStatus'
description 'Health status of an issue or epic'
value 'onTrack', value: Issue.health_statuses.key(1)
value 'needsAttention', value: Issue.health_statuses.key(2)
value 'atRisk', value: Issue.health_statuses.key(3)
Issue.health_statuses.each do |status, val|
value status.camelize(:lower), description: status.humanize, value: status
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