This is an automated email from the ASF dual-hosted git repository.

dhavalrajpara pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git


The following commit(s) were added to refs/heads/master by this push:
     new f6d1b72e2 Revert "RANGER-5184 : Enhance Access audit to be filtered by 
Federated user (#560)" (#596)
f6d1b72e2 is described below

commit f6d1b72e2662fa2394611abd58c4e77c78be4f84
Author: Dhaval Rajpara <[email protected]>
AuthorDate: Tue Jul 8 13:14:56 2025 +0530

    Revert "RANGER-5184 : Enhance Access audit to be filtered by Federated user 
(#560)" (#596)
    
    This reverts commit dfaba89d8aa6c00c936357b793b346ea527f86a5.
---
 .../src/views/AuditEvent/AccessLogs.jsx            | 33 +---------------------
 .../src/views/AuditEvent/AccessLogsTable.jsx       |  5 ----
 2 files changed, 1 insertion(+), 37 deletions(-)

diff --git 
a/security-admin/src/main/webapp/react-webapp/src/views/AuditEvent/AccessLogs.jsx
 
b/security-admin/src/main/webapp/react-webapp/src/views/AuditEvent/AccessLogs.jsx
index b5cae7a59..9af635448 100644
--- 
a/security-admin/src/main/webapp/react-webapp/src/views/AuditEvent/AccessLogs.jsx
+++ 
b/security-admin/src/main/webapp/react-webapp/src/views/AuditEvent/AccessLogs.jsx
@@ -63,8 +63,7 @@ import {
 import { CustomTooltip, Loader } from "../../components/CommonComponents";
 import {
   ServiceRequestDataRangerAcl,
-  ServiceRequestDataHadoopAcl,
-  UserTypes
+  ServiceRequestDataHadoopAcl
 } from "../../utils/XAEnums";
 import { getServiceDef } from "../../utils/appState";
 
@@ -526,23 +525,6 @@ function Access() {
         disableResizing: true,
         getResizerProps: () => {}
       },
-      {
-        Header: "User Source",
-        accessor: "userSource",
-        Cell: (rawValue) => {
-          if (!isEmpty(rawValue?.value)) {
-            const userSourceVal = find(UserTypes, { value: rawValue.value });
-            return (
-              <h6 className="text-center">
-                <Badge bg={userSourceVal.variant}>{userSourceVal.label}</Badge>
-              </h6>
-            );
-          } else return "--";
-        },
-        width: 100,
-        disableResizing: true,
-        getResizerProps: () => {}
-      },
       {
         Header: "Service (Name / Type)",
         accessor: (s) => (
@@ -1021,19 +1003,6 @@ function Access() {
       addMultiple: true,
       type: "text"
     },
-    {
-      category: "userSource",
-      label: "User Source",
-      urlLabel: "userSource",
-      type: "textoptions",
-      options: () => {
-        return [
-          { value: "0", label: "Internal" },
-          { value: "1", label: "External" },
-          { value: "6", label: "Federated" }
-        ];
-      }
-    },
     {
       category: "zoneName",
       label: "Zone Name",
diff --git 
a/security-admin/src/main/webapp/react-webapp/src/views/AuditEvent/AccessLogsTable.jsx
 
b/security-admin/src/main/webapp/react-webapp/src/views/AuditEvent/AccessLogsTable.jsx
index b3a73c9f0..753a23df9 100644
--- 
a/security-admin/src/main/webapp/react-webapp/src/views/AuditEvent/AccessLogsTable.jsx
+++ 
b/security-admin/src/main/webapp/react-webapp/src/views/AuditEvent/AccessLogsTable.jsx
@@ -52,7 +52,6 @@ export const AccessLogsTable = ({ data = {} }) => {
     zoneName,
     requestData,
     tags,
-    userSource,
     datasets,
     projects
   } = data;
@@ -93,10 +92,6 @@ export const AccessLogsTable = ({ data = {} }) => {
           <td>User</td>
           <td>{!isEmpty(requestUser) ? requestUser : "--"}</td>
         </tr>
-        <tr>
-          <td>User Source</td>
-          <td>{!isEmpty(userSource) ? userSource : "--"}</td>
-        </tr>
         <tr>
           <td>Service Name </td>
           <td>{!isEmpty(repoName) ? repoName : "--"}</td>

Reply via email to