Commit 520f6eaf authored by Brandon Labuschagne's avatar Brandon Labuschagne

Add subgroups to devops adoption

This was previously removed, but is  now
being re-instated again.
parent 2430d6ae
...@@ -13,7 +13,6 @@ export const resolvers = { ...@@ -13,7 +13,6 @@ export const resolvers = {
const params = { const params = {
per_page: Api.DEFAULT_PER_PAGE, per_page: Api.DEFAULT_PER_PAGE,
search, search,
top_level_only: true,
}; };
if (nextPage) { if (nextPage) {
params.page = nextPage; params.page = nextPage;
......
...@@ -23,11 +23,11 @@ describe('DevOps GraphQL resolvers', () => { ...@@ -23,11 +23,11 @@ describe('DevOps GraphQL resolvers', () => {
}); });
describe('groups query', () => { describe('groups query', () => {
it('only fetches top level groups', async () => { it('fetches all groups', async () => {
mockAdapter.onGet(fetchGroupsUrl).reply(httpStatus.OK, groupData, pageData); mockAdapter.onGet(fetchGroupsUrl).reply(httpStatus.OK, groupData, pageData);
await mockClient.query({ query: getGroupsQuery }); await mockClient.query({ query: getGroupsQuery });
expect(mockAdapter.history.get[0].params).toEqual( expect(mockAdapter.history.get[0].params).not.toEqual(
expect.objectContaining({ top_level_only: true }), expect.objectContaining({ top_level_only: true }),
); );
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment