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
36bf03d5
Commit
36bf03d5
authored
Jan 13, 2021
by
Brandon Labuschagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DA fetch top level groups
parent
141b45f3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
ee/app/assets/javascripts/admin/dev_ops_report/graphql.js
ee/app/assets/javascripts/admin/dev_ops_report/graphql.js
+1
-0
ee/changelogs/unreleased/296972-disable-and-consider-rolling-back-adoption-report.yml
...972-disable-and-consider-rolling-back-adoption-report.yml
+5
-0
ee/spec/frontend/admin/dev_ops_report/graphql/resolvers_spec.js
...c/frontend/admin/dev_ops_report/graphql/resolvers_spec.js
+9
-0
No files found.
ee/app/assets/javascripts/admin/dev_ops_report/graphql.js
View file @
36bf03d5
...
...
@@ -13,6 +13,7 @@ export const resolvers = {
const
params
=
{
per_page
:
Api
.
DEFAULT_PER_PAGE
,
search
,
top_level_only
:
true
,
};
if
(
nextPage
)
{
params
.
page
=
nextPage
;
...
...
ee/changelogs/unreleased/296972-disable-and-consider-rolling-back-adoption-report.yml
0 → 100644
View file @
36bf03d5
---
title
:
Ensure that only top level groups are fetched for devops adoption
merge_request
:
51565
author
:
type
:
fixed
ee/spec/frontend/admin/dev_ops_report/graphql/resolvers_spec.js
View file @
36bf03d5
...
...
@@ -23,6 +23,15 @@ describe('DevOps GraphQL resolvers', () => {
});
describe
(
'
groups query
'
,
()
=>
{
it
(
'
only fetches top level groups
'
,
async
()
=>
{
mockAdapter
.
onGet
(
fetchGroupsUrl
).
reply
(
httpStatus
.
OK
,
groupData
,
pageData
);
await
mockClient
.
query
({
query
:
getGroupsQuery
});
expect
(
mockAdapter
.
history
.
get
[
0
].
params
).
toEqual
(
expect
.
objectContaining
({
top_level_only
:
true
}),
);
});
it
(
'
when receiving groups data
'
,
async
()
=>
{
mockAdapter
.
onGet
(
fetchGroupsUrl
).
reply
(
httpStatus
.
OK
,
groupData
,
pageData
);
const
result
=
await
mockClient
.
query
({
query
:
getGroupsQuery
});
...
...
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