From bb52bc779e4c9bcb80190f084e3b52e9b7835e24 Mon Sep 17 00:00:00 2001 From: Mohit Yadav <105265192+mohityadav766@users.noreply.github.com> Date: Fri, 23 Aug 2024 18:19:26 +0530 Subject: [PATCH] Fix Get Parent (#17567) --- .../service/jdbi3/DashboardDataModelRepository.java | 2 +- .../openmetadata/service/jdbi3/DatabaseSchemaRepository.java | 2 +- .../service/jdbi3/IngestionPipelineRepository.java | 2 +- .../java/org/openmetadata/service/jdbi3/TableRepository.java | 3 +-- .../org/openmetadata/service/jdbi3/TestCaseRepository.java | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/DashboardDataModelRepository.java b/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/DashboardDataModelRepository.java index 4e0cb2cabb5..4df51919a3e 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/DashboardDataModelRepository.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/DashboardDataModelRepository.java @@ -186,7 +186,7 @@ public class DashboardDataModelRepository extends EntityRepository { @Override public EntityInterface getParentEntity(DatabaseSchema entity, String fields) { - return Entity.getEntity(entity.getDatabase(), fields, Include.NON_DELETED); + return Entity.getEntity(entity.getDatabase(), fields, ALL); } @Override diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/IngestionPipelineRepository.java b/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/IngestionPipelineRepository.java index acefa75a2ba..56f02c9eb2f 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/IngestionPipelineRepository.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/IngestionPipelineRepository.java @@ -168,7 +168,7 @@ public class IngestionPipelineRepository extends EntityRepository { @Override public EntityInterface getParentEntity(Table entity, String fields) { - return Entity.getEntity(entity.getDatabaseSchema(), fields, Include.NON_DELETED); + return Entity.getEntity(entity.getDatabaseSchema(), fields, ALL); } @Override diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/TestCaseRepository.java b/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/TestCaseRepository.java index 502c6ac069b..3c5602976e3 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/TestCaseRepository.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/TestCaseRepository.java @@ -136,7 +136,7 @@ public class TestCaseRepository extends EntityRepository { @Override public EntityInterface getParentEntity(TestCase entity, String fields) { - return Entity.getEntity(entity.getTestSuite(), fields, Include.NON_DELETED); + return Entity.getEntity(entity.getTestSuite(), fields, ALL); } @Override