Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Progress Tracking #57

Draft
wants to merge 142 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
5cb28bb
initial theo communication
anibalsolon Aug 8, 2019
b44d878
Merge branch 'develop' into feature/theo
anibalsolon Aug 8, 2019
f2a1340
theo data-config generation! and some other stuff
anibalsolon Aug 11, 2019
31b5f4b
data config viewer
anibalsolon Aug 30, 2019
4df3f04
Merge branch 'develop' into feature/progress-tracking
anibalsolon Jul 23, 2020
dda1c1e
update lock
anibalsolon Jul 23, 2020
27adfb7
unlink before linking
anibalsolon Jul 23, 2020
ab98471
rename theodore to cpacpy
anibalsolon Jul 23, 2020
23b9fe0
add scheduler id as address
anibalsolon Jul 24, 2020
e626f6f
add loading, do not load as yaml when it is an object, fix constants,…
anibalsolon Jul 24, 2020
53a0f9f
remove old file
anibalsolon Jul 24, 2020
885b723
upgrade material-ui and update w new components
anibalsolon Jul 24, 2020
229dc4c
fix aws credentials problem, in which the field has value `null`
anibalsolon Jul 24, 2020
bb5bd47
give some good ol' updates
anibalsolon Jul 24, 2020
bb5351b
Customize datasets tables
anibalsolon Jul 24, 2020
378f8cd
update from expansionpanel to accordion
anibalsolon Jul 26, 2020
81bcff0
remove extra step on dataset fetching
anibalsolon Jul 26, 2020
962b925
allow box component to be innered
anibalsolon Jul 26, 2020
42fe97a
rework dataset pages, add data views, organize icons
anibalsolon Jul 26, 2020
6b4078d
clean up old environments, add execution stuff
anibalsolon Jul 26, 2020
cd4c830
add TODOs, use integer as versions, use C-PAC version from template
anibalsolon Jul 26, 2020
dcb2f54
cleaning and code styling
anibalsolon Jul 27, 2020
89e26b6
create execution module, dataset views, parametrize scheduler for tas…
anibalsolon Aug 4, 2020
6dd5792
scroll to the top when change pages
anibalsolon Aug 4, 2020
20940f9
theme adjustments
anibalsolon Aug 4, 2020
e1cbefa
add execution pages, fine tuning styles, new icons, yada
anibalsolon Aug 4, 2020
414f3fd
upgrade lab
anibalsolon Aug 4, 2020
5abe495
add CMI icon
anibalsolon Aug 4, 2020
509c2a6
dark mode lol
anibalsolon Aug 8, 2020
f938664
work out polling on the selected scheduler
anibalsolon Aug 8, 2020
fee8c14
styling, cleaning and tooltip abstraction
anibalsolon Aug 8, 2020
9865b88
get current scheduler
anibalsolon Aug 8, 2020
baffd09
error -> failure
anibalsolon Aug 8, 2020
9c61527
scheduler selector and avoiding app rerendering
anibalsolon Aug 8, 2020
0abe161
use current scheduler
anibalsolon Aug 8, 2020
a3674f5
add new view, with less participants
anibalsolon Aug 8, 2020
a1a249f
optimize a tiny bit the state comparison
anibalsolon Aug 15, 2020
5207166
adjust style and forward props to the first element
anibalsolon Aug 15, 2020
b14fd81
scheduler selectors
anibalsolon Aug 28, 2020
ffa010e
execution page with results, storing results on cache
anibalsolon Sep 18, 2020
bda856b
custom method for immutablejs, so to thin objects
anibalsolon Sep 22, 2020
9b7611e
rework breadcrumbs, so to reduce rerenderings
anibalsolon Sep 22, 2020
34b9cee
add date formatting
anibalsolon Sep 22, 2020
26a85ff
execution empty state
anibalsolon Sep 22, 2020
b1c215d
chip for the backend wo scheduler
anibalsolon Sep 22, 2020
cef1eeb
old test data cleanup
anibalsolon Sep 22, 2020
92b95de
Merge branch 'develop' into feature/progress-tracking
anibalsolon Sep 22, 2020
0be763a
Merge branch 'develop' into feature/progress-tracking
anibalsolon Sep 22, 2020
9e0b350
small bug fixes
anibalsolon Jan 12, 2021
6924253
dataset creation
anibalsolon Jan 12, 2021
cbee091
save datasets on edit, handle dataset 404
anibalsolon Jan 13, 2021
bf98fda
Fix the yarn @internal/c-pac initialization problem
YiranCdr Jan 21, 2021
6224fad
Feature: Register new backend
YiranCdr Feb 6, 2021
d3a66b7
Add Sync dataset config yml uploading feature
YiranCdr Feb 24, 2021
7a2fa9c
Add feature: fetch from remote raw (CORS cannot be avoided)
YiranCdr Feb 27, 2021
6317317
Minor Fixes: always show the last entered url in url fetch textfield.
YiranCdr Feb 27, 2021
a166f2e
Feature Improvement: Async data config from file upload
YiranCdr Mar 3, 2021
455f943
Minor Fix
YiranCdr Mar 4, 2021
7141572
Add schedulers states loader & saver
YiranCdr Mar 10, 2021
413ccb4
Feature: Bids build with selected scheduler; modify: fetchURL reformat
YiranCdr Mar 16, 2021
cb08655
fix: remove extra redux/sagas step on dataset url fetching, call fet…
anibalsolon Mar 16, 2021
d225c71
fix: cleanup
anibalsolon Mar 16, 2021
86d9825
fix: unused function
anibalsolon Mar 16, 2021
68953ef
fix: cleanup
anibalsolon Mar 16, 2021
ec1f8f8
Fixes: pull request
YiranCdr Mar 22, 2021
0d54e8a
Fix: all schedulers initialization
YiranCdr Mar 22, 2021
c529cf4
Fix: added back schedulerSelector to Breadcrumbs.js (header)
YiranCdr Mar 22, 2021
96fc914
Fix: scheduler connection testing minor fix
YiranCdr Mar 22, 2021
336fcf2
fix: layout responsive on adding schedulers
anibalsolon Mar 22, 2021
dc61c8d
Fix: small modifications for testing new connection (scheduler)
YiranCdr Mar 22, 2021
363d7de
Fix: new scheduler id generator is good to go.
YiranCdr Mar 23, 2021
645f100
Fix: dataset state mergeDeepIn - version.configuration.option missing
YiranCdr Mar 23, 2021
d262748
Fix: error message handling for testing scheduler connection.
YiranCdr Mar 23, 2021
6d65be6
Merge branch 'ys-dev' into feature/progress-tracking
YiranCdr Mar 23, 2021
cd8e668
Fix: add a default view for generated data config.
YiranCdr Mar 24, 2021
5ef36db
Feature: GUI-side singularity config (executionNewPage)
YiranCdr Mar 24, 2021
fd6c9a7
Feature: Add params/profile to summay (1/2)
YiranCdr Mar 28, 2021
6c9a435
Feature: Execution summary now is an independent class
YiranCdr Mar 28, 2021
d5bad8a
Feature: Executions page summary card inserted.
YiranCdr Mar 28, 2021
3f2a5bc
Fix: (executionNPSum.js) Add a normalPage props (bool) for layout issues
YiranCdr Mar 28, 2021
53fc146
Fix: [exeSummay]minor fix for scheduler profile displayed as "undefined"
YiranCdr Mar 28, 2021
bc7451c
Fix: summary won't be shown in ExecutionsPage.js
YiranCdr Mar 29, 2021
5d21e99
Remove redundant code
YiranCdr Mar 29, 2021
eb1c948
Fixes for merge request.
YiranCdr Apr 2, 2021
d695d25
Merge branch 'ys-dev' into feature/progress-tracking
YiranCdr Apr 2, 2021
fc1a74a
fix: keep views when there are already in place
anibalsolon Apr 8, 2021
dbafb3f
fix: rename dataset
anibalsolon Apr 8, 2021
d00e538
Feature: AuthKey
YiranCdr Apr 13, 2021
3d74fde
Minor Fix
YiranCdr Apr 13, 2021
7c2e170
Feature: scheduler delete button added.
YiranCdr Apr 16, 2021
593cfdf
Fix: All get -> post; Feature: scheduler deletion
YiranCdr Apr 18, 2021
4b92f6a
Minor fixes
YiranCdr Apr 20, 2021
47bd64f
Feature: execution node - reducer side
YiranCdr Apr 25, 2021
387e9cf
Feature: minor scale node info
YiranCdr Apr 27, 2021
240953f
Feature (tmp): large node group enabled.
YiranCdr Apr 27, 2021
485e200
stash
YiranCdr May 3, 2021
0934beb
fix: use headers instead of post
anibalsolon May 4, 2021
eeff64b
Merge remote-tracking branch 'origin/ys-dev' into ys-dev
YiranCdr May 4, 2021
d38cbae
Tmp merge: debounce
YiranCdr May 4, 2021
9f78b1d
Fix: delay rendering for schedulerSelector
YiranCdr May 5, 2021
f5e8ac5
Fix: delete backend selection in executionNewPage
YiranCdr May 5, 2021
a3eacc1
Opt: clear storage
YiranCdr May 5, 2021
a6d0b39
Fix: scheduler auto connection
YiranCdr May 5, 2021
e8b8353
Fix: scheduler deletion
YiranCdr May 5, 2021
c6d8db6
Fix: scheduler param mb->gb, etc
YiranCdr May 5, 2021
5335060
Fix: bad performance for executionDetailed page after deleting scheduler
YiranCdr May 5, 2021
5d35b17
Fix: CPACPY_SCHEDULER_OFFLINE bad behaviour at deleted schedulers
YiranCdr May 5, 2021
0796570
Fix: minor fix for scheduler deletion
YiranCdr May 5, 2021
b60c141
Fix: deleted scheduler need to re-test conneciton
YiranCdr May 6, 2021
f2a17e7
Fix: pollingBackground: no detection for non-existing scheduler
YiranCdr May 6, 2021
c2b3329
Fix: nodeSelected share across schedules
YiranCdr May 6, 2021
323d6c1
Fix: nodelog finish -> end; nodelog received: schedule status -> running
YiranCdr May 6, 2021
eba4c7f
Fix: subjectNum not being updated in-time in executionDetailedPage
YiranCdr May 6, 2021
ac42d83
Fix: grey -> blue for real-time data
YiranCdr May 7, 2021
c98224c
Fix: add editing icon for schedulerSelector
YiranCdr May 11, 2021
cb17d73
Fix: better schedulerSelection promotion
YiranCdr May 11, 2021
3ba863c
Fix: exit button for SchedulerSelector modal
YiranCdr May 11, 2021
8e638c1
Reformat: calculate exe summary when newing: pipeline part
YiranCdr May 11, 2021
1e14349
Reformat: calculate exe summary when newing: pipeline & dataset & sch…
YiranCdr May 11, 2021
0f59636
Fix: static summaryCard props - ExecutionSummaryCard.js
YiranCdr May 12, 2021
fe7ab9d
Fix: static summaryCard props - ExecutionNewPage.js
YiranCdr May 12, 2021
3ba9340
Reformat: static summaryCard props - ExecutionDetailCard.js
YiranCdr May 13, 2021
a057f38
reformat: summaryCalculation -> reducer
YiranCdr May 13, 2021
c529f7d
reformat: SchedulerChip now are accepting scheduler name as a props
YiranCdr May 13, 2021
16f53ad
Fix: executionNewPage dataset switching bug
YiranCdr May 18, 2021
10b7018
Fix: lzstring for localstorage
YiranCdr May 18, 2021
7da7d3c
tmp: indexedDB solution with dexie.js
YiranCdr May 18, 2021
26079a8
tmp: indexedDB solution minor fix
YiranCdr May 18, 2021
8250f46
Feature: indexedDB as localStorage (1/2)
YiranCdr May 18, 2021
f3cfa7a
Feature: indexedDB as localStorage (2/2)
YiranCdr May 18, 2021
00df73c
Fix: global state clear for indexedDB
YiranCdr May 20, 2021
38faaaa
Fix: notify the user when executions are loading.
YiranCdr May 21, 2021
6eb60b9
Fix: missing dataset info in summary card when building during execution
YiranCdr May 21, 2021
feca5fe
Fix: missing file name of uploaded database when opening the page again
YiranCdr May 22, 2021
1218ca9
Fix: code no longer needed.
YiranCdr May 22, 2021
530fce9
Merge branch 'ys-dev' into feature/progress-tracking
YiranCdr May 22, 2021
195c211
Add wiki images
YiranCdr May 22, 2021
9760c09
fix: force watch even when online
anibalsolon May 24, 2021
45ffa07
fix: fetch correct metadata from exec
anibalsolon May 24, 2021
ca1ed6d
fix: move things around
anibalsolon May 24, 2021
8dc9bcd
enh: command to deploy build
anibalsolon May 24, 2021
04da2d8
fix: chmod
anibalsolon May 24, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@
"npm-debug.log.*": true,
"test/**/__snapshots__": true,
"yarn.lock": true
}
},
"[javascript]": {
"editor.tabSize": 2
},
}
261 changes: 261 additions & 0 deletions app/actions/cpacpy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,261 @@
export const CPACPY_INIT = 'CPACPY_INIT'
export const CPACPY_INIT_DONE = 'CPACPY_INIT_DONE'

