Problem/Motivation

If data is missing in paragraphs_bundle table, migration will fail with error Undefined array key "paragraph_bundle_name"

Steps to reproduce

Remove some entries from paragraphs_bundle table and then do migration

Proposed resolution

Modify Paragraphs Type source plugin to handle missing Pargraphs bundle

Remaining tasks

None

User interface changes

None

API changes

None

Data model changes

None

Comments

narendraR created an issue. See original summary.

narendrar’s picture

Status: Active » Needs review
StatusFileSize
new2.26 KB

Initial patch

Status: Needs review » Needs work

The last submitted patch, 2: missing_paragraph_bundle-3228554-2.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

narendrar’s picture

StatusFileSize
new2.25 KB

Updated patch

narendrar’s picture

Status: Needs work » Needs review
StatusFileSize
new2.26 KB

Updated patch

Status: Needs review » Needs work

The last submitted patch, 5: missing_paragraph_bundle-3228554-5.patch, failed testing. View results

narendrar’s picture

Status: Needs work » Needs review
StatusFileSize
new3.18 KB

Another one :)

huzooka’s picture

#7 does not migrate those paragraph types which don't have any paragraph entity instances.

This patch solves this issue by using a union. I also attach a migrate source plugin test for ParagraphsType.

huzooka’s picture

StatusFileSize
new7.93 KB
new5.77 KB

Please ignore #10.

huzooka’s picture

StatusFileSize
new7.43 KB
new5.27 KB

..and ignore #11.

huzooka’s picture

StatusFileSize
new7.44 KB
new5.89 KB

Fixing CS + update test added in #7 (compatibility with current HEAD).