From: Stephen Smith Date: Thu, 27 Oct 2022 15:18:57 +0000 (-0400) Subject: 19315: Add process modified by and hide runtime user if equal X-Git-Tag: 2.5.0~27^2~4 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/7abad6fba6ffa8e88d40ace78a84fb2a99d5d44b 19315: Add process modified by and hide runtime user if equal Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- 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 })( - - } /> - + {(container && container.modifiedByUserUuid) && + } /> + } + {(container && container.runtimeUserUuid && container.runtimeUserUuid !== container.modifiedByUserUuid) && + } /> + }