This is an automated email from the ASF dual-hosted git repository.
ivandika pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new e582a3908f HDDS-13366. Add unique key to ACL table rows. (#8725)
e582a3908f is described below
commit e582a3908f5ccfde36905db53baa7a10813e7704
Author: Abhishek Pal <[email protected]>
AuthorDate: Sat Jul 5 07:48:54 2025 +0530
HDDS-13366. Add unique key to ACL table rows. (#8725)
---
.../recon/ozone-recon-web/src/components/aclDrawer/aclDrawer.tsx | 5 ++++-
.../recon/ozone-recon-web/src/v2/components/aclDrawer/aclDrawer.tsx | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git
a/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/components/aclDrawer/aclDrawer.tsx
b/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/components/aclDrawer/aclDrawer.tsx
index 61df8d19b5..9d1fbef8f2 100644
---
a/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/components/aclDrawer/aclDrawer.tsx
+++
b/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/components/aclDrawer/aclDrawer.tsx
@@ -74,7 +74,10 @@ export class AclPanel extends
React.Component<IAclDrawerProps> {
style={{ position: 'absolute' }}
onClose={this.onClose}
>
- <Table dataSource={acls} rowKey='name' locale={{ filterTitle: "" }}>
+ <Table
+ dataSource={acls}
+ rowKey={(record: IAcl) => `${record.name ?? ''}-${record.type ??
''}-${record.scope ?? ''}`}
+ locale={{ filterTitle: "" }}>
<Column
key='name'
title='Name'
diff --git
a/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/v2/components/aclDrawer/aclDrawer.tsx
b/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/v2/components/aclDrawer/aclDrawer.tsx
index af0931c17f..9e77b851f6 100644
---
a/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/v2/components/aclDrawer/aclDrawer.tsx
+++
b/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/v2/components/aclDrawer/aclDrawer.tsx
@@ -107,7 +107,7 @@ const AclPanel: React.FC<AclDrawerProps> = ({
>
<Table
dataSource={acls}
- rowKey='name'
+ rowKey={(record: Acl) => `${record.name ?? ''}-${record.type ??
''}-${record.scope ?? ''}`}
locale={{ filterTitle: '' }}
columns={COLUMNS}>
</Table>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]