mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-10-31 10:39:30 +00:00 
			
		
		
		
	Minor: Fix showing soft deleted entities (#14205)
This commit is contained in:
		
							parent
							
								
									04b20bdd48
								
							
						
					
					
						commit
						f5327eb2e2
					
				| @ -86,7 +86,7 @@ public class ChartRepository extends EntityRepository<Chart> { | ||||
| 
 | ||||
|   @Override | ||||
|   public EntityInterface getParentEntity(Chart entity, String fields) { | ||||
|     return Entity.getEntity(entity.getService(), fields, Include.NON_DELETED); | ||||
|     return Entity.getEntity(entity.getService(), fields, Include.ALL); | ||||
|   } | ||||
| 
 | ||||
|   public class ChartUpdater extends ColumnEntityUpdater { | ||||
|  | ||||
| @ -180,7 +180,7 @@ public class ContainerRepository extends EntityRepository<Container> { | ||||
| 
 | ||||
|   @Override | ||||
|   public EntityInterface getParentEntity(Container entity, String fields) { | ||||
|     return Entity.getEntity(entity.getService(), fields, Include.NON_DELETED); | ||||
|     return Entity.getEntity(entity.getService(), fields, Include.ALL); | ||||
|   } | ||||
| 
 | ||||
|   @Override | ||||
|  | ||||
| @ -181,7 +181,7 @@ public class DashboardRepository extends EntityRepository<Dashboard> { | ||||
| 
 | ||||
|   @Override | ||||
|   public EntityInterface getParentEntity(Dashboard entity, String fields) { | ||||
|     return Entity.getEntity(entity.getService(), fields, Include.NON_DELETED); | ||||
|     return Entity.getEntity(entity.getService(), fields, Include.ALL); | ||||
|   } | ||||
| 
 | ||||
|   private List<EntityReference> getRelatedEntities(Dashboard dashboard, String entityType) { | ||||
|  | ||||
| @ -284,8 +284,8 @@ public class GlossaryTermRepository extends EntityRepository<GlossaryTerm> { | ||||
|   @Override | ||||
|   public EntityInterface getParentEntity(GlossaryTerm entity, String fields) { | ||||
|     return entity.getParent() != null | ||||
|         ? Entity.getEntity(entity.getParent(), fields, Include.NON_DELETED) | ||||
|         : Entity.getEntity(entity.getGlossary(), fields, Include.NON_DELETED); | ||||
|         ? Entity.getEntity(entity.getParent(), fields, Include.ALL) | ||||
|         : Entity.getEntity(entity.getGlossary(), fields, Include.ALL); | ||||
|   } | ||||
| 
 | ||||
|   private void addGlossaryRelationship(GlossaryTerm term) { | ||||
|  | ||||
| @ -223,7 +223,7 @@ public class MlModelRepository extends EntityRepository<MlModel> { | ||||
| 
 | ||||
|   @Override | ||||
|   public EntityInterface getParentEntity(MlModel entity, String fields) { | ||||
|     return Entity.getEntity(entity.getService(), fields, Include.NON_DELETED); | ||||
|     return Entity.getEntity(entity.getService(), fields, Include.ALL); | ||||
|   } | ||||
| 
 | ||||
|   @Override | ||||
|  | ||||
| @ -248,7 +248,7 @@ public class PipelineRepository extends EntityRepository<Pipeline> { | ||||
| 
 | ||||
|   @Override | ||||
|   public EntityInterface getParentEntity(Pipeline entity, String fields) { | ||||
|     return Entity.getEntity(entity.getService(), fields, Include.NON_DELETED); | ||||
|     return Entity.getEntity(entity.getService(), fields, Include.ALL); | ||||
|   } | ||||
| 
 | ||||
|   @Override | ||||
|  | ||||
| @ -247,7 +247,7 @@ public class SearchIndexRepository extends EntityRepository<SearchIndex> { | ||||
| 
 | ||||
|   @Override | ||||
|   public EntityInterface getParentEntity(SearchIndex entity, String fields) { | ||||
|     return Entity.getEntity(entity.getService(), fields, Include.NON_DELETED); | ||||
|     return Entity.getEntity(entity.getService(), fields, Include.ALL); | ||||
|   } | ||||
| 
 | ||||
|   @Override | ||||
|  | ||||
| @ -100,7 +100,7 @@ public class StoredProcedureRepository extends EntityRepository<StoredProcedure> | ||||
| 
 | ||||
|   @Override | ||||
|   public EntityInterface getParentEntity(StoredProcedure entity, String fields) { | ||||
|     return Entity.getEntity(entity.getDatabaseSchema(), fields, Include.NON_DELETED); | ||||
|     return Entity.getEntity(entity.getDatabaseSchema(), fields, Include.ALL); | ||||
|   } | ||||
| 
 | ||||
|   public void setService(StoredProcedure storedProcedure, EntityReference service) { | ||||
|  | ||||
| @ -235,7 +235,7 @@ public class TopicRepository extends EntityRepository<Topic> { | ||||
| 
 | ||||
|   @Override | ||||
|   public EntityInterface getParentEntity(Topic entity, String fields) { | ||||
|     return Entity.getEntity(entity.getService(), fields, Include.NON_DELETED); | ||||
|     return Entity.getEntity(entity.getService(), fields, Include.ALL); | ||||
|   } | ||||
| 
 | ||||
|   @Override | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Sriharsha Chintalapani
						Sriharsha Chintalapani