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:
...
@@ -138,4 +138,4 @@ overrides:
#'@graphql-eslint/known-type-names': error
#'@graphql-eslint/known-type-names': error
'
@graphql-eslint/no-anonymous-operations'
:
error
'
@graphql-eslint/no-anonymous-operations'
:
error
'
@graphql-eslint/unique-operation-name'
:
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/
...
@@ -95,7 +95,6 @@ jsdoc/
webpack-dev-server.json
webpack-dev-server.json
/.nvimrc
/.nvimrc
.solargraph.yml
.solargraph.yml
apollo.config.js
/tmp/matching_foss_tests.txt
/tmp/matching_foss_tests.txt
/tmp/matching_tests.txt
/tmp/matching_tests.txt
ee/changelogs/unreleased-ee
ee/changelogs/unreleased-ee
...
...
.gitlab/ci/static-analysis.gitlab-ci.yml
View file @
dbc8e52c
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
# Disable warnings in browserslist which can break on backports
# Disable warnings in browserslist which can break on backports
# https://github.com/browserslist/browserslist/blob/a287ec6/node.js#L367-L384
# https://github.com/browserslist/browserslist/blob/a287ec6/node.js#L367-L384
BROWSERSLIST_IGNORE_OLD_DATA
:
"
true"
BROWSERSLIST_IGNORE_OLD_DATA
:
"
true"
GRAPHQL_SCHEMA_APOLLO_FILE
:
"
tmp/tests/graphql/gitlab_schema_apollo.graphql"
update-static-analysis-cache
:
update-static-analysis-cache
:
extends
:
extends
:
...
@@ -47,17 +48,34 @@ static-verification-with-database:
...
@@ -47,17 +48,34 @@ static-verification-with-database:
variables
:
variables
:
SETUP_DB
:
"
true"
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
:
eslint
:
extends
:
extends
:
-
.static-analysis-base
-
.static-analysis-base
-
.yarn-cache
-
.yarn-cache
-
.
static-analysis:rules:ee
-
.
frontend:rules:default-frontend-jobs
needs
:
[]
needs
:
[
'
generate-apollo-graphl-schema'
]
variables
:
variables
:
USE_BUNDLE_INSTALL
:
"
false"
USE_BUNDLE_INSTALL
:
"
false"
script
:
script
:
-
run_timed_command "retry yarn install --frozen-lockfile"
-
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
:
eslint as-if-foss
:
extends
:
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
...
@@ -4,8 +4,7 @@ mutation createHttpIntegration($projectPath: ID!, $name: String!, $active: Boole
httpIntegrationCreate
(
input
:
{
projectPath
:
$projectPath
,
name
:
$name
,
active
:
$active
})
{
httpIntegrationCreate
(
input
:
{
projectPath
:
$projectPath
,
name
:
$name
,
active
:
$active
})
{
errors
errors
# We have ID in a deeply nested fragment
# 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
{
integration
{
...
HttpIntegrationItem
...
HttpIntegrationItem
}
}
...
...
app/assets/javascripts/alerts_settings/graphql/mutations/destroy_http_integration.mutation.graphql
View file @
dbc8e52c
...
@@ -4,8 +4,7 @@ mutation destroyHttpIntegration($id: ID!) {
...
@@ -4,8 +4,7 @@ mutation destroyHttpIntegration($id: ID!) {
httpIntegrationDestroy
(
input
:
{
id
:
$id
})
{
httpIntegrationDestroy
(
input
:
{
id
:
$id
})
{
errors
errors
# We have ID in a deeply nested fragment
# 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
{
integration
{
...
HttpIntegrationItem
...
HttpIntegrationItem
}
}
...
...
app/assets/javascripts/alerts_settings/graphql/mutations/reset_http_token.mutation.graphql
View file @
dbc8e52c
...
@@ -4,8 +4,7 @@ mutation resetHttpIntegrationToken($id: ID!) {
...
@@ -4,8 +4,7 @@ mutation resetHttpIntegrationToken($id: ID!) {
httpIntegrationResetToken
(
input
:
{
id
:
$id
})
{
httpIntegrationResetToken
(
input
:
{
id
:
$id
})
{
errors
errors
# We have ID in a deeply nested fragment
# 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
{
integration
{
...
HttpIntegrationItem
...
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!) {
...
@@ -4,8 +4,7 @@ mutation updateHttpIntegration($id: ID!, $name: String!, $active: Boolean!) {
httpIntegrationUpdate
(
input
:
{
id
:
$id
,
name
:
$name
,
active
:
$active
})
{
httpIntegrationUpdate
(
input
:
{
id
:
$id
,
name
:
$name
,
active
:
$active
})
{
errors
errors
# We have ID in a deeply nested fragment
# 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
{
integration
{
...
HttpIntegrationItem
...
HttpIntegrationItem
}
}
...
...
app/assets/javascripts/boards/graphql/board_list_create.mutation.graphql
View file @
dbc8e52c
...
@@ -3,8 +3,7 @@
...
@@ -3,8 +3,7 @@
mutation
createBoardList
(
$boardId
:
BoardID
!,
$backlog
:
Boolean
,
$labelId
:
LabelID
)
{
mutation
createBoardList
(
$boardId
:
BoardID
!,
$backlog
:
Boolean
,
$labelId
:
LabelID
)
{
boardListCreate
(
input
:
{
boardId
:
$boardId
,
backlog
:
$backlog
,
labelId
:
$labelId
})
{
boardListCreate
(
input
:
{
boardId
:
$boardId
,
backlog
:
$backlog
,
labelId
:
$labelId
})
{
# We have ID in a deeply nested fragment
# 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
{
list
{
...
BoardListFragment
...
BoardListFragment
}
}
...
...
app/assets/javascripts/boards/graphql/board_list_update.mutation.graphql
View file @
dbc8e52c
...
@@ -3,8 +3,7 @@
...
@@ -3,8 +3,7 @@
mutation
UpdateBoardList
(
$listId
:
ID
!,
$position
:
Int
,
$collapsed
:
Boolean
)
{
mutation
UpdateBoardList
(
$listId
:
ID
!,
$position
:
Int
,
$collapsed
:
Boolean
)
{
updateBoardList
(
input
:
{
listId
:
$listId
,
position
:
$position
,
collapsed
:
$collapsed
})
{
updateBoardList
(
input
:
{
listId
:
$listId
,
position
:
$position
,
collapsed
:
$collapsed
})
{
# We have ID in a deeply nested fragment
# 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
{
list
{
...
BoardListFragment
...
BoardListFragment
}
}
...
...
app/assets/javascripts/boards/graphql/board_lists.query.graphql
View file @
dbc8e52c
...
@@ -14,8 +14,7 @@ query BoardLists(
...
@@ -14,8 +14,7 @@ query BoardLists(
hideBacklogList
hideBacklogList
lists
(
issueFilters
:
$filters
)
{
lists
(
issueFilters
:
$filters
)
{
# We have ID in a deeply nested fragment
# 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
{
nodes
{
...
BoardListFragment
...
BoardListFragment
}
}
...
@@ -29,8 +28,7 @@ query BoardLists(
...
@@ -29,8 +28,7 @@ query BoardLists(
hideBacklogList
hideBacklogList
lists
(
issueFilters
:
$filters
)
{
lists
(
issueFilters
:
$filters
)
{
# We have ID in a deeply nested fragment
# 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
{
nodes
{
...
BoardListFragment
...
BoardListFragment
}
}
...
...
app/assets/javascripts/design_management/graphql/mutations/upload_design.mutation.graphql
View file @
dbc8e52c
...
@@ -3,8 +3,7 @@
...
@@ -3,8 +3,7 @@
mutation
uploadDesign
(
$files
:
[
Upload
!]!,
$projectPath
:
ID
!,
$iid
:
ID
!)
{
mutation
uploadDesign
(
$files
:
[
Upload
!]!,
$projectPath
:
ID
!,
$iid
:
ID
!)
{
designManagementUpload
(
input
:
{
projectPath
:
$projectPath
,
iid
:
$iid
,
files
:
$files
})
{
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
{
designs
{
...
DesignItem
...
DesignItem
versions
{
versions
{
...
...
app/assets/javascripts/design_management/graphql/queries/get_design.query.graphql
View file @
dbc8e52c
...
@@ -13,8 +13,7 @@ query getDesign(
...
@@ -13,8 +13,7 @@ query getDesign(
id
id
designCollection
{
designCollection
{
designs
(
atVersion
:
$atVersion
,
filenames
:
$filenames
)
{
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
{
nodes
{
...
DesignItem
...
DesignItem
issue
{
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
{
fragment
UserAvailability
on
User
{
status
{
status
{
availability
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
{
fragment
IncidentFields
on
Issue
{
severity
severity
}
}
app/assets/javascripts/runner/graphql/get_runner.query.graphql
View file @
dbc8e52c
...
@@ -2,8 +2,7 @@
...
@@ -2,8 +2,7 @@
query
getRunner
(
$id
:
CiRunnerID
!)
{
query
getRunner
(
$id
:
CiRunnerID
!)
{
# We have an id in deeply nested fragment
# 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
)
{
runner
(
id
:
$id
)
{
...
RunnerDetails
...
RunnerDetails
}
}
...
...
app/assets/javascripts/runner/graphql/runner_update.mutation.graphql
View file @
dbc8e52c
...
@@ -6,8 +6,7 @@
...
@@ -6,8 +6,7 @@
mutation
runnerUpdate
(
$input
:
RunnerUpdateInput
!)
{
mutation
runnerUpdate
(
$input
:
RunnerUpdateInput
!)
{
runnerUpdate
(
input
:
$input
)
{
runnerUpdate
(
input
:
$input
)
{
# We have an id in deep nested fragment
# 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
{
runner
{
...
RunnerDetails
...
RunnerDetails
}
}
...
...
app/graphql/queries/epic/epic_children.query.graphql
View file @
dbc8e52c
...
@@ -72,8 +72,7 @@ query childItems(
...
@@ -72,8 +72,7 @@ query childItems(
edges
{
edges
{
__typename
__typename
# We have an id in deeply nested fragment
# 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
{
node
{
__typename
__typename
...
EpicNode
...
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(
...
@@ -18,8 +18,7 @@ mutation createHttpIntegrationEE(
)
{
)
{
errors
errors
# We have an id in deeply nested fragment
# 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
{
integration
{
...
HttpIntegrationItem
...
HttpIntegrationItem
}
}
...
...
ee/app/assets/javascripts/alerts_settings/graphql/mutations/update_http_integration.mutation.graphql
View file @
dbc8e52c
...
@@ -18,8 +18,7 @@ mutation updateHttpIntegrationEE(
...
@@ -18,8 +18,7 @@ mutation updateHttpIntegrationEE(
)
{
)
{
errors
errors
# We have an id in deeply nested fragment
# 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
{
integration
{
...
HttpIntegrationItem
...
HttpIntegrationItem
}
}
...
...
ee/app/assets/javascripts/boards/graphql/board_list_create.mutation.graphql
View file @
dbc8e52c
...
@@ -19,8 +19,7 @@ mutation createBoardListEE(
...
@@ -19,8 +19,7 @@ mutation createBoardListEE(
}
}
)
{
)
{
# We have an id in deeply nested fragment
# 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
{
list
{
...
BoardListFragment
...
BoardListFragment
}
}
...
...
ee/app/assets/javascripts/boards/graphql/board_lists.query.graphql
View file @
dbc8e52c
...
@@ -14,8 +14,7 @@ query ListIssues(
...
@@ -14,8 +14,7 @@ query ListIssues(
hideBacklogList
hideBacklogList
lists
(
issueFilters
:
$filters
)
{
lists
(
issueFilters
:
$filters
)
{
# We have an id in deeply nested fragment
# 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
{
nodes
{
...
BoardListFragment
...
BoardListFragment
}
}
...
@@ -29,8 +28,7 @@ query ListIssues(
...
@@ -29,8 +28,7 @@ query ListIssues(
hideBacklogList
hideBacklogList
lists
(
issueFilters
:
$filters
)
{
lists
(
issueFilters
:
$filters
)
{
# We have an id in deeply nested fragment
# 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
{
nodes
{
...
BoardListFragment
...
BoardListFragment
}
}
...
...
ee/app/assets/javascripts/boards/graphql/epic_create.mutation.graphql
View file @
dbc8e52c
...
@@ -4,8 +4,7 @@
...
@@ -4,8 +4,7 @@
mutation
CreateEpic
(
$input
:
CreateEpicInput
!)
{
mutation
CreateEpic
(
$input
:
CreateEpicInput
!)
{
createEpic
(
input
:
$input
)
{
createEpic
(
input
:
$input
)
{
# We have an id in deeply nested fragment
# 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
{
epic
{
...
EpicNode
...
EpicNode
labels
{
labels
{
...
...
ee/app/assets/javascripts/boards/graphql/list_update_limit_metrics.mutation.graphql
View file @
dbc8e52c
...
@@ -3,8 +3,7 @@
...
@@ -3,8 +3,7 @@
mutation
boardListUpdateLimitMetrics
(
$input
:
BoardListUpdateLimitMetricsInput
!)
{
mutation
boardListUpdateLimitMetrics
(
$input
:
BoardListUpdateLimitMetricsInput
!)
{
boardListUpdateLimitMetrics
(
input
:
$input
)
{
boardListUpdateLimitMetrics
(
input
:
$input
)
{
# We have an id in deeply nested fragment
# 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
{
list
{
...
BoardListFragment
...
BoardListFragment
}
}
...
...
ee/app/assets/javascripts/boards/graphql/lists_epics.query.graphql
View file @
dbc8e52c
...
@@ -19,8 +19,7 @@ query epicBoardListEpics(
...
@@ -19,8 +19,7 @@ query epicBoardListEpics(
epics
(
first
:
$first
,
after
:
$after
,
filters
:
$filters
)
{
epics
(
first
:
$first
,
after
:
$after
,
filters
:
$filters
)
{
edges
{
edges
{
# We have an id in deeply nested fragment
# 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
{
node
{
...
EpicNode
...
EpicNode
relativePosition
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
{
fragment
IncidentFields
on
Issue
{
severity
severity
statusPagePublishedIncident
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!,
...
@@ -7,8 +7,7 @@ query getShiftsForRotations($projectPath: ID!, $startsAt: Time!, $endsAt: Time!,
nodes
{
nodes
{
rotations
{
rotations
{
# We have an id in deeply nested fragment
# 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
{
nodes
{
...
OnCallRotationWithShifts
...
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"
#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
{
fragment
ProjectVulnerabilitySeveritiesCount
on
Project
{
vulnerabilitySeveritiesCount
(
state
:
[
DETECTED
,
CONFIRMED
])
{
vulnerabilitySeveritiesCount
(
state
:
[
DETECTED
,
CONFIRMED
])
{
...
VulnerabilitySeveritiesCount
...
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) {
...
@@ -10,8 +10,7 @@ query searchEpics($fullPath: ID!, $search: String, $state: EpicState) {
includeDescendantGroups
:
false
includeDescendantGroups
:
false
)
{
)
{
# We have an id in deeply nested fragment
# 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
{
nodes
{
...
EpicNode
...
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