New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow schema migration of block documents during Block.save
#8056
Conversation
✅ Deploy Preview for prefect-orion ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
looks like I broke some tests related to updating nested block documents 🤔 investigating EDIT: EDIT AGAIN: |
…ctHQ/prefect into allow-block-schema-changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Adds
block_schema_id
to theBlockDocumentUpdate
action schema to ensure thatblock_schema_id
is passed to PATCH/block_document/{id}
. This is so we can update theblock_schema
associated with an existing block document (if previously saved with a different block schema) when a user callsBlockWithNewSchema.save
withoverwrite=True
, avoiding the need to delete and recreate the block document.Closes #8015
Example
Checklist
<link to issue>
"fix
,feature
,enhancement