Commit ac530fa4 authored by Martin Wortschack's avatar Martin Wortschack

Merge branch '329445-devops-adoption-should-not-only-fetch-the-first-200-groups' into 'master'

DevOps Adoption - Change group API to 100 per request

See merge request gitlab-org/gitlab!63415
parents 7761f170 d0ea76ae
...@@ -6,6 +6,8 @@ export const MAX_SEGMENTS = 30; ...@@ -6,6 +6,8 @@ export const MAX_SEGMENTS = 30;
export const MAX_REQUEST_COUNT = 10; export const MAX_REQUEST_COUNT = 10;
export const PER_PAGE = 100;
export const DEVOPS_ADOPTION_SEGMENT_MODAL_ID = 'devopsSegmentModal'; export const DEVOPS_ADOPTION_SEGMENT_MODAL_ID = 'devopsSegmentModal';
export const DEVOPS_ADOPTION_SEGMENT_DELETE_MODAL_ID = 'devopsSegmentDeleteModal'; export const DEVOPS_ADOPTION_SEGMENT_DELETE_MODAL_ID = 'devopsSegmentDeleteModal';
......
...@@ -3,6 +3,7 @@ import VueApollo from 'vue-apollo'; ...@@ -3,6 +3,7 @@ import VueApollo from 'vue-apollo';
import Api from 'ee/api'; import Api from 'ee/api';
import createDefaultClient from '~/lib/graphql'; import createDefaultClient from '~/lib/graphql';
import axios from '~/lib/utils/axios_utils'; import axios from '~/lib/utils/axios_utils';
import { PER_PAGE } from './constants';
Vue.use(VueApollo); Vue.use(VueApollo);
...@@ -13,7 +14,7 @@ export const createResolvers = (groupId) => ({ ...@@ -13,7 +14,7 @@ export const createResolvers = (groupId) => ({
? Api.buildUrl(Api.subgroupsPath).replace(':id', groupId) ? Api.buildUrl(Api.subgroupsPath).replace(':id', groupId)
: Api.buildUrl(Api.groupsPath); : Api.buildUrl(Api.groupsPath);
const params = { const params = {
per_page: Api.DEFAULT_PER_PAGE, per_page: PER_PAGE,
search, search,
}; };
if (nextPage) { if (nextPage) {
......
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