Fix: prevent ASN collisions for merge operations (#11634)

This commit is contained in:
shamoon authored and GitHub committed 2025-12-19 20:05:34 -08:00
1 parent 4e789acf2d
commit 7604a0b583
6 files changed
+24 -4

No files matched your search

+3
View File
@@ -30,6 +30,7 @@ class DocumentMetadataOverrides:
change_users: list[int] | None = None
change_groups: list[int] | None = None
custom_fields: dict | None = None
skip_asn: bool = False
def update(self, other: "DocumentMetadataOverrides") -> "DocumentMetadataOverrides":
"""
@@ -49,6 +50,8 @@ class DocumentMetadataOverrides:
self.storage_path_id = other.storage_path_id
if other.owner_id is not None:
self.owner_id = other.owner_id
if other.skip_asn:
self.skip_asn = True
# merge
if self.tag_ids is None: