[arvados-workbench2] updated: 2.5.0-11-g224205c0

git repository hosting git at public.arvados.org
Thu Feb 2 21:25:06 UTC 2023


Summary of changes:
 src/store/processes/process-copy-actions.ts | 4 ++--
 src/store/workbench/workbench-actions.ts    | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

       via  224205c0f1a11158a9b46b4df20fe321a6a2c2f7 (commit)
      from  56529b81cf7b67cfea510652f07e1778cc82922e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 224205c0f1a11158a9b46b4df20fe321a6a2c2f7
Author: Stephen Smith <stephen at curii.com>
Date:   Thu Feb 2 16:24:39 2023 -0500

    15557: Navigate to new process after copying for re-run
    
    Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen at curii.com>

diff --git a/src/store/processes/process-copy-actions.ts b/src/store/processes/process-copy-actions.ts
index caabdca7..3c55a9ad 100644
--- a/src/store/processes/process-copy-actions.ts
+++ b/src/store/processes/process-copy-actions.ts
@@ -54,7 +54,7 @@ export const copyProcess = (resource: CopyFormDialogData) =>
                 schedulingParameters,
                 useExisting,
             } = process;
-            await services.containerRequestService.create({
+            const newProcess = await services.containerRequestService.create({
                 command,
                 containerCountMax,
                 containerImage,
@@ -78,7 +78,7 @@ export const copyProcess = (resource: CopyFormDialogData) =>
                 useExisting,
             });
             dispatch(dialogActions.CLOSE_DIALOG({ id: PROCESS_COPY_FORM_NAME }));
-            return process;
+            return newProcess;
         } catch (e) {
             dispatch(dialogActions.CLOSE_DIALOG({ id: PROCESS_COPY_FORM_NAME }));
             throw new Error('Could not copy the process.');
diff --git a/src/store/workbench/workbench-actions.ts b/src/store/workbench/workbench-actions.ts
index 0ad3fb8e..da5b847b 100644
--- a/src/store/workbench/workbench-actions.ts
+++ b/src/store/workbench/workbench-actions.ts
@@ -662,6 +662,7 @@ export const copyProcess =
           kind: SnackbarKind.SUCCESS,
         })
       );
+      dispatch<any>(navigateTo(process.uuid));
     } catch (e) {
       dispatch(
         snackbarActions.OPEN_SNACKBAR({

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list