[arvados-workbench2] updated: 2.4.0-227-gebd12721

git repository hosting git at public.arvados.org
Wed Oct 12 17:50:06 UTC 2022


Summary of changes:
 src/views/process-panel/process-details-attributes.tsx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

       via  ebd12721a86b922de85a7ea57271d24a7a2df596 (commit)
      from  7db41995e4c8d77094f8dad71902de30b1650b37 (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 ebd12721a86b922de85a7ea57271d24a7a2df596
Author: Stephen Smith <stephen at curii.com>
Date:   Wed Oct 12 13:49:26 2022 -0400

    16073: Filter out objects from process details attributes containerRequest properties chips
    
    Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen at curii.com>

diff --git a/src/views/process-panel/process-details-attributes.tsx b/src/views/process-panel/process-details-attributes.tsx
index 6f3277cb..4892eb33 100644
--- a/src/views/process-panel/process-details-attributes.tsx
+++ b/src/views/process-panel/process-details-attributes.tsx
@@ -59,6 +59,8 @@ export const ProcessDetailsAttributes = withStyles(styles, { withTheme: true })(
             const container = props.container;
             const classes = props.classes;
             const mdSize = props.twoCol ? 6 : 12;
+            const filteredPropertyKeys = Object.keys(containerRequest.properties)
+                                            .filter(k => (typeof containerRequest.properties[k] !== 'object'));
             return <Grid container>
                 <Grid item xs={12}>
                     <ProcessRuntimeStatus runtimeStatus={container?.runtimeStatus} containerCount={containerRequest.containerCount} />
@@ -123,8 +125,8 @@ export const ProcessDetailsAttributes = withStyles(styles, { withTheme: true })(
                 */}
                 <Grid item xs={12} md={12}>
                     <DetailsAttribute label='Properties' />
-                    {Object.keys(containerRequest.properties).length > 0
-                        ? Object.keys(containerRequest.properties).map(k =>
+                    {filteredPropertyKeys.length > 0
+                        ? filteredPropertyKeys.map(k =>
                             Array.isArray(containerRequest.properties[k])
                                 ? containerRequest.properties[k].map((v: string) =>
                                     getPropertyChip(k, v, undefined, classes.propertyTag))

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list