export const CPACPY_SCHEDULER_CALL = 'CPACPY_SCHEDULER_CALL'

export const CPACPY_SCHEDULER_POLLING = 'CPACPY_SCHEDULER_POLLING'
export const CPACPY_SCHEDULER_POLLING_CANCEL = 'CPACPY_SCHEDULER_POLLING_CANCEL'

export const CPACPY_SCHEDULER_SCHEDULER = 'CPACPY_SCHEDULER_SCHEDULER'

export const CPACPY_SCHEDULER_CONNECT = 'CPACPY_SCHEDULER_CONNECT'
export const CPACPY_SCHEDULER_CONNECT_CANCEL = 'CPACPY_SCHEDULER_CONNECT_CANCEL'
export const CPACPY_SCHEDULER_CONNECT_MESSAGE = 'CPACPY_SCHEDULER_CONNECT_MESSAGE'
export const CPACPY_SCHEDULER_CONNECT_SEND = 'CPACPY_SCHEDULER_CONNECT_SEND'
export const CPACPY_SCHEDULER_CONNECT_SEND_CALLBACK = 'CPACPY_SCHEDULER_CONNECT_SEND_CALLBACK'

export const CPACPY_SCHEDULER_INFO = 'CPACPY_SCHEDULER_INFO'
export const CPACPY_SCHEDULER_DETECT = 'CPACPY_SCHEDULER_DETECT'

export const CPACPY_SCHEDULER_ONLINE = 'CPACPY_SCHEDULER_ONLINE'
export const CPACPY_SCHEDULER_OFFLINE = 'CPACPY_SCHEDULER_OFFLINE'

export const CPACPY_SCHEDULER_ADDNEW = 'CPACPY_SCHEDULER_ADDNEW'
export const CPACPY_SCHEDULER_TEST_TEMP_CONNECTION = 'CPACPY_SCHEDULER_TEST_TEMP_CONNECTION'
export const CPACPY_SCHEDULER_TEST_TEMP_CONNECTION_SUCCESS = 'CPACPY_SCHEDULER_TEST_TEMP_CONNECTION_SUCCESS'
export const CPACPY_SCHEDULER_TEST_TEMP_CONNECTION_FAILED = 'CPACPY_SCHEDULER_TEST_TEMP_CONNECTION_FAILED'
export const CPACPY_SCHEDULER_DELETE = 'CPACPY_SCHEDULER_DELETE'

export const CPACPY_CONFIG_LOAD = 'CPACPY_CONFIG_LOAD'
export const CPACPY_CONFIG_LOAD_SUCCESS = 'CPACPY_CONFIG_LOAD_SUCCESS'
export const CPACPY_CONFIG_LOAD_ERROR = 'CPACPY_CONFIG_LOAD_ERROR'
export const CPACPY_CONFIG_SAVE = 'CPACPY_CONFIG_SAVE'
export const CPACPY_CONFIG_SAVE_SUCCESS = 'CPACPY_CONFIG_SAVE_SUCCESS'
export const CPACPY_CONFIG_SAVE_ERROR = 'CPACPY_CONFIG_SAVE_ERROR'
export const CPACPY_CONFIG_CLEAR = 'CPACPY_CONFIG_CLEAR'
export const CPACPY_CONFIG_CLEAR_SUCCESS = 'CPACPY_CONFIG_CLEAR_SUCCESS'
export const CPACPY_CONFIG_CLEAR_ERROR = 'CPACPY_CONFIG_CLEAR_ERROR'

