2020-11-27 08:51:08 +00:00
|
|
|
import { call, all, spawn } from "redux-saga/effects";
|
2019-11-25 05:07:27 +00:00
|
|
|
import pageSagas from "sagas/PageSagas";
|
2019-10-18 08:16:26 +00:00
|
|
|
import { fetchWidgetCardsSaga } from "./WidgetSidebarSagas";
|
2019-10-21 15:12:45 +00:00
|
|
|
import { watchActionSagas } from "./ActionSagas";
|
2020-07-03 08:58:58 +00:00
|
|
|
import { watchActionExecutionSagas } from "sagas/ActionExecutionSagas";
|
2019-09-19 22:25:37 +00:00
|
|
|
import widgetOperationSagas from "./WidgetOperationSagas";
|
2019-09-27 16:05:33 +00:00
|
|
|
import errorSagas from "./ErrorSagas";
|
2019-10-24 09:23:50 +00:00
|
|
|
import applicationSagas from "./ApplicationSagas";
|
2019-11-07 09:32:38 +00:00
|
|
|
import { watchDatasourcesSagas } from "./DatasourcesSagas";
|
2019-11-01 07:11:32 +00:00
|
|
|
import initSagas from "./InitSagas";
|
2019-11-25 09:15:11 +00:00
|
|
|
import apiPaneSagas from "./ApiPaneSagas";
|
2019-12-16 08:49:10 +00:00
|
|
|
import userSagas from "./userSagas";
|
2019-11-29 05:22:49 +00:00
|
|
|
import pluginSagas from "./PluginSagas";
|
2019-12-23 12:16:33 +00:00
|
|
|
import orgSagas from "./OrgSagas";
|
2020-04-14 12:34:14 +00:00
|
|
|
import importedCollectionsSagas from "./CollectionSagas";
|
|
|
|
|
import providersSagas from "./ProvidersSaga";
|
|
|
|
|
import curlImportSagas from "./CurlImportSagas";
|
2020-05-05 07:50:30 +00:00
|
|
|
import queryPaneSagas from "./QueryPaneSagas";
|
2020-03-27 09:02:11 +00:00
|
|
|
import modalSagas from "./ModalSagas";
|
2020-04-13 08:24:13 +00:00
|
|
|
import batchSagas from "./BatchSagas";
|
2020-09-22 11:56:11 +00:00
|
|
|
import themeSagas from "./ThemeSaga";
|
2021-01-04 10:16:08 +00:00
|
|
|
import evaluationsSaga from "./EvaluationsSaga";
|
2020-12-30 07:31:20 +00:00
|
|
|
import onboardingSaga from "./OnboardingSagas";
|
2021-04-22 03:30:09 +00:00
|
|
|
import utilSagas from "./UtilSagas";
|
|
|
|
|
import saaSPaneSagas from "./SaaSPaneSagas";
|
2021-01-14 14:37:21 +00:00
|
|
|
import actionExecutionChangeListeners from "./WidgetLoadingSaga";
|
2021-03-08 08:24:12 +00:00
|
|
|
import globalSearchSagas from "./GlobalSearchSagas";
|
|
|
|
|
import recentEntitiesSagas from "./RecentEntitiesSagas";
|
2020-11-27 08:51:08 +00:00
|
|
|
import log from "loglevel";
|
|
|
|
|
import * as sentry from "@sentry/react";
|
2019-11-01 07:11:32 +00:00
|
|
|
|
2019-03-26 15:28:24 +00:00
|
|
|
export function* rootSaga() {
|
2020-11-27 08:51:08 +00:00
|
|
|
const sagas = [
|
|
|
|
|
initSagas,
|
|
|
|
|
pageSagas,
|
|
|
|
|
fetchWidgetCardsSaga,
|
|
|
|
|
watchActionSagas,
|
|
|
|
|
watchActionExecutionSagas,
|
|
|
|
|
widgetOperationSagas,
|
|
|
|
|
errorSagas,
|
|
|
|
|
watchDatasourcesSagas,
|
|
|
|
|
applicationSagas,
|
|
|
|
|
apiPaneSagas,
|
|
|
|
|
userSagas,
|
|
|
|
|
pluginSagas,
|
|
|
|
|
orgSagas,
|
|
|
|
|
importedCollectionsSagas,
|
|
|
|
|
providersSagas,
|
|
|
|
|
curlImportSagas,
|
|
|
|
|
queryPaneSagas,
|
|
|
|
|
modalSagas,
|
|
|
|
|
batchSagas,
|
|
|
|
|
themeSagas,
|
|
|
|
|
evaluationsSaga,
|
2020-12-30 07:31:20 +00:00
|
|
|
onboardingSaga,
|
2021-01-14 14:37:21 +00:00
|
|
|
actionExecutionChangeListeners,
|
2021-04-22 03:30:09 +00:00
|
|
|
utilSagas,
|
|
|
|
|
saaSPaneSagas,
|
2021-03-08 08:24:12 +00:00
|
|
|
globalSearchSagas,
|
|
|
|
|
recentEntitiesSagas,
|
2021-04-22 03:30:09 +00:00
|
|
|
utilSagas,
|
|
|
|
|
saaSPaneSagas,
|
2020-11-27 08:51:08 +00:00
|
|
|
];
|
|
|
|
|
yield all(
|
2020-12-24 04:32:25 +00:00
|
|
|
sagas.map((saga) =>
|
2020-11-27 08:51:08 +00:00
|
|
|
spawn(function*() {
|
|
|
|
|
while (true) {
|
|
|
|
|
try {
|
|
|
|
|
yield call(saga);
|
|
|
|
|
break;
|
|
|
|
|
} catch (e) {
|
|
|
|
|
log.error(e);
|
|
|
|
|
sentry.captureException(e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}),
|
|
|
|
|
),
|
|
|
|
|
);
|
2019-03-26 15:28:24 +00:00
|
|
|
}
|