Skip to content

fix update entity schema#201

Merged
nirmit-damania-dyno merged 2 commits intomainfrom
fix-update-entity-schema
Mar 31, 2026
Merged

fix update entity schema#201
nirmit-damania-dyno merged 2 commits intomainfrom
fix-update-entity-schema

Conversation

@nirmit-damania-dyno
Copy link
Copy Markdown
Collaborator

@nirmit-damania-dyno nirmit-damania-dyno commented Mar 28, 2026

Related to PR #198...

In Benchling's API, the expected payload for updating entity schema properties is just the changed properties. However, Liminal was sending the full schema properties as the payload with the changed property as part of it. This resulted in the bug mentioned in PR #198 where Benchling interpreted a constraint getting passed in as attempting to add an additional constraint, rejecting it as a duplicate add.

Rather than just dropping constraints, I chose to follow the Benchling API expectations, and modified the update_schema_props function to generate the UpdateTagSchemaModel with only the changed properties.

Tested locally by updating schema properties when constraints are already set

Screenshot 2026-03-28 at 5 26 27 PM

@nirmit-damania-dyno nirmit-damania-dyno added type:bug Something isn't working semver:patch A backwards compatible bug fix (patch version bump) labels Mar 29, 2026
@nirmit-damania-dyno nirmit-damania-dyno merged commit 61fd7e0 into main Mar 31, 2026
4 checks passed
@nirmit-damania-dyno nirmit-damania-dyno deleted the fix-update-entity-schema branch March 31, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver:patch A backwards compatible bug fix (patch version bump) type:bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant