Skip to content

Commit

Permalink
Merge pull request #2555 from atlanhq/domainpoliices
Browse files Browse the repository at this point in the history
Fix Persona alias for Doamin reads
  • Loading branch information
nikhilbonte21 authored Dec 1, 2023
2 parents c0d0cb6 + 96894ea commit d624dbf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ private void personaPolicyToESDslClauses(List<AtlasEntity> policies,
for (String asset : assets) {
//terms.add(asset);
List<Map<String, Object>> mustMap = new ArrayList<>();
mustMap.add(mapOf("wildcard", mapOf(QUALIFIED_NAME, asset + "/domain/*")));
mustMap.add(mapOf("wildcard", mapOf(QUALIFIED_NAME, asset + "/*domain/*")));
mustMap.add(mapOf("term", mapOf("__typeName.keyword", "DataDomain")));
allowClauseList.add(mapOf("bool", mapOf("must", mustMap)));
}
Expand All @@ -224,7 +224,7 @@ private void personaPolicyToESDslClauses(List<AtlasEntity> policies,
for (String asset : assets) {
//terms.add(asset);
List<Map<String, Object>> mustMap = new ArrayList<>();
mustMap.add(mapOf("wildcard", mapOf(QUALIFIED_NAME, asset + "/*/product/*")));
mustMap.add(mapOf("wildcard", mapOf(QUALIFIED_NAME, asset + "/*product/*")));
mustMap.add(mapOf("term", mapOf("__typeName.keyword", "DataProduct")));
allowClauseList.add(mapOf("bool", mapOf("must", mustMap)));
}
Expand Down

0 comments on commit d624dbf

Please sign in to comment.