Skip to content

Conversation

@nirmit-damania-dyno
Copy link
Collaborator

@nirmit-damania-dyno nirmit-damania-dyno commented Jan 4, 2026

This PR...

  • fixes a bug where if the naming strategies are only template based, the migration fails since it attempts to create an entity schema with no naming strategies which is not allowed. Now, a temporary naming strategy is set in CreateEntitySchema with non-template-based strategies.

  • Fixes a bug in UpdateEntitySchemaNameTemplate where since it is ordered to be before UpdateEntitySchema, the schema name UpdateEntitySchemaNameTemplate points to should be the benchling_given_wh_name, in case the schema wh_name changes after.

  • The test is updated because it is expected that the compare wh_name key is the actual name, not the benchling given name. This was happening before because set_warehouse_name was happening pre model_dump, which was a bug.

    • Note that the compare wh_name keys are not actually used anywhere in the code.

@nirmit-damania-dyno nirmit-damania-dyno added type:bug Something isn't working semver:patch A backwards compatible bug fix (patch version bump) labels Jan 4, 2026
@nirmit-damania-dyno nirmit-damania-dyno merged commit 7d9d124 into main Jan 4, 2026
4 checks passed
@nirmit-damania-dyno nirmit-damania-dyno deleted the bug-schema-compare-naming-strategies branch January 4, 2026 21:26
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.

2 participants