Rodrigo Ferreira de Souza: Data migration to Plone 5.2 and Volto
Talk by Rodrigo Ferreira de Souza at the Plone Conference 2019 in Ferrara.
At KitConcept we have some websites that need to be deployed in Plone 5.2. We could have used collective.transmogrifier to migrate from 4.3 to 5+. And from 5.1 to 5.2 migrate the ZODB from Python 2.7 to Python 3. Transmogrifier is also an option for that part.
Why would we use transmogrifier? There are many generic pipelines available for common cases. Flexibility to deal with different use cases. And it is actually a brilliant wayto use the iterator design pattern. Every piece of the pipeline changes a small thing, and hands the information over to the next piece.
- Large university site
- High-profile government client
- Large research institution client website
Challenge: go to Python 3, Plone 5.2 and Volto. With Volto, they spare a migration from Plone 5 to 6, at least partially. Volto is a way to sell the client a Python 3 upgrade: it is the right time to use Volto.
We use Jenkins to test the migration.
General backend things:
- Old ATTopics to core Collections. Use collective.jsonify to export it, in a way that already looks more like a Collection.
- Rich text: migrate to Volto blocks.
- Post migration: collective.cover needed special handling.
What we polish to enter in Volto land:
- We use collective folderish types.
- deal with default pages
- Convert RichText to Volto DraftJS
- easily point to old website when content is not imported
- fix some urls (we want to use resolveuid)
- simple folders we should turn info page with listing block
- simple collections we should turn info page with collection block
Question: can you open source the module that handles the RichText to Volto blocks migration?
Answer: yes, it is actually just 38 lines with React in Node. I tried to do it in Python, but could not get it to work. And we can sprint on it.