This is an automated email from the ASF dual-hosted git repository. ppawar pushed a commit to branch ATLAS-5183 in repository https://gitbox.apache.org/repos/asf/atlas.git
commit c0ecdf45d13102a79a5a824b2e0f56a7074bb009 Author: Prasad Pawar <[email protected]> AuthorDate: Mon Jan 12 16:03:24 2026 +0530 ATLAS-5183: React UI: Business metadata attribute filters send incomplete attribute name in entityFilters API payload --- dashboard/src/components/QueryBuilder/Filters.tsx | 6 +++++- dashboard/src/utils/CommonViewFunction.ts | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/dashboard/src/components/QueryBuilder/Filters.tsx b/dashboard/src/components/QueryBuilder/Filters.tsx index b2a3930ec..ece86573e 100644 --- a/dashboard/src/components/QueryBuilder/Filters.tsx +++ b/dashboard/src/components/QueryBuilder/Filters.tsx @@ -261,7 +261,11 @@ const Filters = ({ "Business Attributes: " + businessMetadataKey ); if (returnObj) { - returnObj.id = businessMetadataKey + "." + returnObj.id; + // Update both id and name to include full business metadata name + // This ensures rule.field contains the full name like "test_businessMetadata.attr1" + const fullName = businessMetadataKey + "." + returnObj.id; + returnObj.id = fullName; + returnObj.name = fullName; // Also update name so query builder uses the full name returnObj.label = returnObj.label; returnObj.data = { entityType: "businessMetadata" }; filters.push(returnObj); diff --git a/dashboard/src/utils/CommonViewFunction.ts b/dashboard/src/utils/CommonViewFunction.ts index d8d83b9d2..3ec4b290f 100644 --- a/dashboard/src/utils/CommonViewFunction.ts +++ b/dashboard/src/utils/CommonViewFunction.ts @@ -110,8 +110,10 @@ export const attributeFilter = { : typeof (obj.value || obj.attributeValue) === "string" ? (obj.value || obj.attributeValue).trim() : obj.value || obj.attributeValue; + // Prioritize field (used by react-querybuilder), then id, then attributeName + // For business metadata, field should contain full name like "test_businessMetadata.attr1" let url = [ - obj.field || obj.attributeName, + obj.field || obj.id || obj.attributeName, mapApiOperatorToUI(obj.operator), value ];
