This is an automated email from the ASF dual-hosted git repository. madhan pushed a commit to branch RANGER-3923 in repository https://gitbox.apache.org/repos/asf/ranger.git
commit 9b478f0b86d15609c15a8b07f5f2e9f74cab232b Author: princeap173 <[email protected]> AuthorDate: Thu Jan 4 02:18:16 2024 +0530 RANGER-4631: updated admin audits UI to correctly render operation for datashares/datasets Signed-off-by: Madhan Neethiraj <[email protected]> --- .../src/views/AuditEvent/AdminLogs.jsx | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/security-admin/src/main/webapp/react-webapp/src/views/AuditEvent/AdminLogs.jsx b/security-admin/src/main/webapp/react-webapp/src/views/AuditEvent/AdminLogs.jsx index d7d643c86..d73e81f23 100644 --- a/security-admin/src/main/webapp/react-webapp/src/views/AuditEvent/AdminLogs.jsx +++ b/security-admin/src/main/webapp/react-webapp/src/views/AuditEvent/AdminLogs.jsx @@ -220,6 +220,42 @@ function Admin() { Role {action}d <strong>{objectname}</strong> </span> ); + else if (classtype == ClassTypes.CLASS_TYPE_RANGER_DATASET.value) + operation = ( + <span> + Dataset {action}d <strong>{objectname}</strong> + </span> + ); + else if (classtype == ClassTypes.CLASS_TYPE_RANGER_PROJECT.value) + operation = ( + <span> + Project {action}d <strong>{objectname}</strong> + </span> + ); + else if (classtype == ClassTypes.CLASS_TYPE_RANGER_DATA_SHARE.value) + operation = ( + <span> + Data Share {action}d <strong>{objectname}</strong> + </span> + ); + else if (classtype == ClassTypes.CLASS_TYPE_RANGER_SHARED_RESOURCE.value) + operation = ( + <span> + Shared Resource {action}d <strong>{objectname}</strong> + </span> + ); + else if (classtype == ClassTypes.CLASS_TYPE_RANGER_DATA_SHARE_IN_DATASET.value) + operation = ( + <span> + DataShare in Dataset {action}d <strong>{objectname}</strong> + </span> + ); + else if (classtype == ClassTypes.CLASS_TYPE_RANGER_DATASET_IN_PROJECT.value) + operation = ( + <span> + Dataset in Project {action}d <strong>{objectname}</strong> + </span> + ); return <div className="text-truncate">{operation}</div>; } },
