X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/fd24fbe43ef6f898f31804aff16ea6911a014ff8..912507a5c39c975554325f528e9b155ff42a03b1:/src/store/process-panel/process-panel-actions.ts diff --git a/src/store/process-panel/process-panel-actions.ts b/src/store/process-panel/process-panel-actions.ts index 9b1e984706..9668485c2c 100644 --- a/src/store/process-panel/process-panel-actions.ts +++ b/src/store/process-panel/process-panel-actions.ts @@ -21,8 +21,6 @@ import { CommandInputParameter, getIOParamId, WorkflowInputsData } from 'models/ import { getIOParamDisplayValue, ProcessIOParameter } from "views/process-panel/process-io-card"; import { OutputDetails, NodeInstanceType, NodeInfo } from "./process-panel"; import { AuthState } from "store/auth/auth-reducer"; -import { CommonService } from "services/common-service/common-service"; -import { camelCase } from "lodash"; export const processPanelActions = unionize({ RESET_PROCESS_PANEL: ofType<{}>(), @@ -116,7 +114,7 @@ export const loadNodeJson = (containerRequest: ContainerRequestResource) => try { const filesPromise = services.collectionService.files(containerRequest.logUuid); const collectionPromise = services.collectionService.get(containerRequest.logUuid); - const [files, collection] = await Promise.all([filesPromise, collectionPromise]); + const [files] = await Promise.all([filesPromise, collectionPromise]); // Fetch node.json from keep const nodeFile = files.find((file) => file.name === 'node.json') as CollectionFile | undefined; @@ -167,7 +165,7 @@ export const initProcessPanelFilters = processPanelActions.SET_PROCESS_PANEL_FIL ProcessStatus.CANCELLED ]); -const formatInputData = (inputs: CommandInputParameter[], auth: AuthState): ProcessIOParameter[] => { +export const formatInputData = (inputs: CommandInputParameter[], auth: AuthState): ProcessIOParameter[] => { return inputs.map(input => { return { id: getIOParamId(input), @@ -177,7 +175,7 @@ const formatInputData = (inputs: CommandInputParameter[], auth: AuthState): Proc }); }; -const formatOutputData = (definitions: CommandOutputParameter[], values: any, pdh: string | undefined, auth: AuthState): ProcessIOParameter[] => { +export const formatOutputData = (definitions: CommandOutputParameter[], values: any, pdh: string | undefined, auth: AuthState): ProcessIOParameter[] => { return definitions.map(output => { return { id: getIOParamId(output),