Skip to content

Commit

Permalink
Merge pull request #34 from edx/schen/EDUCATOR-3754
Browse files Browse the repository at this point in the history
Add hardcoded page size on frontend
  • Loading branch information
schenedx authored Dec 4, 2018
2 parents ae7544c + de233e0 commit 012bb3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/data/services/LmsApiService.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { configuration } from '../../config';

class LmsApiService {
static baseUrl = configuration.LMS_BASE_URL;
static pageSize = 10

static fetchGradebookData(courseId, searchText, cohort, track) {
let gradebookUrl = `${LmsApiService.baseUrl}/api/grades/v1/gradebook/${courseId}/`;
if (searchText || track || cohort) {
gradebookUrl += '?';
}

gradebookUrl += `?page_size=${LmsApiService.pageSize}&`;
if (searchText) {
gradebookUrl += `username_contains=${searchText}&`;
}
Expand Down

0 comments on commit 012bb3a

Please sign in to comment.