Fix Get Parent (#17567)

This commit is contained in:
Mohit Yadav 2024-08-23 18:19:26 +05:30 committed by GitHub
parent 66f06fd5c6
commit bb52bc779e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 5 additions and 6 deletions

View File

@ -186,7 +186,7 @@ public class DashboardDataModelRepository extends EntityRepository<DashboardData
@Override
public EntityInterface getParentEntity(DashboardDataModel entity, String fields) {
return Entity.getEntity(entity.getService(), fields, Include.NON_DELETED);
return Entity.getEntity(entity.getService(), fields, ALL);
}
@Override

View File

@ -162,7 +162,7 @@ public class DatabaseSchemaRepository extends EntityRepository<DatabaseSchema> {
@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

View File

@ -168,7 +168,7 @@ public class IngestionPipelineRepository extends EntityRepository<IngestionPipel
@Override
public EntityInterface getParentEntity(IngestionPipeline entity, String fields) {
return Entity.getEntity(entity.getService(), fields, Include.NON_DELETED);
return Entity.getEntity(entity.getService(), fields, Include.ALL);
}
private ChangeEvent getChangeEvent(

View File

@ -72,7 +72,6 @@ import org.openmetadata.schema.type.ColumnProfilerConfig;
import org.openmetadata.schema.type.DailyCount;
import org.openmetadata.schema.type.DataModel;
import org.openmetadata.schema.type.EntityReference;
import org.openmetadata.schema.type.Include;
import org.openmetadata.schema.type.JoinedWith;
import org.openmetadata.schema.type.Relationship;
import org.openmetadata.schema.type.SuggestionType;
@ -697,7 +696,7 @@ public class TableRepository extends EntityRepository<Table> {
@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

View File

@ -136,7 +136,7 @@ public class TestCaseRepository extends EntityRepository<TestCase> {
@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