feat: connect batch unlock to the api
This commit is contained in:
33529
package-lock.json
generated
33529
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -97,10 +97,13 @@ const unlockSubmission = (submissionUUID) => client().delete(
|
||||
* batchUnlockSubmissions(submissionUUIDs)
|
||||
* @param {string[]} submissionUUIDs - list of submission uuids
|
||||
*/
|
||||
const batchUnlockSubmissions = (submissionUUIDs) => {
|
||||
console.log({ batchUnlockSubmissions: submissionUUIDs });
|
||||
return new Promise(resolve => resolve());
|
||||
};
|
||||
const batchUnlockSubmissions = (submissionUUIDs) => post(
|
||||
stringifyUrl(
|
||||
urls.batchUnlockSubmissionsUrl,
|
||||
{ [paramKeys.oraLocation]: locationId },
|
||||
),
|
||||
{ submissionUUIDs },
|
||||
).then(response => response.data);
|
||||
|
||||
/*
|
||||
* post('api/updateGrade', { submissionUUID, gradeData })
|
||||
|
||||
@@ -10,6 +10,7 @@ const oraInitializeUrl = `${baseEsgUrl}initialize`;
|
||||
const fetchSubmissionUrl = `${baseEsgUrl}submission`;
|
||||
const fetchSubmissionStatusUrl = `${baseEsgUrl}submission/status`;
|
||||
const fetchSubmissionLockUrl = `${baseEsgUrl}submission/lock`;
|
||||
const batchUnlockSubmissionsUrl = `${baseEsgUrl}submission/batch/unlock`;
|
||||
const updateSubmissionGradeUrl = `${baseEsgUrl}submission/grade`;
|
||||
|
||||
const course = (courseId) => `${baseUrl}/courses/${courseId}`;
|
||||
@@ -25,6 +26,7 @@ export default StrictDict({
|
||||
fetchSubmissionUrl,
|
||||
fetchSubmissionStatusUrl,
|
||||
fetchSubmissionLockUrl,
|
||||
batchUnlockSubmissionsUrl,
|
||||
updateSubmissionGradeUrl,
|
||||
baseUrl,
|
||||
course,
|
||||
|
||||
Reference in New Issue
Block a user