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
dbc8e52c
Commit
dbc8e52c
authored
Dec 02, 2021
by
Vitaly Slobodin
Committed by
Rémy Coutable
Dec 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new CI job for linting GraphQL with Apollo
parent
35bccfc3
Changes
29
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
59 additions
and
59 deletions
+59
-59
.eslintrc.yml
.eslintrc.yml
+1
-1
.gitignore
.gitignore
+0
-1
.gitlab/ci/static-analysis.gitlab-ci.yml
.gitlab/ci/static-analysis.gitlab-ci.yml
+21
-3
app/assets/javascripts/alerts_settings/graphql/mutations/create_http_integration.mutation.graphql
...raphql/mutations/create_http_integration.mutation.graphql
+1
-2
app/assets/javascripts/alerts_settings/graphql/mutations/destroy_http_integration.mutation.graphql
...aphql/mutations/destroy_http_integration.mutation.graphql
+1
-2
app/assets/javascripts/alerts_settings/graphql/mutations/reset_http_token.mutation.graphql
...tings/graphql/mutations/reset_http_token.mutation.graphql
+1
-2
app/assets/javascripts/alerts_settings/graphql/mutations/update_http_integration.mutation.graphql
...raphql/mutations/update_http_integration.mutation.graphql
+1
-2
app/assets/javascripts/boards/graphql/board_list_create.mutation.graphql
...scripts/boards/graphql/board_list_create.mutation.graphql
+1
-2
app/assets/javascripts/boards/graphql/board_list_update.mutation.graphql
...scripts/boards/graphql/board_list_update.mutation.graphql
+1
-2
app/assets/javascripts/boards/graphql/board_lists.query.graphql
...sets/javascripts/boards/graphql/board_lists.query.graphql
+2
-4
app/assets/javascripts/design_management/graphql/mutations/upload_design.mutation.graphql
...nagement/graphql/mutations/upload_design.mutation.graphql
+1
-2
app/assets/javascripts/design_management/graphql/queries/get_design.query.graphql
...esign_management/graphql/queries/get_design.query.graphql
+1
-2
app/assets/javascripts/graphql_shared/fragments/user_availability.fragment.graphql
...aphql_shared/fragments/user_availability.fragment.graphql
+1
-2
app/assets/javascripts/incidents/graphql/fragments/incident_fields.fragment.graphql
...idents/graphql/fragments/incident_fields.fragment.graphql
+1
-2
app/assets/javascripts/runner/graphql/get_runner.query.graphql
...ssets/javascripts/runner/graphql/get_runner.query.graphql
+1
-2
app/assets/javascripts/runner/graphql/runner_update.mutation.graphql
...javascripts/runner/graphql/runner_update.mutation.graphql
+1
-2
app/graphql/queries/epic/epic_children.query.graphql
app/graphql/queries/epic/epic_children.query.graphql
+1
-2
config/apollo.config.js
config/apollo.config.js
+10
-0
ee/app/assets/javascripts/alerts_settings/graphql/mutations/create_http_integration.mutation.graphql
...raphql/mutations/create_http_integration.mutation.graphql
+1
-2
ee/app/assets/javascripts/alerts_settings/graphql/mutations/update_http_integration.mutation.graphql
...raphql/mutations/update_http_integration.mutation.graphql
+1
-2
ee/app/assets/javascripts/boards/graphql/board_list_create.mutation.graphql
...scripts/boards/graphql/board_list_create.mutation.graphql
+1
-2
ee/app/assets/javascripts/boards/graphql/board_lists.query.graphql
...sets/javascripts/boards/graphql/board_lists.query.graphql
+2
-4
ee/app/assets/javascripts/boards/graphql/epic_create.mutation.graphql
...s/javascripts/boards/graphql/epic_create.mutation.graphql
+1
-2
ee/app/assets/javascripts/boards/graphql/list_update_limit_metrics.mutation.graphql
...boards/graphql/list_update_limit_metrics.mutation.graphql
+1
-2
ee/app/assets/javascripts/boards/graphql/lists_epics.query.graphql
...sets/javascripts/boards/graphql/lists_epics.query.graphql
+1
-2
ee/app/assets/javascripts/incidents/graphql/fragments/incident_fields.fragment.graphql
...idents/graphql/fragments/incident_fields.fragment.graphql
+1
-2
ee/app/assets/javascripts/oncall_schedules/graphql/queries/get_oncall_schedules_with_rotations_shifts.query.graphql
.../get_oncall_schedules_with_rotations_shifts.query.graphql
+1
-2
ee/app/assets/javascripts/security_dashboard/graphql/fragments/project_vulnerability_severities_count.fragment.graphql
...s/project_vulnerability_severities_count.fragment.graphql
+1
-2
ee/app/assets/javascripts/vue_shared/components/filtered_search_bar/queries/search_epics.query.graphql
...ts/filtered_search_bar/queries/search_epics.query.graphql
+1
-2
No files found.
.eslintrc.yml
View file @
dbc8e52c
...
...
@@ -138,4 +138,4 @@ overrides:
#'@graphql-eslint/known-type-names': error
'
@graphql-eslint/no-anonymous-operations'
:
error
'
@graphql-eslint/unique-operation-name'
:
error
#
'@graphql-eslint/require-id-when-available': error
'
@graphql-eslint/require-id-when-available'
:
error
.gitignore
View file @
dbc8e52c
...
...
@@ -95,7 +95,6 @@ jsdoc/
webpack-dev-server.json
/.nvimrc
.solargraph.yml
apollo.config.js
/tmp/matching_foss_tests.txt
/tmp/matching_tests.txt
ee/changelogs/unreleased-ee
...
...
.gitlab/ci/static-analysis.gitlab-ci.yml
View file @
dbc8e52c
...
...
@@ -10,6 +10,7 @@
# Disable warnings in browserslist which can break on backports
# https://github.com/browserslist/browserslist/blob/a287ec6/node.js#L367-L384
BROWSERSLIST_IGNORE_OLD_DATA
:
"
true"
GRAPHQL_SCHEMA_APOLLO_FILE
:
"
tmp/tests/graphql/gitlab_schema_apollo.graphql"
update-static-analysis-cache
:
extends
:
...
...
@@ -47,17 +48,34 @@ static-verification-with-database:
variables
:
SETUP_DB
:
"
true"
generate-apollo-graphl-schema
:
extends
:
-
.static-analysis-base
-
.frontend:rules:default-frontend-jobs
image
:
name
:
registry.gitlab.com/gitlab-org/gitlab-build-images:apollo
entrypoint
:
[
"
"
]
needs
:
[
'
graphql-schema-dump'
]
variables
:
USE_BUNDLE_INSTALL
:
"
false"
script
:
-
apollo client:download-schema --config=config/apollo.config.js ${GRAPHQL_SCHEMA_APOLLO_FILE}
artifacts
:
name
:
graphql-schema-apollo
paths
:
-
"
${GRAPHQL_SCHEMA_APOLLO_FILE}"
eslint
:
extends
:
-
.static-analysis-base
-
.yarn-cache
-
.
static-analysis:rules:ee
needs
:
[]
-
.
frontend:rules:default-frontend-jobs
needs
:
[
'
generate-apollo-graphl-schema'
]
variables
:
USE_BUNDLE_INSTALL
:
"
false"
script
:
-
run_timed_command "retry yarn install --frozen-lockfile"
-
run_timed_command "yarn run lint:eslint:all"
-
run_timed_command "yarn run lint:eslint:all
--parser-options=schema:${GRAPHQL_SCHEMA_APOLLO_FILE}
"
eslint as-if-foss
:
extends
:
...
...
app/assets/javascripts/alerts_settings/graphql/mutations/create_http_integration.mutation.graphql
View file @
dbc8e52c
...
...
@@ -4,8 +4,7 @@ mutation createHttpIntegration($projectPath: ID!, $name: String!, $active: Boole
httpIntegrationCreate
(
input
:
{
projectPath
:
$projectPath
,
name
:
$name
,
active
:
$active
})
{
errors
# We have ID in a deeply nested fragment
# TODO: Uncomment next line when https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75220 is merged and the rule is enabled
# # eslint-disable-next-line @graphql-eslint/require-id-when-available
# eslint-disable-next-line @graphql-eslint/require-id-when-available
integration
{
...
HttpIntegrationItem
}
...
...
app/assets/javascripts/alerts_settings/graphql/mutations/destroy_http_integration.mutation.graphql
View file @
dbc8e52c
...
...
@@ -4,8 +4,7 @@ mutation destroyHttpIntegration($id: ID!) {
httpIntegrationDestroy
(
input
:
{
id
:
$id
})
{
errors
# We have ID in a deeply nested fragment
# TODO: Uncomment next line when https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75220 is merged and the rule is enabled
# # eslint-disable-next-line @graphql-eslint/require-id-when-available
# eslint-disable-next-line @graphql-eslint/require-id-when-available
integration
{
...
HttpIntegrationItem
}
...
...
app/assets/javascripts/alerts_settings/graphql/mutations/reset_http_token.mutation.graphql
View file @
dbc8e52c
...
...
@@ -4,8 +4,7 @@ mutation resetHttpIntegrationToken($id: ID!) {
httpIntegrationResetToken
(
input
:
{
id
:
$id
})
{
errors
# We have ID in a deeply nested fragment
# TODO: Uncomment next line when https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75220 is merged and the rule is enabled
# # eslint-disable-next-line @graphql-eslint/require-id-when-available
# eslint-disable-next-line @graphql-eslint/require-id-when-available
integration
{
...
HttpIntegrationItem
}
...
...
app/assets/javascripts/alerts_settings/graphql/mutations/update_http_integration.mutation.graphql
View file @
dbc8e52c
...
...
@@ -4,8 +4,7 @@ mutation updateHttpIntegration($id: ID!, $name: String!, $active: Boolean!) {
httpIntegrationUpdate
(
input
:
{
id
:
$id
,
name
:
$name
,
active
:
$active
})
{
errors
# We have ID in a deeply nested fragment
# TODO: Uncomment next line when https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75220 is merged and the rule is enabled
# # eslint-disable-next-line @graphql-eslint/require-id-when-available
# eslint-disable-next-line @graphql-eslint/require-id-when-available
integration
{
...
HttpIntegrationItem
}
...
...
app/assets/javascripts/boards/graphql/board_list_create.mutation.graphql
View file @
dbc8e52c
...
...
@@ -3,8 +3,7 @@
mutation
createBoardList
(
$boardId
:
BoardID
!,
$backlog
:
Boolean
,
$labelId
:
LabelID
)
{
boardListCreate
(
input
:
{
boardId
:
$boardId
,
backlog
:
$backlog
,
labelId
:
$labelId
})
{
# We have ID in a deeply nested fragment
# TODO: Uncomment next line when https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75220 is merged and the rule is enabled
# # eslint-disable-next-line @graphql-eslint/require-id-when-available
# eslint-disable-next-line @graphql-eslint/require-id-when-available
list
{
...
BoardListFragment
}
...
...
app/assets/javascripts/boards/graphql/board_list_update.mutation.graphql
View file @
dbc8e52c
...
...
@@ -3,8 +3,7 @@
mutation
UpdateBoardList
(
$listId
:
ID
!,
$position
:
Int
,
$collapsed
:
Boolean
)
{
updateBoardList
(
input
:
{
listId
:
$listId
,
position
:
$position
,
collapsed
:
$collapsed
})
{
# We have ID in a deeply nested fragment
# TODO: Uncomment next line when https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75220 is merged and the rule is enabled
# # eslint-disable-next-line @graphql-eslint/require-id-when-available
# eslint-disable-next-line @graphql-eslint/require-id-when-available
list
{
...
BoardListFragment
}
...
...
app/assets/javascripts/boards/graphql/board_lists.query.graphql
View file @
dbc8e52c
...
...
@@ -14,8 +14,7 @@ query BoardLists(
hideBacklogList
lists
(
issueFilters
:
$filters
)
{
# We have ID in a deeply nested fragment
# TODO: Uncomment next line when https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75220 is merged and the rule is enabled
# # eslint-disable-next-line @graphql-eslint/require-id-when-available
# eslint-disable-next-line @graphql-eslint/require-id-when-available
nodes
{
...
BoardListFragment
}
...
...
@@ -29,8 +28,7 @@ query BoardLists(
hideBacklogList
lists
(
issueFilters
:
$filters
)
{
# We have ID in a deeply nested fragment
# TODO: Uncomment next line when https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75220 is merged and the rule is enabled
# # eslint-disable-next-line @graphql-eslint/require-id-when-available
# eslint-disable-next-line @graphql-eslint/require-id-when-available
nodes
{
...
BoardListFragment
}
...
...
app/assets/javascripts/design_management/graphql/mutations/upload_design.mutation.graphql
View file @
dbc8e52c
...
...
@@ -3,8 +3,7 @@
mutation
uploadDesign
(
$files
:
[
Upload
!]!,
$projectPath
:
ID
!,
$iid
:
ID
!)
{
designManagementUpload
(
input
:
{
projectPath
:
$projectPath
,
iid
:
$iid
,
files
:
$files
})
{
# TODO: Uncomment next line when https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75220 is merged and the rule is enabled
# # eslint-disable-next-line @graphql-eslint/require-id-when-available
# eslint-disable-next-line @graphql-eslint/require-id-when-available
designs
{
...
DesignItem
versions
{
...
...
app/assets/javascripts/design_management/graphql/queries/get_design.query.graphql
View file @
dbc8e52c
...
...
@@ -13,8 +13,7 @@ query getDesign(
id
designCollection
{
designs
(
atVersion
:
$atVersion
,
filenames
:
$filenames
)
{
# TODO: Uncomment next line when https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75220 is merged and the rule is enabled
# # eslint-disable-next-line @graphql-eslint/require-id-when-available
# eslint-disable-next-line @graphql-eslint/require-id-when-available
nodes
{
...
DesignItem
issue
{
...
...
app/assets/javascripts/graphql_shared/fragments/user_availability.fragment.graphql
View file @
dbc8e52c
# TODO: Uncomment next line when https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75220 is merged and the rule is enabled
# # eslint-disable-next-line @graphql-eslint/require-id-when-available
# eslint-disable-next-line @graphql-eslint/require-id-when-available
fragment
UserAvailability
on
User
{
status
{
availability
...
...
app/assets/javascripts/incidents/graphql/fragments/incident_fields.fragment.graphql
View file @
dbc8e52c
# TODO: Uncomment next line when https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75220 is merged and the rule is enabled
# # eslint-disable-next-line @graphql-eslint/require-id-when-available
# eslint-disable-next-line @graphql-eslint/require-id-when-available
fragment
IncidentFields
on
Issue
{
severity
}
app/assets/javascripts/runner/graphql/get_runner.query.graphql
View file @
dbc8e52c
...
...
@@ -2,8 +2,7 @@
query
getRunner
(
$id
:
CiRunnerID
!)
{
# We have an id in deeply nested fragment
# TODO: Uncomment next line when https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75220 is merged and the rule is enabled
# # eslint-disable-next-line @graphql-eslint/require-id-when-available
# eslint-disable-next-line @graphql-eslint/require-id-when-available
runner
(
id
:
$id
)
{
...
RunnerDetails
}
...
...
app/assets/javascripts/runner/graphql/runner_update.mutation.graphql
View file @
dbc8e52c
...
...
@@ -6,8 +6,7 @@
mutation
runnerUpdate
(
$input
:
RunnerUpdateInput
!)
{
runnerUpdate
(
input
:
$input
)
{
# We have an id in deep nested fragment
# TODO: Uncomment next line when https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75220 is merged and the rule is enabled
# # eslint-disable-next-line @graphql-eslint/require-id-when-available
# eslint-disable-next-line @graphql-eslint/require-id-when-available
runner
{
...
RunnerDetails
}
...
...
app/graphql/queries/epic/epic_children.query.graphql
View file @
dbc8e52c
...
...
@@ -72,8 +72,7 @@ query childItems(
edges
{
__typename
# We have an id in deeply nested fragment
# TODO: Uncomment next line when https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75220 is merged and the rule is enabled
# # eslint-disable-next-line @graphql-eslint/require-id-when-available
# eslint-disable-next-line @graphql-eslint/require-id-when-available
node
{
__typename
...
EpicNode
...
...
config/apollo.config.js
0 → 100644
View file @
dbc8e52c
module
.
exports
=
{
client
:
{
service
:
{
name
:
'
gitlab
'
,
localSchemaFile
:
'
./tmp/tests/graphql/gitlab_schema.graphql
'
,
},
includes
:
[
'
../{ee/,jh/,}app/assets/javascripts/**/*.{js,graphql}
'
],
excludes
:
[
'
../{ee/,jh/,}spec/{frontend,frontend_integration}/**/*
'
],
},
};
ee/app/assets/javascripts/alerts_settings/graphql/mutations/create_http_integration.mutation.graphql
View file @
dbc8e52c
...
...
@@ -18,8 +18,7 @@ mutation createHttpIntegrationEE(
)
{
errors
# We have an id in deeply nested fragment
# TODO: Uncomment next line when https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75220 is merged and the rule is enabled
# # eslint-disable-next-line @graphql-eslint/require-id-when-available
# eslint-disable-next-line @graphql-eslint/require-id-when-available
integration
{
...
HttpIntegrationItem
}
...
...
ee/app/assets/javascripts/alerts_settings/graphql/mutations/update_http_integration.mutation.graphql
View file @
dbc8e52c
...
...
@@ -18,8 +18,7 @@ mutation updateHttpIntegrationEE(
)
{
errors
# We have an id in deeply nested fragment
# TODO: Uncomment next line when https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75220 is merged and the rule is enabled
# # eslint-disable-next-line @graphql-eslint/require-id-when-available
# eslint-disable-next-line @graphql-eslint/require-id-when-available
integration
{
...
HttpIntegrationItem
}
...
...
ee/app/assets/javascripts/boards/graphql/board_list_create.mutation.graphql
View file @
dbc8e52c
...
...
@@ -19,8 +19,7 @@ mutation createBoardListEE(
}
)
{
# We have an id in deeply nested fragment
# TODO: Uncomment next line when https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75220 is merged and the rule is enabled
# # eslint-disable-next-line @graphql-eslint/require-id-when-available
# eslint-disable-next-line @graphql-eslint/require-id-when-available
list
{
...
BoardListFragment
}
...
...
ee/app/assets/javascripts/boards/graphql/board_lists.query.graphql
View file @
dbc8e52c
...
...
@@ -14,8 +14,7 @@ query ListIssues(
hideBacklogList
lists
(
issueFilters
:
$filters
)
{
# We have an id in deeply nested fragment
# TODO: Uncomment next line when https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75220 is merged and the rule is enabled
# # eslint-disable-next-line @graphql-eslint/require-id-when-available
# eslint-disable-next-line @graphql-eslint/require-id-when-available
nodes
{
...
BoardListFragment
}
...
...
@@ -29,8 +28,7 @@ query ListIssues(
hideBacklogList
lists
(
issueFilters
:
$filters
)
{
# We have an id in deeply nested fragment
# TODO: Uncomment next line when https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75220 is merged and the rule is enabled
# # eslint-disable-next-line @graphql-eslint/require-id-when-available
# eslint-disable-next-line @graphql-eslint/require-id-when-available
nodes
{
...
BoardListFragment
}
...
...
ee/app/assets/javascripts/boards/graphql/epic_create.mutation.graphql
View file @
dbc8e52c
...
...
@@ -4,8 +4,7 @@
mutation
CreateEpic
(
$input
:
CreateEpicInput
!)
{
createEpic
(
input
:
$input
)
{
# We have an id in deeply nested fragment
# TODO: Uncomment next line when https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75220 is merged and the rule is enabled
# # eslint-disable-next-line @graphql-eslint/require-id-when-available
# eslint-disable-next-line @graphql-eslint/require-id-when-available
epic
{
...
EpicNode
labels
{
...
...
ee/app/assets/javascripts/boards/graphql/list_update_limit_metrics.mutation.graphql
View file @
dbc8e52c
...
...
@@ -3,8 +3,7 @@
mutation
boardListUpdateLimitMetrics
(
$input
:
BoardListUpdateLimitMetricsInput
!)
{
boardListUpdateLimitMetrics
(
input
:
$input
)
{
# We have an id in deeply nested fragment
# TODO: Uncomment next line when https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75220 is merged and the rule is enabled
# # eslint-disable-next-line @graphql-eslint/require-id-when-available
# eslint-disable-next-line @graphql-eslint/require-id-when-available
list
{
...
BoardListFragment
}
...
...
ee/app/assets/javascripts/boards/graphql/lists_epics.query.graphql
View file @
dbc8e52c
...
...
@@ -19,8 +19,7 @@ query epicBoardListEpics(
epics
(
first
:
$first
,
after
:
$after
,
filters
:
$filters
)
{
edges
{
# We have an id in deeply nested fragment
# TODO: Uncomment next line when https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75220 is merged and the rule is enabled
# # eslint-disable-next-line @graphql-eslint/require-id-when-available
# eslint-disable-next-line @graphql-eslint/require-id-when-available
node
{
...
EpicNode
relativePosition
...
...
ee/app/assets/javascripts/incidents/graphql/fragments/incident_fields.fragment.graphql
View file @
dbc8e52c
# TODO: Uncomment next line when https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75220 is merged and the rule is enabled
# # eslint-disable-next-line @graphql-eslint/require-id-when-available
# eslint-disable-next-line @graphql-eslint/require-id-when-available
fragment
IncidentFields
on
Issue
{
severity
statusPagePublishedIncident
...
...
ee/app/assets/javascripts/oncall_schedules/graphql/queries/get_oncall_schedules_with_rotations_shifts.query.graphql
View file @
dbc8e52c
...
...
@@ -7,8 +7,7 @@ query getShiftsForRotations($projectPath: ID!, $startsAt: Time!, $endsAt: Time!,
nodes
{
rotations
{
# We have an id in deeply nested fragment
# TODO: Uncomment next line when https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75220 is merged and the rule is enabled
# # eslint-disable-next-line @graphql-eslint/require-id-when-available
# eslint-disable-next-line @graphql-eslint/require-id-when-available
nodes
{
...
OnCallRotationWithShifts
}
...
...
ee/app/assets/javascripts/security_dashboard/graphql/fragments/project_vulnerability_severities_count.fragment.graphql
View file @
dbc8e52c
#import "ee/security_dashboard/graphql/fragments/vulnerability_severities_count.fragment.graphql"
# TODO: Uncomment next line when https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75220 is merged and the rule is enabled
# # eslint-disable-next-line @graphql-eslint/require-id-when-available
# eslint-disable-next-line @graphql-eslint/require-id-when-available
fragment
ProjectVulnerabilitySeveritiesCount
on
Project
{
vulnerabilitySeveritiesCount
(
state
:
[
DETECTED
,
CONFIRMED
])
{
...
VulnerabilitySeveritiesCount
...
...
ee/app/assets/javascripts/vue_shared/components/filtered_search_bar/queries/search_epics.query.graphql
View file @
dbc8e52c
...
...
@@ -10,8 +10,7 @@ query searchEpics($fullPath: ID!, $search: String, $state: EpicState) {
includeDescendantGroups
:
false
)
{
# We have an id in deeply nested fragment
# TODO: Uncomment next line when https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75220 is merged and the rule is enabled
# # eslint-disable-next-line @graphql-eslint/require-id-when-available
# eslint-disable-next-line @graphql-eslint/require-id-when-available
nodes
{
...
EpicNode
}
...
...
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