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

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

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: