clarity-h2020/csis

Migrate not syncing all attributes when using skip_on_empty plugin

Closed this issue · 1 comments

First noticed here.

For Viewfield fields we need to use the skip_on_empty plugin, otherwise Migrate will create "half-empty" fields in the target site for nodes with empty Viewfield fields, which causes problems. Using this plugin it is ensured that those Viewfield fields remain completely empty in the target site if they have not been set in the source site.

However, this plugin seems to lose some of the arguments needed for Viewfields (see this REST export View of the target site):
migrate-error

display_id, arguments and items_to_display should not be null and are available in the REST export View of the source site.

Currently affected are the migration files for GL-templates and View_as_application content types. For the latest sync process I was able to fix the errors manually on the PROD system but for the next sync process we need to find a lasting solution.

Done. skip_on_empty plugin was replaced by a sub_process plugin. Now the import works as expected.