-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Should we migrate old reusable blocks that use deprecated syntax? #9070
Comments
I think this is a duplicate of #8015, but your write-up here is great, so I'll cross-post it there 😄 |
Wait, sorry, I misread this. Not a duplicate; my bad. |
I ran into this issue today while testing 3.9.0-rc.2. I noticed block validation errors in the console for Vimeo and pullquote blocks when opening the Gutenberg demo post:
Result: block validation errors appear in the JavaScript console for the Vimeo embed block and the pullquote block:
I saw that the markup has changed for the Vimeo block (9853) and the pullquote block (9599), so I was wondering if the validation error is expected or if the demo post should be updated in this (more specific) case? |
Technically speaking we can't migrate the blocks as the migration is JS based and there's no parsing server-side yet. But let's consolidate the discussions about the deprecation/validation/migration flows here #7604 |
This issue came up yesterday as a friend had created reusable blocks of a couple of paragraphs that used old, now-deprecated syntax.
Because all reusable blocks are validated on Gutenberg initialization, this meant even adding a new post caused a JS error message in the console.
The fix was to insert the old reusable block, edit it, then save it. This process "healed" the syntax and made it up to snuff.
However that fix is not very discoverable, and it's not unlikely that a lot of users are experiencing block-validation related errors in their JS console, if they've been using reusable blocks for a long time. Can we improve this?
Already now we are showing console warnings in advance of deprecating features. However looking in the console is a very developery thing to do — should we consider showing these messages as notices instead?
The text was updated successfully, but these errors were encountered: