From 9f5ea5fa3489f4be4d540aae953b2d2b72e11265 Mon Sep 17 00:00:00 2001 From: Suman Das <59254445+sumandas0@users.noreply.github.com> Date: Mon, 19 Aug 2024 13:55:38 +0530 Subject: [PATCH] fix: no need to add connectionQNames in the hierarchical filter, as it will bring all the assets under that connection --- .../atlas/repository/store/aliasstore/ESAliasStore.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/repository/src/main/java/org/apache/atlas/repository/store/aliasstore/ESAliasStore.java b/repository/src/main/java/org/apache/atlas/repository/store/aliasstore/ESAliasStore.java index 054d221900..499b572b76 100644 --- a/repository/src/main/java/org/apache/atlas/repository/store/aliasstore/ESAliasStore.java +++ b/repository/src/main/java/org/apache/atlas/repository/store/aliasstore/ESAliasStore.java @@ -225,11 +225,7 @@ private void personaPolicyToESDslClauses(List policies, } } - if (useHierarchicalQualifiedNameFilter) { - metadataPolicyQualifiedNames.add(connectionQName); - } else { - terms.add(connectionQName); - } + terms.add(connectionQName); } else if (getPolicyActions(policy).contains(ACCESS_READ_PERSONA_GLOSSARY)) { if (CollectionUtils.isNotEmpty(assets)) {