Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
964038cc
Commit
964038cc
authored
Feb 28, 2020
by
Jarka Košanová
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove health status related code from epics
For epics we only want counts of issues statuses
parent
23a8677f
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
1 addition
and
46 deletions
+1
-46
doc/api/graphql/reference/gitlab_schema.graphql
doc/api/graphql/reference/gitlab_schema.graphql
+0
-10
doc/api/graphql/reference/gitlab_schema.json
doc/api/graphql/reference/gitlab_schema.json
+0
-10
doc/api/graphql/reference/index.md
doc/api/graphql/reference/index.md
+0
-1
ee/app/graphql/mutations/epics/update.rb
ee/app/graphql/mutations/epics/update.rb
+0
-5
ee/app/graphql/types/epic_type.rb
ee/app/graphql/types/epic_type.rb
+0
-6
ee/app/models/ee/epic.rb
ee/app/models/ee/epic.rb
+0
-1
ee/spec/graphql/types/epic_type_spec.rb
ee/spec/graphql/types/epic_type_spec.rb
+1
-1
ee/spec/models/epic_spec.rb
ee/spec/models/epic_spec.rb
+0
-2
ee/spec/requests/api/graphql/mutations/epics/update_spec.rb
ee/spec/requests/api/graphql/mutations/epics/update_spec.rb
+0
-5
ee/spec/services/epics/update_service_spec.rb
ee/spec/services/epics/update_service_spec.rb
+0
-5
No files found.
doc/api/graphql/reference/gitlab_schema.graphql
View file @
964038cc
...
...
@@ -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
"""
...
...
doc/api/graphql/reference/gitlab_schema.json
View file @
964038cc
...
...
@@ -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."
,
...
...
doc/api/graphql/reference/index.md
View file @
964038cc
...
...
@@ -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 |
...
...
ee/app/graphql/mutations/epics/update.rb
View file @
964038cc
...
...
@@ -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
)
...
...
ee/app/graphql/types/epic_type.rb
View file @
964038cc
...
...
@@ -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
ee/app/models/ee/epic.rb
View file @
964038cc
...
...
@@ -15,7 +15,6 @@ module EE
include
UsageStatistics
include
FromUnion
include
EpicTreeSorting
include
HealthStatus
enum
state_id:
{
opened:
::
Epic
.
available_states
[
:opened
],
...
...
ee/spec/graphql/types/epic_type_spec.rb
View file @
964038cc
...
...
@@ -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
...
...
ee/spec/models/epic_spec.rb
View file @
964038cc
...
...
@@ -565,6 +565,4 @@ describe Epic do
end
it_behaves_like
'versioned description'
it_behaves_like
'having health status'
end
ee/spec/requests/api/graphql/mutations/epics/update_spec.rb
View file @
964038cc
...
...
@@ -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
ee/spec/services/epics/update_service_spec.rb
View file @
964038cc
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment