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