Commit 964038cc authored by Jarka Košanová's avatar Jarka Košanová

Remove health status related code from epics

For epics we only want counts of issues statuses
parent 23a8677f
......@@ -1938,11 +1938,6 @@ type Epic implements Noteable {
"""
hasIssues: Boolean!
"""
Current health status. Available only when feature flag save_issuable_health_status is enabled.
"""
healthStatus: HealthStatus
"""
ID of the epic
"""
......@@ -7812,11 +7807,6 @@ input UpdateEpicInput {
"""
groupPath: ID!
"""
The desired health status
"""
healthStatus: HealthStatus
"""
The iid of the epic to mutate
"""
......
......@@ -24543,16 +24543,6 @@
},
"defaultValue": null
},
{
"name": "healthStatus",
"description": "The desired health status",
"type": {
"kind": "ENUM",
"name": "HealthStatus",
"ofType": null
},
"defaultValue": null
},
{
"name": "clientMutationId",
"description": "A unique identifier for the client performing the mutation.",
......
......@@ -307,7 +307,6 @@ Represents an epic.
| `group` | Group! | Group to which the epic belongs |
| `hasChildren` | Boolean! | Indicates if the epic has children |
| `hasIssues` | Boolean! | Indicates if the epic has direct issues |
| `healthStatus` | HealthStatus | Current health status. Available only when feature flag save_issuable_health_status is enabled. |
| `id` | ID! | ID of the epic |
| `iid` | ID! | Internal ID of the epic |
| `parent` | Epic | Parent epic of the epic |
......
......@@ -12,11 +12,6 @@ module Mutations
required: false,
description: 'State event for the epic'
argument :health_status,
::Types::HealthStatusEnum,
required: false,
description: 'The desired health status'
authorize :admin_epic
def resolve(args)
......
......@@ -137,11 +137,5 @@ module Types
closed_issues: -1
)
end
field :health_status,
::Types::HealthStatusEnum,
null: true,
description: 'Current health status',
feature_flag: :save_issuable_health_status
end
end
......@@ -15,7 +15,6 @@ module EE
include UsageStatistics
include FromUnion
include EpicTreeSorting
include HealthStatus
enum state_id: {
opened: ::Epic.available_states[:opened],
......
......@@ -11,7 +11,7 @@ describe GitlabSchema.types['Epic'] do
closed_at created_at updated_at children has_children has_issues
web_path web_url relation_path reference issues user_permissions
notes discussions relative_position subscribed participants
descendant_counts descendant_weight_sum upvotes downvotes health_status
descendant_counts descendant_weight_sum upvotes downvotes
]
end
......
......@@ -565,6 +565,4 @@ describe Epic do
end
it_behaves_like 'versioned description'
it_behaves_like 'having health status'
end
......@@ -134,9 +134,4 @@ describe Mutations::Epics::Update do
end
end
end
it_behaves_like 'updating health status' do
let(:resource) { epic }
let(:user) { current_user }
end
end
......@@ -297,10 +297,5 @@ describe Epics::UpdateService do
let(:issuable) { epic }
let(:parent) { group }
end
it_behaves_like 'updating issuable health status' do
let(:issuable) { epic }
let(:parent) { group }
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