export function * jobsRegister () { yield takeLatest(Types.GET_JOBS, getJobs); yield takeLatest(Types.GET_JOB, getJob); yield takeEvery(Types.CREATE_JOB, createJob); yield takeEvery(Types.EDIT_JOB, editJob); yield takeLatest(Types.STOP_RUNNING_JOB, stopRunningJob); yield takeLatest(Types.DELETE_JOB, deleteJob); }
export function* rootSaga() { yield[ fork(loadGames), takeLatest('GET_GAMES', loadGames) ]; }
function* watcher() { yield takeLatest(DO_SIGNIN, function* ({ payload }) { let response; try { response = yield loginService(payload); } catch (e) { return yield put(actionDoSignInFailure(e)); } yield put(actionDoSignInSuccess(response.data)); }); }
function* watcher() { yield takeLatest(DO_SIGNIN_SUCCESS, function* ({ data }) { // eslint-disable-line addDefaultHeaders({ Authorization: data.accessToken }); getSocket() .connect() .login(data) .trace(); scheduleRenewToken(data); }); }
export function* processorsRegister() { yield takeLatest(Types.GET_PROCESSORS, getProcessors); yield takeLatest(Types.CREATE_PROCESSOR, createProcessor); yield takeLatest(Types.DELETE_PROCESSOR, deleteProcessor); yield takeLatest(Types.EDIT_PROCESSOR, editProcessor); }
/* ------------- API ------------- */ // The API we use is only used from Sagas, so we create it here and pass along // to the sagas which need it. // const api = DebugConfig.useFixtures ? FixtureAPI : API.create() /* ------------- Connect Types To Sagas ------------- */ export default function * root () { yield all([ takeLatest(StartupTypes.STARTUP, startup) ]) }
export function* watchLoadPublicationRequest() { yield takeLatest( [LOAD_PUBLICATION, PUBLISH_SUCCESS], handleLoadPublicationRequest, ); }
export function* reportsRegister() { yield takeLatest(Types.GET_REPORTS, getReports); yield takeLatest(Types.GET_REPORT, getReport); yield takeLatest(Types.GET_LAST_REPORTS, getLastReports); yield takeLatest(Types.GET_AGGREGATE_REPORTS, getAggregateReports); yield takeLatest(Types.CREATE_BENCHMARK, createBenchmark); yield takeLatest(Types.EDIT_REPORT, editReport); yield takeLatest(Types.GET_BENCHMARK, getBenchmark); yield takeLatest(Types.DELETE_REPORT, deleteReports); }
export function* testsRegister() { yield takeLatest(Types.GET_TESTS, getTests); yield takeLatest(Types.GET_TEST, getTest); yield takeLatest(Types.GET_FILE_METADATA, getFileMetadata); yield takeLatest(Types.CREATE_TEST, createTest); yield takeLatest(Types.DELETE_TEST, deleteTest); yield takeLatest(Types.EDIT_TEST, editTest); }
export function* configRegister() { yield takeLatest(Types.GET_CONFIG, getConfig); yield takeLatest(Types.UPDATE_CONFIG, editConfig); yield takeLatest(Types.DELETE_CONFIG_KEY, deleteConfigKey); yield takeLatest(Types.CLEAN_FINISHED_CONTAINERS, cleanFinishedContainers); }
export function* itemQuantitySaga() { yield [ takeLatest(DECREASE_ITEM_QUANTITY, handleDecreaseItemQuantity), takeLatest(INCREASE_ITEM_QUANTITY, handleIncreaseItemQuantity) ] }
export default function* watchLoadField() { yield takeLatest( [LOAD_FIELD, IMPORT_FIELDS_SUCCESS, UPLOAD_SUCCESS], handleLoadField, ); }
export default function* watchComputePreview() { yield takeLatest( [ REDUX_FORM_CHANGE, REDUX_FORM_ARRAY_REMOVE, REDUX_FORM_INITIALIZE, REDUX_FORM_DESTROY, ], handleComputeFieldPreview, ); }
export default function* watchComputePreview() { yield takeLatest( [ LOAD_PARSING_RESULT_SUCCESS, LOAD_FIELD_SUCCESS, REMOVE_FIELD_SUCCESS, SAVE_FIELD_SUCCESS, ], handleComputePublicationPreview, ); }
export default function*() { yield takeLatest( LOAD_REMOVED_RESOURCE_PAGE, handleLoadRemovedResourcePageRequest, ); }