diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/exception/CatalogGenericExceptionMapper.java b/openmetadata-service/src/main/java/org/openmetadata/service/exception/CatalogGenericExceptionMapper.java index a63b922e27d..a4c7ae6c536 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/exception/CatalogGenericExceptionMapper.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/exception/CatalogGenericExceptionMapper.java @@ -42,7 +42,6 @@ public class CatalogGenericExceptionMapper implements ExceptionMapper @Override public Response toResponse(Throwable ex) { LOG.debug(ex.getMessage()); - ex.printStackTrace(); if (ex instanceof ProcessingException || ex instanceof IllegalArgumentException || ex instanceof javax.ws.rs.BadRequestException) { diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/EntityRepository.java b/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/EntityRepository.java index 2ebc2a55f35..1167125c446 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/EntityRepository.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/EntityRepository.java @@ -403,7 +403,10 @@ public abstract class EntityRepository { @Transaction public final T getByName(UriInfo uriInfo, String fqn, Fields fields, Include include) throws IOException { - return withHref(uriInfo, setFieldsInternal(dao.findEntityByName(fqn, include), fields)); + T entity = dao.findEntityByName(fqn, include); + setFieldsInternal(entity, fields); + setInheritedFields(entity, fields); + return withHref(uriInfo, entity); } @Transaction diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/util/SubscriptionUtil.java b/openmetadata-service/src/main/java/org/openmetadata/service/util/SubscriptionUtil.java index e752d5f9b91..a2208bf1ce7 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/util/SubscriptionUtil.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/util/SubscriptionUtil.java @@ -75,7 +75,7 @@ public class SubscriptionUtil { result .getData() .forEach( - (user) -> { + user -> { if (type == CreateEventSubscription.SubscriptionType.EMAIL || type == CreateEventSubscription.SubscriptionType.DATA_INSIGHT) { data.add(user.getEmail()); @@ -109,7 +109,7 @@ public class SubscriptionUtil { List ownerOrFollowers = daoCollection.relationshipDAO().findFrom(entityId.toString(), entityType, relationship.ordinal()); ownerOrFollowers.forEach( - (owner) -> { + owner -> { if (type == CreateEventSubscription.SubscriptionType.EMAIL || type == CreateEventSubscription.SubscriptionType.DATA_INSIGHT) { if (USER.equals(owner.getType())) { diff --git a/openmetadata-service/src/test/java/org/openmetadata/service/resources/EntityResourceTest.java b/openmetadata-service/src/test/java/org/openmetadata/service/resources/EntityResourceTest.java index 1c3410be4b3..e5b1fcdfcb3 100644 --- a/openmetadata-service/src/test/java/org/openmetadata/service/resources/EntityResourceTest.java +++ b/openmetadata-service/src/test/java/org/openmetadata/service/resources/EntityResourceTest.java @@ -2734,6 +2734,8 @@ public abstract class EntityResourceTest