[arvados-workbench2] updated: 2.4.0-323-g7abad6fb

git repository hosting git at public.arvados.org
Thu Oct 27 15:19:36 UTC 2022


Summary of changes:
 cypress/integration/process.spec.js                    |  1 +
 src/views/process-panel/process-details-attributes.tsx | 15 ++++++++++-----
 2 files changed, 11 insertions(+), 5 deletions(-)

       via  7abad6fba6ffa8e88d40ace78a84fb2a99d5d44b (commit)
      from  904f8f0605168301fafd64936756607b0439d41c (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 7abad6fba6ffa8e88d40ace78a84fb2a99d5d44b
Author: Stephen Smith <stephen at curii.com>
Date:   Thu Oct 27 11:18:57 2022 -0400

    19315: Add process modified by and hide runtime user if equal
    
    Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen at curii.com>

diff --git a/cypress/integration/process.spec.js b/cypress/integration/process.spec.js
index bb7492e1..838fa9da 100644
--- a/cypress/integration/process.spec.js
+++ b/cypress/integration/process.spec.js
@@ -126,6 +126,7 @@ describe('Process tests', function() {
             cy.goToPath(`/processes/${containerRequest.uuid}`);
             cy.get('[data-cy=process-details]').should('contain', crName);
             cy.get('[data-cy=process-details-attributes-runtime-user]').contains(`Active User (${activeUser.user.uuid})`);
+            cy.get('[data-cy=process-details-attributes-modifiedby-user]').contains(`zzzzz-tpzed-000000000000000`);
         });
     });
 
diff --git a/src/views/process-panel/process-details-attributes.tsx b/src/views/process-panel/process-details-attributes.tsx
index 65bc6367..d3515fd5 100644
--- a/src/views/process-panel/process-details-attributes.tsx
+++ b/src/views/process-panel/process-details-attributes.tsx
@@ -95,16 +95,21 @@ export const ProcessDetailsAttributes = withStyles(styles, { withTheme: true })(
                 <Grid item xs={12} md={mdSize}>
                     <DetailsAttribute label='Finished at' value={container ? formatDate(container.finishedAt) : "(none)"} />
                 </Grid>
-                <Grid item xs={12} md={mdSize} data-cy="process-details-attributes-runtime-user">
-                    <DetailsAttribute
-                        label='Container started by' linkToUuid={container ? container.runtimeUserUuid : ""}
-                        uuidEnhancer={(uuid: string) => <ResourceWithName uuid={uuid} />} />
-                </Grid>
                 <Grid item xs={12} md={mdSize}>
                     <DetailsAttribute label='Container run time'>
                         <ContainerRunTime uuid={containerRequest.uuid} />
                     </DetailsAttribute>
                 </Grid>
+                {(container && container.modifiedByUserUuid) && <Grid item xs={12} md={mdSize} data-cy="process-details-attributes-modifiedby-user">
+                    <DetailsAttribute
+                        label='Submitted by' linkToUuid={container.modifiedByUserUuid}
+                        uuidEnhancer={(uuid: string) => <ResourceWithName uuid={uuid} />} />
+                </Grid>}
+                {(container && container.runtimeUserUuid && container.runtimeUserUuid !== container.modifiedByUserUuid) && <Grid item xs={12} md={mdSize} data-cy="process-details-attributes-runtime-user">
+                    <DetailsAttribute
+                        label='Run as' linkToUuid={container.runtimeUserUuid}
+                        uuidEnhancer={(uuid: string) => <ResourceWithName uuid={uuid} />} />
+                </Grid>}
                 <Grid item xs={12} md={mdSize}>
                     <DetailsAttribute label='Requesting Container UUID' value={containerRequest.requestingContainerUuid || "(none)"} />
                 </Grid>

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list