Skip to content

Commit 82b2248

Browse files
authored
Merge pull request #981 from plone/migration-last-minute-changes
some last-minute changes for the migration-training
2 parents 382c2d2 + 8c9fe9d commit 82b2248

3 files changed

Lines changed: 23 additions & 8 deletions

File tree

docs/migrations/migrations.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ myst:
1313

1414
## Intro
1515

16+
* Who are you (name/country/company)
1617
* What do you want to learn?
1718
* What are your experiences with migrations so far?
18-
* What are your next use cases?
19+
* If you have brought a migration for the practive-part of the training:
20+
* What are the source- and target-versions?
21+
* Will you migrate to Volto?
22+
* What it special about it (e.g. content-types, size, features, design)?
1923

2024

2125
## What are Migrations?

docs/migrations/transmute.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ myst:
1313

1414
Instead of using collective.exportimport for the import of exported data you can also use [`collective.transmute`](https://github.com/collective/collective.transmute)
1515

16-
`collective.transmute` transforms data extracted by `collective.exportimport` into data to be loaded by `plone.exportimport`.
16+
`collective.transmute` transforms data extracted by `collective.exportimport` into data to be importable by `plone.exportimport`.
1717

1818
```{important}
1919
A requirement for `collective.transmute` to work properly is to export each item as a separate file on the server and include the blob-data as base64 in the json-files.
@@ -85,9 +85,13 @@ class ExportAll(BrowserView):
8585
return self.request.response.redirect(self.context.absolute_url())
8686
```
8787

88-
With `collective.transmute` you can first create a nice report about the exported data regarding content types, views, review states and creators.
88+
With `collective.transmute` you can first create a report about the exported data regarding content types, views, review states and creators.
8989

90-
With `collective.transmute` you can configure a migration-pipeline that includes steps to migrate to Volto (e.g. transform html to Volto-blocks, integrate default-pages and transform collections to listing blocks).
90+
With `collective.transmute` you need to an configure a migration-pipeline of steps that are applied to each item. A step is basically the same as a `item_hook` in `collective.exportimport`.
91+
92+
There are some steps that come with `collective.transmute` that help to migrate to Volto (e.g. transform html to Volto-blocks, integrate default-pages and transform collections to listing blocks).
93+
94+
`collective.transmute` does not do the import (thats delegated to `plone.exportimport`), so there are no `obj_hooks` like in `plone.exportimport`, you would need to add them to `plone.exportimport` if required.
9195

9296
Since `collective.transmute` is still in alpha and is undergoing development we will refer to the documentation:
9397

docs/migrations/volto.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,20 @@ myst:
1111

1212
# Migrate to Volto
1313

14-
See the chapter {ref}`plone6docs:backend-migrate-to-volto-label` of the Plone Upgrade Guide.
15-
16-
This explains mostly why you need to do what and how to use the form `@@migrate_to_volto` by hand.
14+
Please read the chapter {ref}`plone6docs:backend-migrate-to-volto-label` of the Plone Upgrade Guide. This explains mostly why you need to do what and how to use the form `@@migrate_to_volto` by hand.
1715

1816
You can (and should) use the power of that feature in your exportimport-based migration as described in https://github.com/collective/collective.exportimport#migrate-to-volto
1917

20-
A rather new alternative to that solution is to use [`collective.transmute`](https://github.com/collective/collective.transmute) to convert the data exported with `collective.exportimport` so that the migration to Volto can be done by importing the converted data with `plone.exportimport`](https://github.com/plone/plone.exportimport).
18+
The package `contentimport` has a version of `@@import_all` called `@@import_to_volto` that contains all the code used for that.
19+
20+
This will transform the imported content to work with Volto:
21+
22+
* Change html to blocks
23+
* Turn Collections into Documents with Listing Blocks
24+
* Turn Folders into (folderish) Documents
25+
* Integrate default-pages into these Documents
26+
27+
A rather new alternative to that solution is to use [`collective.transmute`](https://github.com/collective/collective.transmute) to convert the data exported with `collective.exportimport` before it is imported so that the migration to Volto is already done by importing the converted data with `plone.exportimport`](https://github.com/plone/plone.exportimport).
2128

2229
Instead of using https://github.com/plone/blocks-conversion-tool to transform html to volto blocks it uses the new package [`collective.html2blocks`](https://collective.github.io/collective.html2blocks/) for that task.
2330

0 commit comments

Comments
 (0)