From 97d3a29a7f94e9552a50d0541ba51e0643e71480 Mon Sep 17 00:00:00 2001 From: Ben Warzeski Date: Fri, 30 Jul 2021 11:59:01 -0400 Subject: [PATCH] fix: add track back into lms api service calls. (#207) * fix: add track back into lms api service calls. * fix tests * v1.4.44 --- package.json | 2 +- src/data/selectors/index.js | 1 + src/data/selectors/index.test.js | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 565be47a..1082a94c 100755 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/data/selectors/index.js b/src/data/selectors/index.js index c4be8f7c..10e0de07 100644 --- a/src/data/selectors/index.js +++ b/src/data/selectors/index.js @@ -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( diff --git a/src/data/selectors/index.test.js b/src/data/selectors/index.test.js index 5692bc3d..00e08c92 100644 --- a/src/data/selectors/index.test.js +++ b/src/data/selectors/index.test.js @@ -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'); @@ -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: {