Prasad P. Pawar created ATLAS-5411:
--------------------------------------
Summary: Atlas UI: React UI Audit tab show deleted entity
references with Classic UI styling
Key: ATLAS-5411
URL: https://issues.apache.org/jira/browse/ATLAS-5411
Project: Atlas
Issue Type: Bug
Components: atlas-webui
Affects Versions: 3.0.0
Reporter: Prasad P. Pawar
Assignee: Prasad P. Pawar
In the React UI entity detail Audits tab, expanded audit entries that reference
deleted entities (e.g. deleted column families in {{{}column_families{}}})
should match Classic UI behavior: deleted refs display with an orange link
({{{}#bb5838{}}}) and a trash icon; active refs remain blue.
React UI currently renders all audit entity references as active (blue links),
even when the referenced entity has been deleted. Classic UI resolves
per-reference status via the entity header API and applies distinct deleted
styling.
h3. Expected behavior
* Deleted entity refs in audit expand rows: orange text + trash icon
* Active entity refs: blue link, no trash icon
* Status resolved from {{referredEntities}} snapshot and/or {{GET
/entity/guid/\{guid}/header}} when status is unknown
* Header API failure: fall back to snapshot rendering (no crash)
h3. Technical approach
* Extract {{{}AuditEntityRefLink{}}}, {{{}ExtractObject{}}},
{{{}entityRefUtils{}}}, {{entityRefRenderers}}
* Pass {{auditDetails=\{true}}} from {{AuditTableDetails}} →
{{AttributeProperties}} → {{getValues}}
* SCSS: {{.entity-name-deleted \{ color: #bb5838 }}} in
{{{}table.scss{}}}{{{}{}}}
h3. Test plan
* Create/update entity with relationship refs, delete a referenced entity,
verify Audits tab expand
* Compare side-by-side with Classic UI ({{{}dashboardv2{}}})
* Run: {{{}AuditEntityRefLink.test.tsx{}}},
{{{}AuditTableDetails.test.tsx{}}}, {{AttributeProperties.test.tsx}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)