summaryrefslogtreecommitdiff
path: root/src/sagas/objects.js
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-14 14:07:21 +0200
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-23 10:06:02 +0200
commitf604406453f95c82c3e5e4294a51245661868bbe (patch)
tree6282cc3eb3164ddd94052175f872c8fc2ee2f623 /src/sagas/objects.js
parent7151ae60cf587a502a7e09d19ebd0fd33e761bf2 (diff)
First attempt at experiment list UI
Diffstat (limited to 'src/sagas/objects.js')
-rw-r--r--src/sagas/objects.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/sagas/objects.js b/src/sagas/objects.js
index 508f1cf5..375781be 100644
--- a/src/sagas/objects.js
+++ b/src/sagas/objects.js
@@ -1,8 +1,10 @@
import {call, put, select} from "redux-saga/effects";
import {addToStore} from "../actions/objects";
import {getDatacenter, getRoomsOfDatacenter} from "../api/routes/datacenters";
+import {getAllJobs} from "../api/routes/jobs";
import {getPath, getSectionsOfPath} from "../api/routes/paths";
import {getTilesOfRoom} from "../api/routes/rooms";
+import {getAllSchedulers} from "../api/routes/schedulers";
import {getSection} from "../api/routes/sections";
import {getPathsOfSimulation, getSimulation} from "../api/routes/simulations";
import {
@@ -18,7 +20,9 @@ import {
getPSU,
getStorage
} from "../api/routes/specifications";
+import {getAllTasks} from "../api/routes/tasks";
import {getMachinesOfRackByTile, getRackByTile} from "../api/routes/tiles";
+import {getAllTraces} from "../api/routes/traces";
import {getUser} from "../api/routes/users";
export const OBJECT_SELECTORS = {
@@ -124,3 +128,15 @@ export const fetchAndStorePath = (id) =>
export const fetchAndStorePathsOfSimulation = (simulationId) =>
fetchAndStoreObjects("path", call(getPathsOfSimulation, simulationId));
+
+export const fetchAndStoreAllTraces = () =>
+ fetchAndStoreObjects("trace", call(getAllTraces));
+
+export const fetchAndStoreAllJobs = () =>
+ fetchAndStoreObjects("job", call(getAllJobs));
+
+export const fetchAndStoreAllTasks = () =>
+ fetchAndStoreObjects("task", call(getAllTasks));
+
+export const fetchAndStoreAllSchedulers = () =>
+ fetchAndStoreObjects("scheduler", call(getAllSchedulers));