From 436aec7fabe502b7a9fba9d730812dafb58a17d5 Mon Sep 17 00:00:00 2001 From: Shailesh Parmar Date: Thu, 9 Oct 2025 21:55:05 +0530 Subject: [PATCH] refactor: remove incident column rendering logic from DataQualityTab component --- .../DataQualityTab/DataQualityTab.tsx | 37 ------------------- 1 file changed, 37 deletions(-) diff --git a/openmetadata-ui/src/main/resources/ui/src/components/Database/Profiler/DataQualityTab/DataQualityTab.tsx b/openmetadata-ui/src/main/resources/ui/src/components/Database/Profiler/DataQualityTab/DataQualityTab.tsx index 662e23cbc92..627f7417ea4 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/Database/Profiler/DataQualityTab/DataQualityTab.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/Database/Profiler/DataQualityTab/DataQualityTab.tsx @@ -350,43 +350,6 @@ const DataQualityTab: React.FC = ({ ); }, }, - { - title: t('label.incident'), - dataIndex: 'testCaseResult', - key: 'incident', - width: 120, - render: (_, record) => { - const testCaseResult = testCaseStatus.find( - (status) => - status.testCaseReference?.fullyQualifiedName === - record.fullyQualifiedName - ); - - if (isStatusLoading) { - return ; - } - - if (!testCaseResult) { - return '--'; - } - - // Check if user has permission to edit incident status - const testCasePermission = testCasePermissions.find( - (permission) => - permission.fullyQualifiedName === record.fullyQualifiedName - ); - const hasEditPermission = - isEditAllowed || testCasePermission?.EditAll; - - return ( - - ); - }, - }, { title: t('label.action-plural'), dataIndex: 'actions',