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
fc9567f3
Commit
fc9567f3
authored
Sep 03, 2021
by
Luke Duncalfe
Committed by
Matthias Käppler
Sep 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Rubocop Graphql/Description offenses
parent
a398ec8e
Changes
35
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
35 changed files
with
174 additions
and
207 deletions
+174
-207
.rubocop_manual_todo.yml
.rubocop_manual_todo.yml
+0
-33
doc/api/graphql/reference/index.md
doc/api/graphql/reference/index.md
+96
-96
ee/app/graphql/mutations/epic_tree/reorder.rb
ee/app/graphql/mutations/epic_tree/reorder.rb
+1
-1
ee/app/graphql/mutations/epics/add_issue.rb
ee/app/graphql/mutations/epics/add_issue.rb
+3
-3
ee/app/graphql/mutations/epics/base.rb
ee/app/graphql/mutations/epics/base.rb
+3
-3
ee/app/graphql/mutations/epics/create.rb
ee/app/graphql/mutations/epics/create.rb
+1
-1
ee/app/graphql/mutations/epics/set_subscription.rb
ee/app/graphql/mutations/epics/set_subscription.rb
+1
-1
ee/app/graphql/mutations/gitlab_subscriptions/activate.rb
ee/app/graphql/mutations/gitlab_subscriptions/activate.rb
+1
-1
ee/app/graphql/mutations/incident_management/escalation_policy/base.rb
...l/mutations/incident_management/escalation_policy/base.rb
+1
-1
ee/app/graphql/mutations/incident_management/escalation_policy/create.rb
...mutations/incident_management/escalation_policy/create.rb
+4
-4
ee/app/graphql/mutations/incident_management/escalation_policy/destroy.rb
...utations/incident_management/escalation_policy/destroy.rb
+1
-1
ee/app/graphql/mutations/incident_management/escalation_policy/update.rb
...mutations/incident_management/escalation_policy/update.rb
+4
-4
ee/app/graphql/mutations/incident_management/oncall_rotation/base.rb
...hql/mutations/incident_management/oncall_rotation/base.rb
+1
-1
ee/app/graphql/mutations/incident_management/oncall_rotation/create.rb
...l/mutations/incident_management/oncall_rotation/create.rb
+8
-8
ee/app/graphql/mutations/incident_management/oncall_rotation/destroy.rb
.../mutations/incident_management/oncall_rotation/destroy.rb
+3
-3
ee/app/graphql/mutations/incident_management/oncall_rotation/update.rb
...l/mutations/incident_management/oncall_rotation/update.rb
+7
-7
ee/app/graphql/mutations/incident_management/oncall_schedule/create.rb
...l/mutations/incident_management/oncall_schedule/create.rb
+4
-4
ee/app/graphql/mutations/incident_management/oncall_schedule/destroy.rb
.../mutations/incident_management/oncall_schedule/destroy.rb
+2
-2
ee/app/graphql/mutations/incident_management/oncall_schedule/oncall_schedule_base.rb
...cident_management/oncall_schedule/oncall_schedule_base.rb
+1
-1
ee/app/graphql/mutations/incident_management/oncall_schedule/update.rb
...l/mutations/incident_management/oncall_schedule/update.rb
+5
-5
ee/app/graphql/mutations/issues/common_ee_mutation_arguments.rb
.../graphql/mutations/issues/common_ee_mutation_arguments.rb
+2
-2
ee/app/graphql/mutations/issues/promote_to_epic.rb
ee/app/graphql/mutations/issues/promote_to_epic.rb
+2
-2
ee/app/graphql/mutations/issues/set_iteration.rb
ee/app/graphql/mutations/issues/set_iteration.rb
+1
-1
ee/app/graphql/mutations/iterations/cadences/create.rb
ee/app/graphql/mutations/iterations/cadences/create.rb
+2
-2
ee/app/graphql/mutations/iterations/cadences/update.rb
ee/app/graphql/mutations/iterations/cadences/update.rb
+1
-1
ee/app/graphql/mutations/iterations/create.rb
ee/app/graphql/mutations/iterations/create.rb
+5
-5
ee/app/graphql/mutations/namespaces/base.rb
ee/app/graphql/mutations/namespaces/base.rb
+2
-2
ee/app/graphql/mutations/quality_management/test_cases/create.rb
...graphql/mutations/quality_management/test_cases/create.rb
+5
-5
ee/app/graphql/mutations/requirements_management/update_requirement.rb
...l/mutations/requirements_management/update_requirement.rb
+1
-1
ee/app/graphql/mutations/vulnerabilities/confirm.rb
ee/app/graphql/mutations/vulnerabilities/confirm.rb
+1
-1
ee/app/graphql/mutations/vulnerabilities/create_external_issue_link.rb
...l/mutations/vulnerabilities/create_external_issue_link.rb
+1
-1
ee/app/graphql/mutations/vulnerabilities/destroy_external_issue_link.rb
.../mutations/vulnerabilities/destroy_external_issue_link.rb
+1
-1
ee/app/graphql/mutations/vulnerabilities/dismiss.rb
ee/app/graphql/mutations/vulnerabilities/dismiss.rb
+1
-1
ee/app/graphql/mutations/vulnerabilities/resolve.rb
ee/app/graphql/mutations/vulnerabilities/resolve.rb
+1
-1
ee/app/graphql/mutations/vulnerabilities/revert_to_detected.rb
...p/graphql/mutations/vulnerabilities/revert_to_detected.rb
+1
-1
No files found.
.rubocop_manual_todo.yml
View file @
fc9567f3
...
...
@@ -23,39 +23,6 @@ Graphql/Descriptions:
-
'
ee/app/graphql/types/vulnerability_severity_enum.rb'
-
'
ee/app/graphql/types/vulnerability_state_enum.rb'
-
'
ee/app/graphql/types/vulnerability_confidence_enum.rb'
-
'
ee/app/graphql/mutations/epic_tree/reorder.rb'
-
'
ee/app/graphql/mutations/epics/add_issue.rb'
-
'
ee/app/graphql/mutations/epics/base.rb'
-
'
ee/app/graphql/mutations/epics/create.rb'
-
'
ee/app/graphql/mutations/epics/set_subscription.rb'
-
'
ee/app/graphql/mutations/gitlab_subscriptions/activate.rb'
-
'
ee/app/graphql/mutations/incident_management/escalation_policy/base.rb'
-
'
ee/app/graphql/mutations/incident_management/escalation_policy/create.rb'
-
'
ee/app/graphql/mutations/incident_management/escalation_policy/destroy.rb'
-
'
ee/app/graphql/mutations/incident_management/escalation_policy/update.rb'
-
'
ee/app/graphql/mutations/incident_management/oncall_rotation/base.rb'
-
'
ee/app/graphql/mutations/incident_management/oncall_rotation/create.rb'
-
'
ee/app/graphql/mutations/incident_management/oncall_rotation/destroy.rb'
-
'
ee/app/graphql/mutations/incident_management/oncall_rotation/update.rb'
-
'
ee/app/graphql/mutations/incident_management/oncall_schedule/create.rb'
-
'
ee/app/graphql/mutations/incident_management/oncall_schedule/destroy.rb'
-
'
ee/app/graphql/mutations/incident_management/oncall_schedule/oncall_schedule_base.rb'
-
'
ee/app/graphql/mutations/incident_management/oncall_schedule/update.rb'
-
'
ee/app/graphql/mutations/issues/common_ee_mutation_arguments.rb'
-
'
ee/app/graphql/mutations/issues/promote_to_epic.rb'
-
'
ee/app/graphql/mutations/issues/set_iteration.rb'
-
'
ee/app/graphql/mutations/iterations/cadences/create.rb'
-
'
ee/app/graphql/mutations/iterations/cadences/update.rb'
-
'
ee/app/graphql/mutations/iterations/create.rb'
-
'
ee/app/graphql/mutations/namespaces/base.rb'
-
'
ee/app/graphql/mutations/quality_management/test_cases/create.rb'
-
'
ee/app/graphql/mutations/requirements_management/update_requirement.rb'
-
'
ee/app/graphql/mutations/vulnerabilities/confirm.rb'
-
'
ee/app/graphql/mutations/vulnerabilities/create_external_issue_link.rb'
-
'
ee/app/graphql/mutations/vulnerabilities/destroy_external_issue_link.rb'
-
'
ee/app/graphql/mutations/vulnerabilities/dismiss.rb'
-
'
ee/app/graphql/mutations/vulnerabilities/resolve.rb'
-
'
ee/app/graphql/mutations/vulnerabilities/revert_to_detected.rb'
-
'
ee/app/graphql/resolvers/dora_metrics_resolver.rb'
-
'
ee/app/graphql/resolvers/geo/geo_node_resolver.rb'
-
'
ee/app/graphql/resolvers/network_policy_resolver.rb'
...
...
doc/api/graphql/reference/index.md
View file @
fc9567f3
This diff is collapsed.
Click to expand it.
ee/app/graphql/mutations/epic_tree/reorder.rb
View file @
fc9567f3
...
...
@@ -10,7 +10,7 @@ module Mutations
argument
:base_epic_id
,
::
Types
::
GlobalIDType
[
::
Epic
],
required:
true
,
description:
'
The
ID of the base epic of the tree.'
description:
'ID of the base epic of the tree.'
argument
:moved
,
Types
::
EpicTree
::
EpicTreeNodeInputType
,
...
...
ee/app/graphql/mutations/epics/add_issue.rb
View file @
fc9567f3
...
...
@@ -11,16 +11,16 @@ module Mutations
argument
:project_path
,
GraphQL
::
Types
::
ID
,
required:
true
,
description:
'
The f
ull path of the project the issue belongs to.'
description:
'
F
ull path of the project the issue belongs to.'
argument
:issue_iid
,
GraphQL
::
Types
::
String
,
required:
true
,
description:
'
The
IID of the issue to be added.'
description:
'IID of the issue to be added.'
field
:epic_issue
,
Types
::
EpicIssueType
,
null:
true
,
description:
'
The epic-issue relation
.'
description:
'
Epic-issue relationship
.'
def
resolve
(
group_path
:,
iid
:,
project_path
:,
issue_iid
:)
epic
=
authorized_find!
(
group_path:
group_path
,
iid:
iid
)
...
...
ee/app/graphql/mutations/epics/base.rb
View file @
fc9567f3
...
...
@@ -7,16 +7,16 @@ module Mutations
argument
:iid
,
GraphQL
::
Types
::
ID
,
required:
true
,
description:
"
The
IID of the epic to mutate."
description:
"IID of the epic to mutate."
argument
:group_path
,
GraphQL
::
Types
::
ID
,
required:
true
,
description:
'
The g
roup the epic to mutate belongs to.'
description:
'
G
roup the epic to mutate belongs to.'
field
:epic
,
Types
::
EpicType
,
null:
true
,
description:
'
The e
pic after mutation.'
description:
'
E
pic after mutation.'
private
...
...
ee/app/graphql/mutations/epics/create.rb
View file @
fc9567f3
...
...
@@ -13,7 +13,7 @@ module Mutations
field
:epic
,
Types
::
EpicType
,
null:
true
,
description:
'
The c
reated epic.'
description:
'
C
reated epic.'
def
resolve
(
args
)
group_path
=
args
.
delete
(
:group_path
)
...
...
ee/app/graphql/mutations/epics/set_subscription.rb
View file @
fc9567f3
...
...
@@ -9,7 +9,7 @@ module Mutations
argument
:subscribed_state
,
GraphQL
::
Types
::
Boolean
,
required:
true
,
description:
'
The d
esired state of the subscription.'
description:
'
D
esired state of the subscription.'
def
resolve
(
args
)
group_path
=
args
.
delete
(
:group_path
)
...
...
ee/app/graphql/mutations/gitlab_subscriptions/activate.rb
View file @
fc9567f3
...
...
@@ -13,7 +13,7 @@ module Mutations
field
:license
,
Types
::
Admin
::
CloudLicenses
::
CurrentLicenseType
,
null:
true
,
description:
'
The c
urrent license.'
description:
'
C
urrent license.'
def
resolve
(
activation_code
:)
authorize!
:global
...
...
ee/app/graphql/mutations/incident_management/escalation_policy/base.rb
View file @
fc9567f3
...
...
@@ -7,7 +7,7 @@ module Mutations
field
:escalation_policy
,
::
Types
::
IncidentManagement
::
EscalationPolicyType
,
null:
true
,
description:
'
The e
scalation policy.'
description:
'
E
scalation policy.'
authorize
:admin_incident_management_escalation_policy
...
...
ee/app/graphql/mutations/incident_management/escalation_policy/create.rb
View file @
fc9567f3
...
...
@@ -10,19 +10,19 @@ module Mutations
argument
:project_path
,
GraphQL
::
Types
::
ID
,
required:
true
,
description:
'
The p
roject to create the escalation policy for.'
description:
'
P
roject to create the escalation policy for.'
argument
:name
,
GraphQL
::
Types
::
String
,
required:
true
,
description:
'
The n
ame of the escalation policy.'
description:
'
N
ame of the escalation policy.'
argument
:description
,
GraphQL
::
Types
::
String
,
required:
false
,
description:
'
The d
escription of the escalation policy.'
description:
'
D
escription of the escalation policy.'
argument
:rules
,
[
Types
::
IncidentManagement
::
EscalationRuleInputType
],
required:
true
,
description:
'
The s
teps of the escalation policy.'
description:
'
S
teps of the escalation policy.'
def
resolve
(
project_path
:,
**
args
)
project
=
authorized_find!
(
project_path:
project_path
,
**
args
)
...
...
ee/app/graphql/mutations/incident_management/escalation_policy/destroy.rb
View file @
fc9567f3
...
...
@@ -8,7 +8,7 @@ module Mutations
argument
:id
,
Types
::
GlobalIDType
[
::
IncidentManagement
::
EscalationPolicy
],
required:
true
,
description:
'
The e
scalation policy internal ID to remove.'
description:
'
E
scalation policy internal ID to remove.'
def
resolve
(
id
:)
escalation_policy
=
authorized_find!
(
id:
id
)
...
...
ee/app/graphql/mutations/incident_management/escalation_policy/update.rb
View file @
fc9567f3
...
...
@@ -8,19 +8,19 @@ module Mutations
argument
:id
,
::
Types
::
GlobalIDType
[
::
IncidentManagement
::
EscalationPolicy
],
required:
true
,
description:
'
The
ID of the on-call schedule to create the on-call rotation in.'
description:
'ID of the on-call schedule to create the on-call rotation in.'
argument
:name
,
GraphQL
::
Types
::
String
,
required:
false
,
description:
'
The n
ame of the escalation policy.'
description:
'
N
ame of the escalation policy.'
argument
:description
,
GraphQL
::
Types
::
String
,
required:
false
,
description:
'
The d
escription of the escalation policy.'
description:
'
D
escription of the escalation policy.'
argument
:rules
,
[
Types
::
IncidentManagement
::
EscalationRuleInputType
],
required:
false
,
description:
'
The s
teps of the escalation policy.'
description:
'
S
teps of the escalation policy.'
def
resolve
(
id
:,
**
args
)
policy
=
authorized_find!
(
id:
id
)
...
...
ee/app/graphql/mutations/incident_management/oncall_rotation/base.rb
View file @
fc9567f3
...
...
@@ -10,7 +10,7 @@ module Mutations
field
:oncall_rotation
,
::
Types
::
IncidentManagement
::
OncallRotationType
,
null:
true
,
description:
'
The o
n-call rotation.'
description:
'
O
n-call rotation.'
authorize
:admin_incident_management_oncall_schedule
...
...
ee/app/graphql/mutations/incident_management/oncall_rotation/create.rb
View file @
fc9567f3
...
...
@@ -10,37 +10,37 @@ module Mutations
argument
:project_path
,
GraphQL
::
Types
::
ID
,
required:
true
,
description:
'
The p
roject to create the on-call schedule in.'
description:
'
P
roject to create the on-call schedule in.'
argument
:schedule_iid
,
GraphQL
::
Types
::
String
,
required:
true
,
description:
'
The
IID of the on-call schedule to create the on-call rotation in.'
,
description:
'IID of the on-call schedule to create the on-call rotation in.'
,
as: :iid
argument
:name
,
GraphQL
::
Types
::
String
,
required:
true
,
description:
'
The n
ame of the on-call rotation.'
description:
'
N
ame of the on-call rotation.'
argument
:starts_at
,
Types
::
IncidentManagement
::
OncallRotationDateInputType
,
required:
true
,
description:
'
The s
tart date and time of the on-call rotation, in the timezone of the on-call schedule.'
description:
'
S
tart date and time of the on-call rotation, in the timezone of the on-call schedule.'
argument
:ends_at
,
Types
::
IncidentManagement
::
OncallRotationDateInputType
,
required:
false
,
description:
'
The e
nd date and time of the on-call rotation, in the timezone of the on-call schedule.'
description:
'
E
nd date and time of the on-call rotation, in the timezone of the on-call schedule.'
argument
:rotation_length
,
Types
::
IncidentManagement
::
OncallRotationLengthInputType
,
required:
true
,
description:
'
The r
otation length of the on-call rotation.'
description:
'
R
otation length of the on-call rotation.'
argument
:active_period
,
Types
::
IncidentManagement
::
OncallRotationActivePeriodInputType
,
required:
false
,
description:
'
The a
ctive period of time that the on-call rotation should take place.'
description:
'
A
ctive period of time that the on-call rotation should take place.'
argument
:participants
,
[
Types
::
IncidentManagement
::
OncallUserInputType
],
required:
true
,
description:
'
The u
sernames of users participating in the on-call rotation. A maximum limit of 100 participants applies.'
description:
'
U
sernames of users participating in the on-call rotation. A maximum limit of 100 participants applies.'
def
resolve
(
iid
:,
project_path
:,
participants
:,
**
args
)
project
=
Project
.
find_by_full_path
(
project_path
)
...
...
ee/app/graphql/mutations/incident_management/oncall_rotation/destroy.rb
View file @
fc9567f3
...
...
@@ -8,15 +8,15 @@ module Mutations
argument
:project_path
,
GraphQL
::
Types
::
ID
,
required:
true
,
description:
'
The p
roject to remove the on-call schedule from.'
description:
'
P
roject to remove the on-call schedule from.'
argument
:schedule_iid
,
GraphQL
::
Types
::
String
,
required:
true
,
description:
'
The
IID of the on-call schedule to the on-call rotation belongs to.'
description:
'IID of the on-call schedule to the on-call rotation belongs to.'
argument
:id
,
Types
::
GlobalIDType
[
::
IncidentManagement
::
OncallRotation
],
required:
true
,
description:
'
The
ID of the on-call rotation to remove.'
description:
'ID of the on-call rotation to remove.'
def
resolve
(
project_path
:,
schedule_iid
:,
id
:)
oncall_rotation
=
authorized_find!
(
project_path:
project_path
,
schedule_iid:
schedule_iid
,
id:
id
)
...
...
ee/app/graphql/mutations/incident_management/oncall_rotation/update.rb
View file @
fc9567f3
...
...
@@ -10,32 +10,32 @@ module Mutations
argument
:id
,
::
Types
::
GlobalIDType
[
::
IncidentManagement
::
OncallRotation
],
required:
true
,
description:
'
The
ID of the on-call schedule to create the on-call rotation in.'
description:
'ID of the on-call schedule to create the on-call rotation in.'
argument
:name
,
GraphQL
::
Types
::
String
,
required:
false
,
description:
'
The n
ame of the on-call rotation.'
description:
'
N
ame of the on-call rotation.'
argument
:starts_at
,
Types
::
IncidentManagement
::
OncallRotationDateInputType
,
required:
false
,
description:
'
The s
tart date and time of the on-call rotation, in the timezone of the on-call schedule.'
description:
'
S
tart date and time of the on-call rotation, in the timezone of the on-call schedule.'
argument
:ends_at
,
Types
::
IncidentManagement
::
OncallRotationDateInputType
,
required:
false
,
description:
'
The e
nd date and time of the on-call rotation, in the timezone of the on-call schedule.'
description:
'
E
nd date and time of the on-call rotation, in the timezone of the on-call schedule.'
argument
:rotation_length
,
Types
::
IncidentManagement
::
OncallRotationLengthInputType
,
required:
false
,
description:
'
The r
otation length of the on-call rotation.'
description:
'
R
otation length of the on-call rotation.'
argument
:active_period
,
Types
::
IncidentManagement
::
OncallRotationActivePeriodInputType
,
required:
false
,
description:
'
The a
ctive period of time that the on-call rotation should take place.'
description:
'
A
ctive period of time that the on-call rotation should take place.'
argument
:participants
,
[
Types
::
IncidentManagement
::
OncallUserInputType
],
required:
false
,
description:
'
The u
sernames of users participating in the on-call rotation. A maximum limit of 100 participants applies.'
description:
'
U
sernames of users participating in the on-call rotation. A maximum limit of 100 participants applies.'
def
resolve
(
id
:,
**
args
)
rotation
=
authorized_find!
(
id:
id
)
...
...
ee/app/graphql/mutations/incident_management/oncall_schedule/create.rb
View file @
fc9567f3
...
...
@@ -10,19 +10,19 @@ module Mutations
argument
:project_path
,
GraphQL
::
Types
::
ID
,
required:
true
,
description:
'
The p
roject to create the on-call schedule in.'
description:
'
P
roject to create the on-call schedule in.'
argument
:name
,
GraphQL
::
Types
::
String
,
required:
true
,
description:
'
The n
ame of the on-call schedule.'
description:
'
N
ame of the on-call schedule.'
argument
:description
,
GraphQL
::
Types
::
String
,
required:
false
,
description:
'
The d
escription of the on-call schedule.'
description:
'
D
escription of the on-call schedule.'
argument
:timezone
,
GraphQL
::
Types
::
String
,
required:
true
,
description:
'T
he t
imezone of the on-call schedule.'
description:
'Timezone of the on-call schedule.'
def
resolve
(
args
)
project
=
authorized_find!
(
args
[
:project_path
])
...
...
ee/app/graphql/mutations/incident_management/oncall_schedule/destroy.rb
View file @
fc9567f3
...
...
@@ -8,11 +8,11 @@ module Mutations
argument
:project_path
,
GraphQL
::
Types
::
ID
,
required:
true
,
description:
'
The p
roject to remove the on-call schedule from.'
description:
'
P
roject to remove the on-call schedule from.'
argument
:iid
,
GraphQL
::
Types
::
String
,
required:
true
,
description:
'
The o
n-call schedule internal ID to remove.'
description:
'
O
n-call schedule internal ID to remove.'
def
resolve
(
project_path
:,
iid
:)
oncall_schedule
=
authorized_find!
(
project_path:
project_path
,
iid:
iid
)
...
...
ee/app/graphql/mutations/incident_management/oncall_schedule/oncall_schedule_base.rb
View file @
fc9567f3
...
...
@@ -7,7 +7,7 @@ module Mutations
field
:oncall_schedule
,
::
Types
::
IncidentManagement
::
OncallScheduleType
,
null:
true
,
description:
'
The o
n-call schedule.'
description:
'
O
n-call schedule.'
authorize
:admin_incident_management_oncall_schedule
...
...
ee/app/graphql/mutations/incident_management/oncall_schedule/update.rb
View file @
fc9567f3
...
...
@@ -8,23 +8,23 @@ module Mutations
argument
:project_path
,
GraphQL
::
Types
::
ID
,
required:
true
,
description:
'
The p
roject to update the on-call schedule in.'
description:
'
P
roject to update the on-call schedule in.'
argument
:iid
,
GraphQL
::
Types
::
String
,
required:
true
,
description:
'
The o
n-call schedule internal ID to update.'
description:
'
O
n-call schedule internal ID to update.'
argument
:name
,
GraphQL
::
Types
::
String
,
required:
false
,
description:
'
The n
ame of the on-call schedule.'
description:
'
N
ame of the on-call schedule.'
argument
:description
,
GraphQL
::
Types
::
String
,
required:
false
,
description:
'
The d
escription of the on-call schedule.'
description:
'
D
escription of the on-call schedule.'
argument
:timezone
,
GraphQL
::
Types
::
String
,
required:
false
,
description:
'T
he t
imezone of the on-call schedule.'
description:
'Timezone of the on-call schedule.'
def
resolve
(
args
)
oncall_schedule
=
authorized_find!
(
project_path:
args
[
:project_path
],
iid:
args
[
:iid
])
...
...
ee/app/graphql/mutations/issues/common_ee_mutation_arguments.rb
View file @
fc9567f3
...
...
@@ -9,11 +9,11 @@ module Mutations
argument
:health_status
,
::
Types
::
HealthStatusEnum
,
required:
false
,
description:
'
The d
esired health status.'
description:
'
D
esired health status.'
argument
:weight
,
GraphQL
::
Types
::
Int
,
required:
false
,
description:
'
The w
eight of the issue.'
description:
'
W
eight of the issue.'
end
end
end
...
...
ee/app/graphql/mutations/issues/promote_to_epic.rb
View file @
fc9567f3
...
...
@@ -9,12 +9,12 @@ module Mutations
argument
:group_path
,
GraphQL
::
Types
::
ID
,
required:
false
,
description:
'
The g
roup the promoted epic will belong to.'
description:
'
G
roup the promoted epic will belong to.'
field
:epic
,
Types
::
EpicType
,
null:
true
,
description:
"
The e
pic after issue promotion."
description:
"
E
pic after issue promotion."
def
resolve
(
project_path
:,
iid
:,
group_path:
nil
)
errors
=
[]
...
...
ee/app/graphql/mutations/issues/set_iteration.rb
View file @
fc9567f3
...
...
@@ -10,7 +10,7 @@ module Mutations
required:
false
,
loads:
Types
::
IterationType
,
description:
<<~
DESC
The i
teration to assign to the issue.
I
teration to assign to the issue.
DESC
def
resolve
(
project_path
:,
iid
:,
iteration:
nil
)
...
...
ee/app/graphql/mutations/iterations/cadences/create.rb
View file @
fc9567f3
...
...
@@ -11,7 +11,7 @@ module Mutations
authorize
:create_iteration_cadence
argument
:group_path
,
GraphQL
::
Types
::
ID
,
required:
true
,
description:
"
The g
roup where the iteration cadence is created."
description:
"
G
roup where the iteration cadence is created."
argument
:title
,
GraphQL
::
Types
::
String
,
required:
false
,
description:
copy_field_description
(
Types
::
Iterations
::
CadenceType
,
:title
)
...
...
@@ -38,7 +38,7 @@ module Mutations
description:
copy_field_description
(
Types
::
Iterations
::
CadenceType
,
:description
)
field
:iteration_cadence
,
Types
::
Iterations
::
CadenceType
,
null:
true
,
description:
'
The c
reated iteration cadence.'
description:
'
C
reated iteration cadence.'
def
resolve
(
args
)
group
=
authorized_find!
(
group_path:
args
.
delete
(
:group_path
))
...
...
ee/app/graphql/mutations/iterations/cadences/update.rb
View file @
fc9567f3
...
...
@@ -36,7 +36,7 @@ module Mutations
description:
copy_field_description
(
Types
::
Iterations
::
CadenceType
,
:description
)
field
:iteration_cadence
,
Types
::
Iterations
::
CadenceType
,
null:
true
,
description:
'
The u
pdated iteration cadence.'
description:
'
U
pdated iteration cadence.'
def
resolve
(
id
:,
**
attrs
)
iteration_cadence
=
authorized_find!
(
id:
id
)
...
...
ee/app/graphql/mutations/iterations/create.rb
View file @
fc9567f3
...
...
@@ -12,7 +12,7 @@ module Mutations
field
:iteration
,
Types
::
IterationType
,
null:
true
,
description:
'
The c
reated iteration.'
description:
'
C
reated iteration.'
argument
:iterations_cadence_id
,
::
Types
::
GlobalIDType
[
::
Iterations
::
Cadence
],
...
...
@@ -23,22 +23,22 @@ module Mutations
argument
:title
,
GraphQL
::
Types
::
String
,
required:
false
,
description:
'T
he t
itle of the iteration.'
description:
'Title of the iteration.'
argument
:description
,
GraphQL
::
Types
::
String
,
required:
false
,
description:
'
The d
escription of the iteration.'
description:
'
D
escription of the iteration.'
argument
:start_date
,
GraphQL
::
Types
::
String
,
required:
false
,
description:
'
The s
tart date of the iteration.'
description:
'
S
tart date of the iteration.'
argument
:due_date
,
GraphQL
::
Types
::
String
,
required:
false
,
description:
'
The e
nd date of the iteration.'
description:
'
E
nd date of the iteration.'
def
resolve
(
args
)
parent
=
authorized_resource_parent_find!
(
args
)
...
...
ee/app/graphql/mutations/namespaces/base.rb
View file @
fc9567f3
...
...
@@ -5,12 +5,12 @@ module Mutations
class
Base
<
::
Mutations
::
BaseMutation
argument
:id
,
::
Types
::
GlobalIDType
[
::
Namespace
],
required:
true
,
description:
'
The g
lobal ID of the namespace to mutate.'
description:
'
G
lobal ID of the namespace to mutate.'
field
:namespace
,
Types
::
NamespaceType
,
null:
true
,
description:
'
The n
amespace after mutation.'
description:
'
N
amespace after mutation.'
private
...
...
ee/app/graphql/mutations/quality_management/test_cases/create.rb
View file @
fc9567f3
...
...
@@ -12,24 +12,24 @@ module Mutations
argument
:title
,
GraphQL
::
Types
::
String
,
required:
true
,
description:
'T
he t
est case title.'
description:
'Test case title.'
argument
:description
,
GraphQL
::
Types
::
String
,
required:
false
,
description:
'T
he t
est case description.'
description:
'Test case description.'
argument
:label_ids
,
[
GraphQL
::
Types
::
ID
],
required:
false
,
description:
'
The
IDs of labels to be added to the test case.'
description:
'IDs of labels to be added to the test case.'
argument
:project_path
,
GraphQL
::
Types
::
ID
,
required:
true
,
description:
'
The project full path to create the test case
.'
description:
'
Project full path to create the test case in
.'
field
:test_case
,
Types
::
IssueType
,
null:
true
,
description:
'T
he t
est case created.'
description:
'Test case created.'
def
resolve
(
args
)
project_path
=
args
.
delete
(
:project_path
)
...
...
ee/app/graphql/mutations/requirements_management/update_requirement.rb
View file @
fc9567f3
...
...
@@ -13,7 +13,7 @@ module Mutations
argument
:iid
,
GraphQL
::
Types
::
String
,
required:
true
,
description:
'
The
IID of the requirement to update.'
description:
'IID of the requirement to update.'
argument
:last_test_report_state
,
Types
::
RequirementsManagement
::
TestReportStateEnum
,
required:
false
,
...
...
ee/app/graphql/mutations/vulnerabilities/confirm.rb
View file @
fc9567f3
...
...
@@ -9,7 +9,7 @@ module Mutations
field
:vulnerability
,
Types
::
VulnerabilityType
,
null:
true
,
description:
'
The v
ulnerability after state change.'
description:
'
V
ulnerability after state change.'
argument
:id
,
::
Types
::
GlobalIDType
[
::
Vulnerability
],
...
...
ee/app/graphql/mutations/vulnerabilities/create_external_issue_link.rb
View file @
fc9567f3
...
...
@@ -9,7 +9,7 @@ module Mutations
field
:external_issue_link
,
Types
::
Vulnerability
::
ExternalIssueLinkType
,
null:
true
,
description:
'
The c
reated external issue link.'
description:
'
C
reated external issue link.'
argument
:id
,
::
Types
::
GlobalIDType
[
::
Vulnerability
],
...
...
ee/app/graphql/mutations/vulnerabilities/destroy_external_issue_link.rb
View file @
fc9567f3
...
...
@@ -11,7 +11,7 @@ module Mutations
argument
:id
,
::
Types
::
GlobalIDType
[
::
Vulnerabilities
::
ExternalIssueLink
],
required:
true
,
description:
'
The g
lobal ID of the vulnerability external issue link.'
description:
'
G
lobal ID of the vulnerability external issue link.'
def
resolve
(
id
:)
vulnerability_external_issue_link
=
authorized_find!
(
id:
id
)
...
...
ee/app/graphql/mutations/vulnerabilities/dismiss.rb
View file @
fc9567f3
...
...
@@ -9,7 +9,7 @@ module Mutations
field
:vulnerability
,
Types
::
VulnerabilityType
,
null:
true
,
description:
'
The v
ulnerability after dismissal.'
description:
'
V
ulnerability after dismissal.'
argument
:id
,
::
Types
::
GlobalIDType
[
::
Vulnerability
],
...
...
ee/app/graphql/mutations/vulnerabilities/resolve.rb
View file @
fc9567f3
...
...
@@ -9,7 +9,7 @@ module Mutations
field
:vulnerability
,
Types
::
VulnerabilityType
,
null:
true
,
description:
'
The v
ulnerability after state change.'
description:
'
V
ulnerability after state change.'
argument
:id
,
::
Types
::
GlobalIDType
[
::
Vulnerability
],
...
...
ee/app/graphql/mutations/vulnerabilities/revert_to_detected.rb
View file @
fc9567f3
...
...
@@ -9,7 +9,7 @@ module Mutations
field
:vulnerability
,
Types
::
VulnerabilityType
,
null:
true
,
description:
'
The v
ulnerability after revert.'
description:
'
V
ulnerability after revert.'
argument
:id
,
::
Types
::
GlobalIDType
[
::
Vulnerability
],
...
...
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