Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions liminal/entity_schemas/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,11 @@ def __init__(

def execute(self, benchling_service: BenchlingService) -> dict[str, Any]:
tag_schema = self._validate(benchling_service)
updated_tag_schema = tag_schema.update_schema_props(
self.update_props.model_dump(exclude_unset=True)
)
update_diff = self.update_props.model_dump(exclude_unset=True)
updated_tag_schema = tag_schema.update_schema_props(update_diff)
update = UpdateTagSchemaModel(**updated_tag_schema.model_dump())
if "constraint_fields" not in update_diff:
update.constraint = None
return update_tag_schema(benchling_service, tag_schema.id, update.model_dump())

def describe_operation(self) -> str:
Expand Down
Loading