export function init() {
return {
type: CPACPY_INIT,
}
}
export function selectCurrentScheduler(scheduler) {
return {
type: CPACPY_SCHEDULER_SCHEDULER,
scheduler,
}
}

export function detect(scheduler, authKey='', poll=true, current=false) {
return {
type: CPACPY_SCHEDULER_DETECT,
scheduler, authKey, poll, current,
}
}

export function poll(scheduler, current=false) {
return {
type: CPACPY_SCHEDULER_POLLING,
scheduler, current,
}
}

export function pollCancel(scheduler) {
return {
type: CPACPY_SCHEDULER_POLLING_CANCEL,
scheduler,
}
}

export function watch(scheduler) {
return {
type: CPACPY_SCHEDULER_CONNECT,
scheduler,
}
}

export function watchCancel(scheduler) {
return {
type: CPACPY_SCHEDULER_CONNECT_CANCEL,
scheduler,
}
}

export function connectSendCallback(scheduler, callbackId, callbackAction) {
return {
type: CPACPY_SCHEDULER_CONNECT_SEND_CALLBACK,
scheduler,
callbackId,
callbackAction
}
}

export function connectSendCallbackCall(scheduler, callbackType, data) {
return {
type: callbackType,
scheduler,
data
}
}

export function connectSendWatch(scheduler, schedule, { action, error }) {
return {
type: CPACPY_SCHEDULER_CONNECT_SEND,
scheduler,
action,
error,
message: {
type: 'watch',
schedule,
watchers: ['Spawn', 'Start', 'End', 'Status', 'Result', 'Log']
}
}
}

