Skip to content

(closes #275) Fix Downgrade for Creating Schema and Dropdown in Same Op - #278

Merged
ndamania00 merged 2 commits into
mainfrom
fix-downgrade-for-creating-schema-and-dropdown
Nov 8, 2026
Merged

ndamania00 merged 2 commits into
mainfrom
fix-downgrade-for-creating-schema-and-dropdown

Conversation

@ndamania00

@ndamania00 ndamania00 commented Nov 8, 2026 •

Copy link
Copy Markdown
Collaborator

This PR fixes a bug when downgrading an operation that simultaneously creates a schema and dropdown in the same Op. Also some other small clean-ups and fixes

  • Set ArchiveDropdown order to 19. It was previously the same order index as another operation
  • Cleared announcement header
  • Removed validation for ArchiveDropdown. It previously didn't allow archiving a dropdown that was in use for a non-archived field. However, this is not the case on Benchling's side so no need for this check.
    • This was blocking the downgrade bug from above.
  • Set parent_link when creating a new schema to False instead of "unsetting". This is because the default is False instead of None, and is important when comparing for unarchiving a schema.

Proof of upgrade -> downgrade -> reupgrade working
Screenshot 2026-11-08 at 8 57 40 AM

@ndamania00 ndamania00 added the type:bug Something isn't working label Nov 8, 2026
@ndamania00 ndamania00 linked an issue Nov 8, 2026 that may be closed by this pull request
@ndamania00 ndamania00 added the semver:patch A backwards compatible bug fix (patch version bump) label Nov 8, 2026
@ndamania00
ndamania00 merged commit 04c3af4 into main Nov 8, 2026
6 checks passed
@ndamania00
ndamania00 deleted the fix-downgrade-for-creating-schema-and-dropdown branch November 8, 2026 14:09
@ndamania00 ndamania00 changed the title Fix Downgrade for Creating Schema and Dropdown in Same Op Fix Downgrade for Creating Schema and Dropdown in Same Op (closes #275) Nov 8, 2026
@ndamania00 ndamania00 changed the title Fix Downgrade for Creating Schema and Dropdown in Same Op (closes #275) (closes #275) Fix Downgrade for Creating Schema and Dropdown in Same Op Nov 8, 2026
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.

Fix bug when rolling back a revision with created schema and dropdown

1 participant