How to do migrations in contents for discontinued blocks

Greetings!

I’m new to Plone, please let me know if there are any improvements to my forum posts

I have the following scenario:

A "blockA" was available for users, but for UX reasons we decided to disable this block and create a "blockB" that has a better experience while editing the content. But if we just update the frontend addon removing the "blockA" and adding "blockB" all contents the has "blockA" will have the error "Unkown block".

Is there any upgrade step or other way to run a migration in all plone contents to replace "blockA" to "blockB"

1 Like

Hello Felipe,

You will need to add a backend upgrade step to list all content using that block (there is an index in the catalog you can use), and for each content update the blocks.

Cheers,
ea

1 Like