mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-05 03:54:23 +00:00
Fix - Existing custom properties getting removed on import of empty extension column (#19234)
This commit is contained in:
parent
35b281f9e3
commit
bc825f8d59
@ -2822,6 +2822,13 @@ public abstract class EntityRepository<T extends EntityInterface> {
|
||||
return;
|
||||
}
|
||||
|
||||
if (operation == Operation.PUT && updatedExtension == null) {
|
||||
// Revert change to non-empty extension if it is being updated by a PUT request
|
||||
// For PUT operations, existing extension can't be removed.
|
||||
updated.setExtension(origExtension);
|
||||
return;
|
||||
}
|
||||
|
||||
List<JsonNode> added = new ArrayList<>();
|
||||
List<JsonNode> deleted = new ArrayList<>();
|
||||
JsonNode origFields = JsonUtils.valueToTree(origExtension);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user