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:
Mohit Yadav 2025-06-25 21:54:02 +05:30 committed by GitHub
parent 2c696bb1e2
commit 0c6ded3ae3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);