Improve the Block Validation and Deprecation flows #13611
Labels
[Feature] Block API
API that allows to express the block paradigm.
[Type] Enhancement
A suggestion for improvement.
Is your feature request related to a problem? Please describe.
Even a tiny edit in the block's save method results in a block error.
During validation, the block's HTML structure is checked. It makes blocks really sensitive and susceptible to block errors when something in the block gets updated, e.g. when a new feature is added.
Describe the solution you'd like
I would like to propose to change this methodology. Instead of checking the expected output HTML, just run the validation thru the attribute parameters.
Old validation rules:
New validation rule:
It doesn't matter when the actual output HTML is a little bit different, as long as the attributes CAN be parsed, the output should be assumed to be good. If the attributes cannot be parsed, then that's the only time the block should be deprecated.
Inspired by @fklein-lu's comment in #12708 (comment)
Describe alternatives you've considered
The text was updated successfully, but these errors were encountered: