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
85c0032c
Commit
85c0032c
authored
Feb 23, 2022
by
Siddharth Asthana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix GraphQL/OrderedFields offenses
Changelog: other EE: true
parent
ed050950
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
40 additions
and
48 deletions
+40
-48
.rubocop_todo/graphql/ordered_fields.yml
.rubocop_todo/graphql/ordered_fields.yml
+0
-8
app/graphql/types/tree/submodule_type.rb
app/graphql/types/tree/submodule_type.rb
+2
-2
app/graphql/types/tree/tree_entry_type.rb
app/graphql/types/tree/tree_entry_type.rb
+2
-2
app/graphql/types/user_callout_type.rb
app/graphql/types/user_callout_type.rb
+2
-2
app/graphql/types/user_status_type.rb
app/graphql/types/user_status_type.rb
+4
-4
ee/app/graphql/types/analytics/devops_adoption/snapshot_type.rb
.../graphql/types/analytics/devops_adoption/snapshot_type.rb
+24
-24
ee/app/graphql/types/epic_descendant_count_type.rb
ee/app/graphql/types/epic_descendant_count_type.rb
+2
-2
ee/app/graphql/types/epic_descendant_weight_sum_type.rb
ee/app/graphql/types/epic_descendant_weight_sum_type.rb
+2
-2
ee/app/graphql/types/epic_health_status_type.rb
ee/app/graphql/types/epic_health_status_type.rb
+2
-2
No files found.
.rubocop_todo/graphql/ordered_fields.yml
View file @
85c0032c
...
@@ -71,14 +71,6 @@ GraphQL/OrderedFields:
...
@@ -71,14 +71,6 @@ GraphQL/OrderedFields:
-
app/graphql/types/root_storage_statistics_type.rb
-
app/graphql/types/root_storage_statistics_type.rb
-
app/graphql/types/task_completion_status.rb
-
app/graphql/types/task_completion_status.rb
-
app/graphql/types/tree/blob_type.rb
-
app/graphql/types/tree/blob_type.rb
-
app/graphql/types/tree/submodule_type.rb
-
app/graphql/types/tree/tree_entry_type.rb
-
app/graphql/types/user_callout_type.rb
-
app/graphql/types/user_status_type.rb
-
ee/app/graphql/types/analytics/devops_adoption/snapshot_type.rb
-
ee/app/graphql/types/epic_descendant_count_type.rb
-
ee/app/graphql/types/epic_descendant_weight_sum_type.rb
-
ee/app/graphql/types/epic_health_status_type.rb
-
ee/app/graphql/types/epic_type.rb
-
ee/app/graphql/types/epic_type.rb
-
ee/app/graphql/types/geo/geo_node_type.rb
-
ee/app/graphql/types/geo/geo_node_type.rb
-
ee/app/graphql/types/requirements_management/requirement_states_count_type.rb
-
ee/app/graphql/types/requirements_management/requirement_states_count_type.rb
...
...
app/graphql/types/tree/submodule_type.rb
View file @
85c0032c
...
@@ -8,10 +8,10 @@ module Types
...
@@ -8,10 +8,10 @@ module Types
implements
Types
::
Tree
::
EntryType
implements
Types
::
Tree
::
EntryType
field
:web_url
,
type:
GraphQL
::
Types
::
String
,
null:
true
,
description:
'Web URL for the sub-module.'
field
:tree_url
,
type:
GraphQL
::
Types
::
String
,
null:
true
,
field
:tree_url
,
type:
GraphQL
::
Types
::
String
,
null:
true
,
description:
'Tree URL for the sub-module.'
description:
'Tree URL for the sub-module.'
field
:web_url
,
type:
GraphQL
::
Types
::
String
,
null:
true
,
description:
'Web URL for the sub-module.'
end
end
# rubocop: enable Graphql/AuthorizeTypes
# rubocop: enable Graphql/AuthorizeTypes
end
end
...
...
app/graphql/types/tree/tree_entry_type.rb
View file @
85c0032c
...
@@ -10,10 +10,10 @@ module Types
...
@@ -10,10 +10,10 @@ module Types
implements
Types
::
Tree
::
EntryType
implements
Types
::
Tree
::
EntryType
present_using
TreeEntryPresenter
present_using
TreeEntryPresenter
field
:web_url
,
GraphQL
::
Types
::
String
,
null:
true
,
description:
'Web URL for the tree entry (directory).'
field
:web_path
,
GraphQL
::
Types
::
String
,
null:
true
,
field
:web_path
,
GraphQL
::
Types
::
String
,
null:
true
,
description:
'Web path for the tree entry (directory).'
description:
'Web path for the tree entry (directory).'
field
:web_url
,
GraphQL
::
Types
::
String
,
null:
true
,
description:
'Web URL for the tree entry (directory).'
end
end
# rubocop: enable Graphql/AuthorizeTypes
# rubocop: enable Graphql/AuthorizeTypes
end
end
...
...
app/graphql/types/user_callout_type.rb
View file @
85c0032c
...
@@ -4,9 +4,9 @@ module Types
...
@@ -4,9 +4,9 @@ module Types
class
UserCalloutType
<
BaseObject
# rubocop:disable Graphql/AuthorizeTypes
class
UserCalloutType
<
BaseObject
# rubocop:disable Graphql/AuthorizeTypes
graphql_name
'UserCallout'
graphql_name
'UserCallout'
field
:feature_name
,
UserCalloutFeatureNameEnum
,
null:
true
,
description:
'Name of the feature that the callout is for.'
field
:dismissed_at
,
Types
::
TimeType
,
null:
true
,
field
:dismissed_at
,
Types
::
TimeType
,
null:
true
,
description:
'Date when the callout was dismissed.'
description:
'Date when the callout was dismissed.'
field
:feature_name
,
UserCalloutFeatureNameEnum
,
null:
true
,
description:
'Name of the feature that the callout is for.'
end
end
end
end
app/graphql/types/user_status_type.rb
View file @
85c0032c
...
@@ -7,11 +7,11 @@ module Types
...
@@ -7,11 +7,11 @@ module Types
markdown_field
:message_html
,
null:
true
,
markdown_field
:message_html
,
null:
true
,
description:
'HTML of the user status message'
description:
'HTML of the user status message'
field
:message
,
GraphQL
::
Types
::
String
,
null:
true
,
description:
'User status message.'
field
:emoji
,
GraphQL
::
Types
::
String
,
null:
true
,
description:
'String representation of emoji.'
field
:availability
,
Types
::
AvailabilityEnum
,
null:
false
,
field
:availability
,
Types
::
AvailabilityEnum
,
null:
false
,
description:
'User availability status.'
description:
'User availability status.'
field
:emoji
,
GraphQL
::
Types
::
String
,
null:
true
,
description:
'String representation of emoji.'
field
:message
,
GraphQL
::
Types
::
String
,
null:
true
,
description:
'User status message.'
end
end
end
end
ee/app/graphql/types/analytics/devops_adoption/snapshot_type.rb
View file @
85c0032c
...
@@ -8,41 +8,41 @@ module Types
...
@@ -8,41 +8,41 @@ module Types
graphql_name
'DevopsAdoptionSnapshot'
graphql_name
'DevopsAdoptionSnapshot'
description
'Snapshot'
description
'Snapshot'
field
:code_owners_used_count
,
GraphQL
::
Types
::
Int
,
null:
true
,
description:
'Total number of projects with existing CODEOWNERS file.'
field
:coverage_fuzzing_enabled_count
,
GraphQL
::
Types
::
Int
,
null:
true
,
description:
'Total number of projects with enabled coverage fuzzing.'
field
:dast_enabled_count
,
GraphQL
::
Types
::
Int
,
null:
true
,
description:
'Total number of projects with enabled DAST.'
field
:dependency_scanning_enabled_count
,
GraphQL
::
Types
::
Int
,
null:
true
,
description:
'Total number of projects with enabled dependency scanning.'
field
:deploy_succeeded
,
GraphQL
::
Types
::
Boolean
,
null:
false
,
description:
'At least one deployment succeeded.'
field
:end_time
,
Types
::
TimeType
,
null:
false
,
description:
'End time for the snapshot where the data points were collected.'
field
:issue_opened
,
GraphQL
::
Types
::
Boolean
,
null:
false
,
field
:issue_opened
,
GraphQL
::
Types
::
Boolean
,
null:
false
,
description:
'At least one issue was opened.'
description:
'At least one issue was opened.'
field
:merge_request_opened
,
GraphQL
::
Types
::
Boolean
,
null:
false
,
description:
'At least one merge request was opened.'
field
:merge_request_approved
,
GraphQL
::
Types
::
Boolean
,
null:
false
,
field
:merge_request_approved
,
GraphQL
::
Types
::
Boolean
,
null:
false
,
description:
'At least one merge request was approved.'
description:
'At least one merge request was approved.'
field
:
runner_configur
ed
,
GraphQL
::
Types
::
Boolean
,
null:
false
,
field
:
merge_request_open
ed
,
GraphQL
::
Types
::
Boolean
,
null:
false
,
description:
'At least one
runner was us
ed.'
description:
'At least one
merge request was open
ed.'
field
:pipeline_succeeded
,
GraphQL
::
Types
::
Boolean
,
null:
false
,
field
:pipeline_succeeded
,
GraphQL
::
Types
::
Boolean
,
null:
false
,
description:
'At least one pipeline succeeded.'
description:
'At least one pipeline succeeded.'
field
:deploy_succeeded
,
GraphQL
::
Types
::
Boolean
,
null:
false
,
field
:recorded_at
,
Types
::
TimeType
,
null:
false
,
description:
'At least one deployment succeeded.'
description:
'Time the snapshot was recorded.'
field
:runner_configured
,
GraphQL
::
Types
::
Boolean
,
null:
false
,
description:
'At least one runner was used.'
field
:sast_enabled_count
,
GraphQL
::
Types
::
Int
,
null:
true
,
description:
'Total number of projects with enabled SAST.'
field
:security_scan_succeeded
,
GraphQL
::
Types
::
Boolean
,
null:
false
,
field
:security_scan_succeeded
,
GraphQL
::
Types
::
Boolean
,
null:
false
,
description:
'At least one security scan succeeded.'
,
description:
'At least one security scan succeeded.'
,
deprecated:
{
reason:
'Substituted with specific security metrics. Always false'
,
milestone:
'14.1'
}
deprecated:
{
reason:
'Substituted with specific security metrics. Always false'
,
milestone:
'14.1'
}
field
:code_owners_used_count
,
GraphQL
::
Types
::
Int
,
null:
true
,
description:
'Total number of projects with existing CODEOWNERS file.'
field
:sast_enabled_count
,
GraphQL
::
Types
::
Int
,
null:
true
,
description:
'Total number of projects with enabled SAST.'
field
:dast_enabled_count
,
GraphQL
::
Types
::
Int
,
null:
true
,
description:
'Total number of projects with enabled DAST.'
field
:dependency_scanning_enabled_count
,
GraphQL
::
Types
::
Int
,
null:
true
,
description:
'Total number of projects with enabled dependency scanning.'
field
:coverage_fuzzing_enabled_count
,
GraphQL
::
Types
::
Int
,
null:
true
,
description:
'Total number of projects with enabled coverage fuzzing.'
field
:vulnerability_management_used_count
,
GraphQL
::
Types
::
Int
,
null:
true
,
description:
'Total number of projects with vulnerability management used at least once.'
field
:total_projects_count
,
GraphQL
::
Types
::
Int
,
null:
true
,
description:
'Total number of projects.'
field
:recorded_at
,
Types
::
TimeType
,
null:
false
,
description:
'Time the snapshot was recorded.'
field
:start_time
,
Types
::
TimeType
,
null:
false
,
field
:start_time
,
Types
::
TimeType
,
null:
false
,
description:
'Start time for the snapshot where the data points were collected.'
description:
'Start time for the snapshot where the data points were collected.'
field
:end_time
,
Types
::
TimeType
,
null:
false
,
field
:total_projects_count
,
GraphQL
::
Types
::
Int
,
null:
true
,
description:
'End time for the snapshot where the data points were collected.'
description:
'Total number of projects.'
field
:vulnerability_management_used_count
,
GraphQL
::
Types
::
Int
,
null:
true
,
description:
'Total number of projects with vulnerability management used at least once.'
end
end
end
end
end
end
...
...
ee/app/graphql/types/epic_descendant_count_type.rb
View file @
85c0032c
...
@@ -6,10 +6,10 @@ module Types
...
@@ -6,10 +6,10 @@ module Types
graphql_name
'EpicDescendantCount'
graphql_name
'EpicDescendantCount'
description
'Counts of descendent epics'
description
'Counts of descendent epics'
field
:opened_epics
,
GraphQL
::
Types
::
Int
,
null:
true
,
description:
'Number of opened child epics.'
field
:closed_epics
,
GraphQL
::
Types
::
Int
,
null:
true
,
description:
'Number of closed child epics.'
field
:closed_epics
,
GraphQL
::
Types
::
Int
,
null:
true
,
description:
'Number of closed child epics.'
field
:opened_issues
,
GraphQL
::
Types
::
Int
,
null:
true
,
description:
'Number of opened epic issues.'
field
:closed_issues
,
GraphQL
::
Types
::
Int
,
null:
true
,
description:
'Number of closed epic issues.'
field
:closed_issues
,
GraphQL
::
Types
::
Int
,
null:
true
,
description:
'Number of closed epic issues.'
field
:opened_epics
,
GraphQL
::
Types
::
Int
,
null:
true
,
description:
'Number of opened child epics.'
field
:opened_issues
,
GraphQL
::
Types
::
Int
,
null:
true
,
description:
'Number of opened epic issues.'
end
end
# rubocop: enable Graphql/AuthorizeTypes
# rubocop: enable Graphql/AuthorizeTypes
end
end
ee/app/graphql/types/epic_descendant_weight_sum_type.rb
View file @
85c0032c
...
@@ -6,10 +6,10 @@ module Types
...
@@ -6,10 +6,10 @@ module Types
graphql_name
'EpicDescendantWeights'
graphql_name
'EpicDescendantWeights'
description
'Total weight of open and closed descendant issues'
description
'Total weight of open and closed descendant issues'
field
:opened_issues
,
GraphQL
::
Types
::
Int
,
null:
true
,
description:
'Total weight of opened issues in this epic, including epic descendants.'
field
:closed_issues
,
GraphQL
::
Types
::
Int
,
null:
true
,
field
:closed_issues
,
GraphQL
::
Types
::
Int
,
null:
true
,
description:
'Total weight of completed (closed) issues in this epic, including epic descendants.'
description:
'Total weight of completed (closed) issues in this epic, including epic descendants.'
field
:opened_issues
,
GraphQL
::
Types
::
Int
,
null:
true
,
description:
'Total weight of opened issues in this epic, including epic descendants.'
end
end
# rubocop: enable Graphql/AuthorizeTypes
# rubocop: enable Graphql/AuthorizeTypes
end
end
ee/app/graphql/types/epic_health_status_type.rb
View file @
85c0032c
...
@@ -6,9 +6,9 @@ module Types
...
@@ -6,9 +6,9 @@ module Types
graphql_name
'EpicHealthStatus'
graphql_name
'EpicHealthStatus'
description
'Health status of child issues'
description
'Health status of child issues'
field
:issues_on_track
,
GraphQL
::
Types
::
Int
,
null:
true
,
description:
'Number of issues on track.'
field
:issues_needing_attention
,
GraphQL
::
Types
::
Int
,
null:
true
,
description:
'Number of issues that need attention.'
field
:issues_at_risk
,
GraphQL
::
Types
::
Int
,
null:
true
,
description:
'Number of issues at risk.'
field
:issues_at_risk
,
GraphQL
::
Types
::
Int
,
null:
true
,
description:
'Number of issues at risk.'
field
:issues_needing_attention
,
GraphQL
::
Types
::
Int
,
null:
true
,
description:
'Number of issues that need attention.'
field
:issues_on_track
,
GraphQL
::
Types
::
Int
,
null:
true
,
description:
'Number of issues on track.'
end
end
# rubocop: enable Graphql/AuthorizeTypes
# rubocop: enable Graphql/AuthorizeTypes
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