Merge branch '19482-wf-panel' refs #19482
[arvados.git] / src / store / process-panel / process-panel-actions.ts
index 9b1e984706af6a487036d2f21ebd868017696e49..9668485c2cbbd6fd399ea9776c555fbedd643fe2 100644 (file)
@@ -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),