Skip to content

Commit

Permalink
resolved PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hr2904 committed Jun 21, 2024
1 parent 94dcf94 commit 7cb2997
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,14 @@ private void processCreateStakeholderTitle(AtlasEntity entity) throws AtlasBaseE
if (CollectionUtils.isEmpty(domainQualifiedNames)) {
throw new AtlasBaseException(BAD_REQUEST, "Please provide attribute " + ATTR_DOMAIN_QUALIFIED_NAMES);
}
domainQualifiedNames.replaceAll(s -> s.equals(STAR) ? NEW_STAR : s);
if (domainQualifiedNames.contains(NEW_STAR)) {
if (domainQualifiedNames.contains(NEW_STAR) || domainQualifiedNames.contains(STAR)) {
if (domainQualifiedNames.size() > 1) {

domainQualifiedNames.clear();
domainQualifiedNames.add(NEW_STAR);
entity.setAttribute(ATTR_DOMAIN_QUALIFIED_NAMES, domainQualifiedNames);
} else {
domainQualifiedNames.replaceAll(s -> s.equals(STAR) ? NEW_STAR : s);
}

String qualifiedName = format(PATTERN_QUALIFIED_NAME_ALL_DOMAINS, getUUID());
Expand Down

0 comments on commit 7cb2997

Please sign in to comment.