mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-10-31 02:29:03 +00:00 
			
		
		
		
	Soft-Deleted Entities are not removed from system, so relations are still valid if there is entry in db (#21957)
This commit is contained in:
		
							parent
							
								
									2c696bb1e2
								
							
						
					
					
						commit
						0c6ded3ae3
					
				| @ -13,6 +13,7 @@ | |||||||
| 
 | 
 | ||||||
| package org.openmetadata.service.util; | package org.openmetadata.service.util; | ||||||
| 
 | 
 | ||||||
|  | import static org.openmetadata.schema.type.Include.ALL; | ||||||
| import static org.openmetadata.service.util.OpenMetadataOperations.printToAsciiTable; | import static org.openmetadata.service.util.OpenMetadataOperations.printToAsciiTable; | ||||||
| 
 | 
 | ||||||
| import java.util.ArrayList; | import java.util.ArrayList; | ||||||
| @ -229,7 +230,7 @@ public class EntityRelationshipCleanup { | |||||||
|         LOG.debug("No repository found for entity type: {}", entityType); |         LOG.debug("No repository found for entity type: {}", entityType); | ||||||
|         return false; |         return false; | ||||||
|       } |       } | ||||||
|       repository.get(null, entityId, EntityUtil.Fields.EMPTY_FIELDS); |       repository.get(null, entityId, EntityUtil.Fields.EMPTY_FIELDS, ALL, false); | ||||||
|       return true; |       return true; | ||||||
|     } catch (EntityNotFoundException e) { |     } catch (EntityNotFoundException e) { | ||||||
|       LOG.debug("Entity {}:{} not found", entityType, entityId); |       LOG.debug("Entity {}:{} not found", entityType, entityId); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Mohit Yadav
						Mohit Yadav