client/app/bundles/course/assessment/submission/actions/submissions.js
Function downloadSubmissions
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function downloadSubmissions(type, downloadFormat) {
const actions =
downloadFormat === 'zip'
? {
request: actionTypes.DOWNLOAD_SUBMISSIONS_FILES_REQUEST,
- Create a ticketCreate a ticket
Function unsubmitAllSubmissions
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function unsubmitAllSubmissions(type) {
return (dispatch) => {
dispatch({ type: actionTypes.UNSUBMIT_ALL_SUBMISSIONS_REQUEST });
const handleSuccess = () => {
- Create a ticketCreate a ticket
Function publishSubmissions
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function publishSubmissions(type) {
return (dispatch) => {
dispatch({ type: actionTypes.PUBLISH_SUBMISSIONS_REQUEST });
const handleSuccess = () => {
- Create a ticketCreate a ticket
Function forceSubmitSubmissions
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function forceSubmitSubmissions(type) {
return (dispatch) => {
dispatch({ type: actionTypes.FORCE_SUBMIT_SUBMISSIONS_REQUEST });
const handleSuccess = () => {
- Create a ticketCreate a ticket
Function deleteAllSubmissions
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function deleteAllSubmissions(type) {
return (dispatch) => {
dispatch({ type: actionTypes.DELETE_ALL_SUBMISSIONS_REQUEST });
const handleSuccess = () => {
- Create a ticketCreate a ticket
Function downloadStatistics
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function downloadStatistics(type) {
return (dispatch) => {
dispatch({ type: actionTypes.DOWNLOAD_STATISTICS_REQUEST });
const handleSuccess = (successData) => {
- Create a ticketCreate a ticket