This is an automated email from the ASF dual-hosted git repository.
ppawar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/master by this push:
new ae5e2f8bf ATLAS-5138: React UI: Display Auto Purge (#444)
ae5e2f8bf is described below
commit ae5e2f8bf6a61e76aac32e950951a83fedf63e3b
Author: Prasad Pawar <[email protected]>
AuthorDate: Mon Sep 22 16:49:37 2025 +0530
ATLAS-5138: React UI: Display Auto Purge (#444)
---
dashboard/src/utils/Enum.ts | 6 ++++--
dashboard/src/views/Administrator/Audits/AuditResults.tsx | 12 +++++++-----
2 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/dashboard/src/utils/Enum.ts b/dashboard/src/utils/Enum.ts
index f95ea8add..9dd4ace11 100644
--- a/dashboard/src/utils/Enum.ts
+++ b/dashboard/src/utils/Enum.ts
@@ -77,7 +77,8 @@ export const category: { [key: string]: string } = {
BUSINESS_METADATA: "Business Metadata",
PURGE: "Purge Entities",
IMPORT: "Import Entities",
- EXPORT: "Export Entities"
+ EXPORT: "Export Entities",
+ AUTO_PURGE : "Auto Purged Entities"
};
export const auditAction: { [key: string]: string } = {
@@ -106,7 +107,8 @@ export const auditAction: { [key: string]: string } = {
TYPE_DEF_CREATE: "Type Created",
TYPE_DEF_DELETE: "Type Deleted",
IMPORT: "Import",
- EXPORT: "Export"
+ EXPORT: "Export",
+ AUTO_PURGE : "Auto Purged Entities"
};
export const stats: any = {
diff --git a/dashboard/src/views/Administrator/Audits/AuditResults.tsx
b/dashboard/src/views/Administrator/Audits/AuditResults.tsx
index 5b1f9c3c7..9deef0525 100644
--- a/dashboard/src/views/Administrator/Audits/AuditResults.tsx
+++ b/dashboard/src/views/Administrator/Audits/AuditResults.tsx
@@ -53,13 +53,14 @@ const AuditResults = ({ componentProps, row }: any) => {
const { operation, params, result } = auditObj;
const resultObj =
- operation == "PURGE"
+ (operation == "PURGE" || operation == "AUTO_PURGE")
? result.replace("[", "").replace("]", "").split(",")
: jsonParse(result);
return (
<>
{operation != "PURGE" &&
+ operation != "AUTO_PURGE" &&
operation != "IMPORT" &&
operation != "EXPORT" &&
!isEmpty(resultObj) ? (
@@ -155,11 +156,12 @@ const AuditResults = ({ componentProps, row }: any) => {
</Grid>
) : (
operation != "PURGE" &&
+ operation != "AUTO_PURGE" &&
operation != "IMPORT" &&
operation != "EXPORT" && <Typography>No Results Found</Typography>
)}
- {operation == "PURGE" && !isEmpty(resultObj) ? (
+ {(operation == "PURGE" || operation == "AUTO_PURGE") &&
!isEmpty(resultObj) ? (
<>
<Typography>{`${category[operation]}`}</Typography>
<List className="audit-results-list">
@@ -187,7 +189,7 @@ const AuditResults = ({ componentProps, row }: any) => {
</List>
</>
) : (
- operation == "PURGE" && <Typography>No Results Found</Typography>
+ (operation == "PURGE" || operation == "AUTO_PURGE") && <Typography>No
Results Found</Typography>
)}
{(operation == "IMPORT" || operation == "EXPORT") && (
@@ -254,11 +256,11 @@ const AuditResults = ({ componentProps, row }: any) => {
</StyledPaper>
</CustomModal>
- {operation == "PURGE" && (
+ {(operation == "PURGE" || operation == "AUTO_PURGE") && (
<CustomModal
open={openPurgeModal}
onClose={handleClosePurgeModal}
- title={`Purged Entity Details: ${currentPurgeResultObj}`}
+ title={operation == "PURGE" ? `Purged Entity Details:
${currentPurgeResultObj}` : `Auto Purged Entity Details:
${currentPurgeResultObj}`}
footer={false}
button1Handler={undefined}
button2Handler={undefined}