client/app/bundles/course/assessment/submission/actions/index.js
Function fetchSubmission
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function fetchSubmission(id, onGetMonitoringSessionId) {
return (dispatch) => {
dispatch({ type: actionTypes.FETCH_SUBMISSION_REQUEST });
return CourseAPI.assessment.submissions
- Create a ticketCreate a ticket
Function toggleViewHistoryMode
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function toggleViewHistoryMode(
viewHistory,
submissionQuestionId,
questionId,
answersLoaded,
- Create a ticketCreate a ticket
Function publish
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function publish(submissionId, grades, exp) {
const payload = {
submission: {
answers: grades,
draft_points_awarded: exp,
- Create a ticketCreate a ticket