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
8c7c1a3b
Commit
8c7c1a3b
authored
May 05, 2021
by
Jonathan Schafer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add description key to GraphQL values
This fixes the rubocop offenses for several files
parent
b04fba39
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
5 additions
and
10 deletions
+5
-10
.rubocop_manual_todo.yml
.rubocop_manual_todo.yml
+0
-5
app/graphql/types/container_expiration_policy_cadence_enum.rb
...graphql/types/container_expiration_policy_cadence_enum.rb
+1
-1
app/graphql/types/container_expiration_policy_keep_enum.rb
app/graphql/types/container_expiration_policy_keep_enum.rb
+1
-1
app/graphql/types/container_expiration_policy_older_than_enum.rb
...phql/types/container_expiration_policy_older_than_enum.rb
+1
-1
app/graphql/types/packages/package_type_enum.rb
app/graphql/types/packages/package_type_enum.rb
+1
-1
ee/app/graphql/types/alert_management/payload_alert_field_name_enum.rb
...l/types/alert_management/payload_alert_field_name_enum.rb
+1
-1
No files found.
.rubocop_manual_todo.yml
View file @
8c7c1a3b
...
...
@@ -13,15 +13,10 @@
# WIP See https://gitlab.com/gitlab-org/gitlab/-/issues/322903
Graphql/Descriptions
:
Exclude
:
-
'
app/graphql/types/container_expiration_policy_cadence_enum.rb'
-
'
app/graphql/types/container_expiration_policy_keep_enum.rb'
-
'
app/graphql/types/container_expiration_policy_older_than_enum.rb'
-
'
app/graphql/types/packages/package_type_enum.rb'
-
'
app/graphql/types/snippets/blob_action_enum.rb'
-
'
app/graphql/types/snippets/type_enum.rb'
-
'
app/graphql/types/snippets/visibility_scopes_enum.rb'
-
'
ee/app/graphql/ee/types/list_limit_metric_enum.rb'
-
'
ee/app/graphql/types/alert_management/payload_alert_field_name_enum.rb'
-
'
ee/app/graphql/types/epic_state_enum.rb'
-
'
ee/app/graphql/types/health_status_enum.rb'
-
'
ee/app/graphql/types/iteration_state_enum.rb'
...
...
app/graphql/types/container_expiration_policy_cadence_enum.rb
View file @
8c7c1a3b
...
...
@@ -11,7 +11,7 @@ module Types
}.
freeze
::
ContainerExpirationPolicy
.
cadence_options
.
each
do
|
option
,
description
|
value
OPTIONS_MAPPING
[
option
],
description
,
value:
option
.
to_s
value
OPTIONS_MAPPING
[
option
],
description
:
description
,
value:
option
.
to_s
end
end
end
app/graphql/types/container_expiration_policy_keep_enum.rb
View file @
8c7c1a3b
...
...
@@ -12,7 +12,7 @@ module Types
}.
freeze
::
ContainerExpirationPolicy
.
keep_n_options
.
each
do
|
option
,
description
|
value
OPTIONS_MAPPING
[
option
],
description
,
value:
option
value
OPTIONS_MAPPING
[
option
],
description
:
description
,
value:
option
end
end
end
app/graphql/types/container_expiration_policy_older_than_enum.rb
View file @
8c7c1a3b
...
...
@@ -10,7 +10,7 @@ module Types
}.
freeze
::
ContainerExpirationPolicy
.
older_than_options
.
each
do
|
option
,
description
|
value
OPTIONS_MAPPING
[
option
],
description
,
value:
option
.
to_s
value
OPTIONS_MAPPING
[
option
],
description
:
description
,
value:
option
.
to_s
end
end
end
app/graphql/types/packages/package_type_enum.rb
View file @
8c7c1a3b
...
...
@@ -10,7 +10,7 @@ module Types
::
Packages
::
Package
.
package_types
.
keys
.
each
do
|
package_type
|
type_name
=
PACKAGE_TYPE_NAMES
.
fetch
(
package_type
.
to_sym
,
package_type
.
capitalize
)
value
package_type
.
to_s
.
upcase
,
"Packages from the
#{
type_name
}
package manager"
,
value:
package_type
.
to_s
value
package_type
.
to_s
.
upcase
,
description:
"Packages from the
#{
type_name
}
package manager"
,
value:
package_type
.
to_s
end
end
end
...
...
ee/app/graphql/types/alert_management/payload_alert_field_name_enum.rb
View file @
8c7c1a3b
...
...
@@ -7,7 +7,7 @@ module Types
description
'Values for alert field names used in the custom mapping'
::
Gitlab
::
AlertManagement
.
alert_fields
.
each
do
|
field
|
value
field
[
:name
].
upcase
,
field
[
:description
],
value:
field
[
:name
]
value
field
[
:name
].
upcase
,
description:
field
[
:description
],
value:
field
[
:name
]
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