Commit dfec1e2d authored by Jonathan Schafer's avatar Jonathan Schafer

Add descriptions to GraphQL documentation

parent 8ea9b0e2
......@@ -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'
......
......@@ -14571,9 +14571,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