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
61dc8aaf
Commit
61dc8aaf
authored
Oct 29, 2021
by
mfluharty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust query to get nodes without edges
We're not using the edges for anything anyway
parent
22282d54
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
19 deletions
+14
-19
ee/app/assets/javascripts/codequality_report/codequality_report_graphql.vue
...scripts/codequality_report/codequality_report_graphql.vue
+7
-10
ee/app/assets/javascripts/codequality_report/graphql/queries/get_code_quality_violations.query.graphql
...graphql/queries/get_code_quality_violations.query.graphql
+6
-8
ee/spec/frontend/codequality_report/codequality_report_graphql_spec.js
...end/codequality_report/codequality_report_graphql_spec.js
+1
-1
No files found.
ee/app/assets/javascripts/codequality_report/codequality_report_graphql.vue
View file @
61dc8aaf
...
...
@@ -36,15 +36,12 @@ export default {
},
update
({
project
:
{
pipeline
:
{
codeQualityReports
:
{
edg
es
=
[],
pageInfo
=
{},
count
=
0
}
=
{}
}
=
{},
pipeline
:
{
codeQualityReports
:
{
nod
es
=
[],
pageInfo
=
{},
count
=
0
}
=
{}
}
=
{},
}
=
{},
})
{
return
{
edges
,
parsedList
:
parseCodeclimateMetrics
(
edges
.
map
((
edge
)
=>
edge
.
node
),
this
.
blobPath
,
),
nodes
,
parsedList
:
parseCodeclimateMetrics
(
nodes
,
this
.
blobPath
),
count
,
pageInfo
,
};
...
...
@@ -62,7 +59,7 @@ export default {
data
()
{
return
{
codequalityViolations
:
{
edg
es
:
[],
nod
es
:
[],
parsedList
:
[],
count
:
0
,
pageInfo
:
{},
...
...
@@ -116,9 +113,9 @@ export default {
},
updateQuery
:
(
previousResult
,
{
fetchMoreResult
})
=>
{
return
produce
(
fetchMoreResult
,
(
draftData
)
=>
{
draftData
.
project
.
pipeline
.
codeQualityReports
.
edg
es
=
[
...
previousResult
.
project
.
pipeline
.
codeQualityReports
.
edg
es
,
...
draftData
.
project
.
pipeline
.
codeQualityReports
.
edg
es
,
draftData
.
project
.
pipeline
.
codeQualityReports
.
nod
es
=
[
...
previousResult
.
project
.
pipeline
.
codeQualityReports
.
nod
es
,
...
draftData
.
project
.
pipeline
.
codeQualityReports
.
nod
es
,
];
});
},
...
...
ee/app/assets/javascripts/codequality_report/graphql/queries/get_code_quality_violations.query.graphql
View file @
61dc8aaf
...
...
@@ -5,14 +5,12 @@ query getCodeQualityViolations($projectPath: ID!, $iid: ID!, $first: Int, $after
pipeline
(
iid
:
$iid
)
{
codeQualityReports
(
first
:
$first
,
after
:
$after
)
{
count
edges
{
node
{
line
description
path
fingerprint
severity
}
nodes
{
line
description
path
fingerprint
severity
}
pageInfo
{
...
PageInfo
...
...
ee/spec/frontend/codequality_report/codequality_report_graphql_spec.js
View file @
61dc8aaf
...
...
@@ -114,7 +114,7 @@ describe('Codequality report app', () => {
pipeline
:
{
codeQualityReports
:
{
...
codeQualityViolations
,
edg
es
:
[],
nod
es
:
[],
count
:
0
,
},
},
...
...
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