Skip to content

Commit

Permalink
feat: increase pagination cap (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilee2u authored Jun 30, 2023
1 parent 3a89c8e commit 782cf53
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/pages/ExamsPage/components/AttemptList.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import PropTypes from 'prop-types';
import { DataTable } from '@edx/paragon';
import { useIntl } from '@edx/frontend-platform/i18n';
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ExamsPage/data/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export async function getCourseExams(courseId) {
}

export async function getExamAttempts(examId) {
const url = `${getExamsBaseUrl()}/api/v1/instructor_view/attempts?exam_id=${examId}`;
const url = `${getExamsBaseUrl()}/api/v1/instructor_view/attempts?exam_id=${examId}&limit=1000000`;
const response = await getAuthenticatedHttpClient().get(url);
return response.data;
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ExamsPage/data/api.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('ExamsPage data api', () => {
it('calls get on instructor view url with exam id', async () => {
axiosMock.onGet().reply(200, []);
const data = await api.getExamAttempts(examId);
expect(axiosMock.history.get[1].url).toBe('test-exams-url/api/v1/instructor_view/attempts?exam_id=0');
expect(axiosMock.history.get[1].url).toBe('test-exams-url/api/v1/instructor_view/attempts?exam_id=0&limit=1000000');
expect(data).toEqual([]);
});
});
Expand Down

0 comments on commit 782cf53

Please sign in to comment.