mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-06 23:52:29 +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;
|
||||
|
||||
import static org.openmetadata.schema.type.Include.ALL;
|
||||
import static org.openmetadata.service.util.OpenMetadataOperations.printToAsciiTable;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@ -229,7 +230,7 @@ public class EntityRelationshipCleanup {
|
||||
LOG.debug("No repository found for entity type: {}", entityType);
|
||||
return false;
|
||||
}
|
||||
repository.get(null, entityId, EntityUtil.Fields.EMPTY_FIELDS);
|
||||
repository.get(null, entityId, EntityUtil.Fields.EMPTY_FIELDS, ALL, false);
|
||||
return true;
|
||||
} catch (EntityNotFoundException e) {
|
||||
LOG.debug("Entity {}:{} not found", entityType, entityId);
|
||||
|
Loading…
x
Reference in New Issue
Block a user