From 7abad6fba6ffa8e88d40ace78a84fb2a99d5d44b Mon Sep 17 00:00:00 2001 From: Stephen Smith Date: Thu, 27 Oct 2022 11:18:57 -0400 Subject: [PATCH] 19315: Add process modified by and hide runtime user if equal Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- cypress/integration/process.spec.js | 1 + .../process-panel/process-details-attributes.tsx | 15 ++++++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) 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) && + } /> + } -- 2.30.2