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