Skip to content

Commit

Permalink
fix: add track back into lms api service calls. (#207)
Browse files Browse the repository at this point in the history
* fix: add track back into lms api service calls.

* fix tests

* v1.4.44
  • Loading branch information
muselesscreator authored Jul 30, 2021
1 parent 5b8f67e commit 97d3a29
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@edx/frontend-app-gradebook",
"version": "1.4.43",
"version": "1.4.44",
"description": "edx editable gradebook-ui to manipulate grade overrides on subsections",
"repository": {
"type": "git",
Expand Down
1 change: 1 addition & 0 deletions src/data/selectors/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ export const interventionExportUrl = (state) => (
*/
export const lmsApiServiceArgs = (state) => ({
cohort: cohorts.getCohortNameById(state, filters.cohort(state)),
track: filters.track(state),
assignment: filters.selectedAssignmentId(state),
assignmentType: filters.assignmentType(state),
assignmentGradeMin: grades.formatMinAssignmentGrade(
Expand Down
2 changes: 2 additions & 0 deletions src/data/selectors/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ describe('root selectors', () => {
selectors.filters.selectedAssignmentId = mockFn('selectedAssignmentId');
selectors.filters.assignmentType = mockFn('assignmentType');
selectors.filters.cohort = mockFn('cohort');
selectors.filters.track = mockFn('track');
selectors.filters.assignmentGradeMax = mockFn('assignmentGradeMax');
selectors.filters.assignmentGradeMin = mockFn('assignmentGradeMin');
selectors.filters.courseGradeMax = mockFn('courseGradeMax');
Expand All @@ -392,6 +393,7 @@ describe('root selectors', () => {
const assignmentId = { selectedAssignmentId: testState };
expect(moduleSelectors.lmsApiServiceArgs(testState)).toEqual({
cohort: { getCohortNameById: testState },
track: { track: testState },
assignment: assignmentId,
assignmentType: { assignmentType: testState },
assignmentGradeMin: {
Expand Down

0 comments on commit 97d3a29

Please sign in to comment.