summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/redux/sagas/portfolios.js
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2021-07-07 16:36:54 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2021-07-07 16:36:54 +0200
commitd28a2f194a75eb86095485ae4f88be349bcc18b6 (patch)
treed8c0ad6e95074d31388c302c1683ca34f45f7553 /opendc-web/opendc-web-ui/src/redux/sagas/portfolios.js
parente5e5d2c65e583493870bc0b62fb185c5e757c13f (diff)
ui: Fetch schedulers and traces using React Query
This change updates the OpenDC frontend to fetch schedulers and traces using React Query, removing its dependency on Redux.
Diffstat (limited to 'opendc-web/opendc-web-ui/src/redux/sagas/portfolios.js')
-rw-r--r--opendc-web/opendc-web-ui/src/redux/sagas/portfolios.js7
1 files changed, 0 insertions, 7 deletions
diff --git a/opendc-web/opendc-web-ui/src/redux/sagas/portfolios.js b/opendc-web/opendc-web-ui/src/redux/sagas/portfolios.js
index c32fcdc0..68956225 100644
--- a/opendc-web/opendc-web-ui/src/redux/sagas/portfolios.js
+++ b/opendc-web/opendc-web-ui/src/redux/sagas/portfolios.js
@@ -2,8 +2,6 @@ import { call, put, select, delay, getContext } from 'redux-saga/effects'
import { addToStore } from '../actions/objects'
import { addPortfolio, deletePortfolio, getPortfolio, updatePortfolio } from '../../api/portfolios'
import { fetchProject } from '../../api/projects'
-import { fetchAndStoreAllSchedulers, fetchAndStoreAllTraces } from './objects'
-import { fetchAndStoreAllTopologiesOfProject } from './topology'
import { getScenario } from '../../api/scenarios'
export function* onOpenPortfolioSucceeded(action) {
@@ -15,8 +13,6 @@ export function* onOpenPortfolioSucceeded(action) {
)
yield fetchAndStoreAllTopologiesOfProject(action.projectId)
yield fetchPortfoliosOfProject(project)
- yield fetchAndStoreAllSchedulers()
- yield fetchAndStoreAllTraces()
yield watchForPortfolioResults(action.portfolioId)
} catch (error) {
@@ -55,9 +51,6 @@ export function* getCurrentUnfinishedScenarios(portfolioId) {
export function* fetchPortfoliosOfProject(project) {
try {
- yield fetchAndStoreAllSchedulers()
- yield fetchAndStoreAllTraces()
-
for (const i in project.portfolioIds) {
yield fetchPortfolioWithScenarios(project.portfolioIds[i])
}