export function call(scheduler, method='GET', endpoint, data, { success, error }, headers = {}) {
return {
type: CPACPY_SCHEDULER_CALL,
scheduler,
method,
endpoint,
data,
response: {
success,
error,
},
headers,
}
}

export function callSuccess(scheduler, type, data) {
return {
type,
scheduler,
data
}
}

export function callError(scheduler, type, exception) {
return {
type,
scheduler,
exception
}
}

export function schedule(scheduler, data, { success, error }) {
return call(
scheduler,
'POST',
'/schedule',
data,
{
success,
error,
}
)
}

export function scheduleDataSettings(scheduler, dataSettings, { success, error }){
return schedule(
scheduler,
{
type: 'data_settings',
data_settings: dataSettings,
},
{ success, error }
)
}

export function schedulePipeline(scheduler, dataConfig, pipeline, profile, { success, error }){
return schedule(
scheduler,
{
type: 'pipeline',
data_config: dataConfig,
pipeline,
profile,
},
{ success, error }
)
}

export function fetchResults(scheduler, schedule, result, { success, error }, { start, end } = { start: 0, end: null }) {
return call(
scheduler,
'GET',
`/schedule/${schedule}/result/${result}`,
null,
{
success: (body, headers) => {
let name = null
if (headers.get('content-disposition')) {
const disposition = headers.get('content-disposition')
if (disposition && disposition.indexOf('attachment') !== -1) {
const filenameRegex = /filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/;
const matches = filenameRegex.exec(disposition);
if (matches != null && matches[1]) {
name = matches[1].replace(/['"]/g, '');
}
}
}
return success(body, name)
},
error
},
{
Range: `bytes=${start}-${end ? end : ''}`
}
)
}

export function info(scheduler, info) {
return {
type: CPACPY_SCHEDULER_INFO,
scheduler, info
}
}

export function online(scheduler) {
return {
type: CPACPY_SCHEDULER_ONLINE,
scheduler
}
}

export function offline(scheduler) {
return {
type: CPACPY_SCHEDULER_OFFLINE,
scheduler
}
}

export function addNew(name, ip, port, authKey) {
return {
type: CPACPY_SCHEDULER_ADDNEW,
payload: {newName: name, newIP: ip, newPort: port, newAuthKey: authKey},
}
}

export function test(name, ip, port, authKey) {
return {
type: CPACPY_SCHEDULER_TEST_TEMP_CONNECTION,
name, ip, port, authKey
}
}

export function testFailed(error) {
return {
type: CPACPY_SCHEDULER_TEST_TEMP_CONNECTION_FAILED,
error
}
}

export function deleteScheduler(id) {
return {
type: CPACPY_SCHEDULER_DELETE,
id,
}
}
72 changes: 72 additions & 0 deletions app/actions/dataset.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
export const DATASET_CONFIG_LOAD = 'DATASET_CONFIG_LOAD'
export const DATASET_CONFIG_LOAD_SUCCESS = 'DATASET_CONFIG_LOAD_SUCCESS'
export const DATASET_CONFIG_LOAD_ERROR = 'DATASET_CONFIG_LOAD_ERROR'
export const DATASET_CONFIG_SAVE = 'DATASET_CONFIG_SAVE'
export const DATASET_CONFIG_SAVE_SUCCESS = 'DATASET_CONFIG_SAVE_SUCCESS'
export const DATASET_CONFIG_SAVE_ERROR = 'DATASET_CONFIG_SAVE_ERROR'
export const DATASET_CONFIG_CLEAR = 'DATASET_CONFIG_CLEAR'
export const DATASET_CONFIG_CLEAR_SUCCESS = 'DATASET_CONFIG_CLEAR_SUCCESS'
export const DATASET_CONFIG_CLEAR_ERROR = 'DATASET_CONFIG_CLEAR_ERROR'

export const DATASET_SETTINGS_CREATE = 'DATASET_SETTINGS_CREATE'
export const DATASET_SETTINGS_UPDATE = 'DATASET_SETTINGS_UPDATE'

export const DATASET_GENERATE_DATA_CONFIG = 'DATASET_GENERATE_DATA_CONFIG'
export const DATASET_GENERATE_DATA_CONFIG_SUCCESS = 'DATASET_GENERATE_DATA_CONFIG_SUCCESS'
export const DATASET_GENERATE_DATA_CONFIG_ERROR = 'DATASET_GENERATE_DATA_CONFIG_ERROR'

export const DATASET_GENERATE_DATA_CONFIG_SCHEDULED = 'DATASET_GENERATE_DATA_CONFIG_SCHEDULED'
export const DATASET_GENERATE_DATA_CONFIG_FINISHED = 'DATASET_GENERATE_DATA_CONFIG_FINISHED'
export const DATASET_GENERATE_DATA_CONFIG_FETCHED = 'DATASET_GENERATE_DATA_CONFIG_FETCHED'

export const DATASET_GENERATE_DATA_CONFIG_URL = 'DATASET_GENERATE_DATA_CONFIG_URL'

export const DATASET_SELECT_SCHEDULER = 'DATASET_SELECT_SCHEDULER'

export function createDataSettings(name, configuration) {
return {
type: DATASET_SETTINGS_CREATE,
dataset: { name, configuration }
}
}

export function updateDataSettings(id, name, configuration) {
return {
type: DATASET_SETTINGS_UPDATE,
dataset: { id, name, configuration }
}
}

export function generateDataConfig(scheduler, dataset) {
return {
type: DATASET_GENERATE_DATA_CONFIG,
scheduler, dataset
}
}

export function importDataConfig(dataset, config) {
return {
type: DATASET_GENERATE_DATA_CONFIG_SUCCESS,
dataset, config
}
}

export function generateDataConfigUrlFetch(dataset, url) {
return {
type : DATASET_GENERATE_DATA_CONFIG_URL,
dataset, url
}
}

export function updateDatasetError(dataset, exception) {
return {
type: DATASET_GENERATE_DATA_CONFIG_ERROR,
dataset, exception
}
}

export function datasetSaveAll() {
return {
type: DATASET_CONFIG_SAVE,
}
}
36 changes: 36 additions & 0 deletions app/actions/execution.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import uuid from 'uuid/v4'

export const EXECUTION_CONFIG_LOAD = 'EXECUTION_CONFIG_LOAD'
export const EXECUTION_CONFIG_LOAD_SUCCESS = 'EXECUTION_CONFIG_LOAD_SUCCESS'
export const EXECUTION_CONFIG_LOAD_ERROR = 'EXECUTION_CONFIG_LOAD_ERROR'
export const EXECUTION_CONFIG_SAVE = 'EXECUTION_CONFIG_SAVE'
export const EXECUTION_CONFIG_SAVE_SUCCESS = 'EXECUTION_CONFIG_SAVE_SUCCESS'
export const EXECUTION_CONFIG_SAVE_ERROR = 'EXECUTION_CONFIG_SAVE_ERROR'
export const EXECUTION_CONFIG_CLEAR = 'EXECUTION_CONFIG_CLEAR'
export const EXECUTION_CONFIG_CLEAR_SUCCESS = 'EXECUTION_CONFIG_CLEAR_SUCCESS'
export const EXECUTION_CONFIG_CLEAR_ERROR = 'EXECUTION_CONFIG_CLEAR_ERROR'

export const EXECUTION_PREPROCESS_DATASET = 'EXECUTION_PREPROCESS_DATASET'
export const EXECUTION_PREPROCESS_DATASET_SUCCESS = 'EXECUTION_PREPROCESS_DATASET_SUCCESS'
export const EXECUTION_PREPROCESS_DATASET_ERROR = 'EXECUTION_PREPROCESS_DATASET_ERROR'
export const EXECUTION_PREPROCESS_DATASET_SCHEDULED = 'EXECUTION_PREPROCESS_DATASET_SCHEDULED'
export const EXECUTION_PREPROCESS_DATASET_PROCESSING_SCHEDULED = 'EXECUTION_PREPROCESS_DATASET_PROCESSING_SCHEDULED'
export const EXECUTION_PREPROCESS_DATASET_PROCESSING_STATUS = 'EXECUTION_PREPROCESS_DATASET_PROCESSING_STATUS'
export const EXECUTION_PREPROCESS_DATASET_PROCESSING_RESULT = 'EXECUTION_PREPROCESS_DATASET_PROCESSING_RESULT'
export const EXECUTION_PREPROCESS_DATASET_PROCESSING_NODELOG = 'EXECUTION_PREPROCESS_DATASET_PROCESSING_NODELOG'
export const EXECUTION_PREPROCESS_DATASET_PROCESSING_CRASH = 'EXECUTION_PREPROCESS_DATASET_PROCESSING_CRASH'
export const EXECUTION_PREPROCESS_DATASET_PROCESSING_CRASH_ERROR = 'EXECUTION_PREPROCESS_DATASET_PROCESSING_CRASH_ERROR'
export const EXECUTION_PREPROCESS_DATASET_PROCESSING_LOG = 'EXECUTION_PREPROCESS_DATASET_PROCESSING_LOG'
export const EXECUTION_PREPROCESS_DATASET_PROCESSING_LOG_ERROR = 'EXECUTION_PREPROCESS_DATASET_PROCESSING_LOG_ERROR'
export const EXECUTION_PREPROCESS_DATASET_PROCESSING_FINISHED = 'EXECUTION_PREPROCESS_DATASET_PROCESSING_FINISHED'
export const EXECUTION_PREPROCESS_DATASET_PROCESSING_ERROR = 'EXECUTION_PREPROCESS_DATASET_PROCESSING_ERROR'
export const EXECUTION_PREPROCESS_DATASET_FINISHED = 'EXECUTION_PREPROCESS_DATASET_FINISHED'
export const EXECUTION_PREPROCESS_DATASET_FETCHED = 'EXECUTION_PREPROCESS_DATASET_FETCHED'

export function preprocessDataset(execution, scheduler, dataset, pipeline, note=null) {
// const execution = uuid()
return {
type: EXECUTION_PREPROCESS_DATASET,
execution, scheduler, dataset, pipeline, note
}
}
Loading