Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The current test fixture for migrations has limited content available for testing the more complex migrations being developed right now. It is ideal to commit a new version which is both slimmed down in size (by clearing out some unneeded table), and has a more complex setup.
The new fixtures has settings and content to test widgets, formatters, view modes, and nested field collections.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2944844-2.paragraphs.Update-testing-database-fixture-to-allow-for-testing-more-complex-interactions.patch | 2.68 MB | mikelutz |
|
Comments
Comment #2
mikelutzComment #3
mikelutzComment #4
heddnCan you explain what things you added/removed from the d7 base fixture? I see some things, but I'm not going to see much in a huge dump like this.
Comment #5
mikelutzSpecifically, starting from https://www.drupal.org/project/paragraphs/issues/2911241#comment-12463873 I made the following changes (actually started with a fresh fixture out of necessity):
Changed the content_type machine name from paragraphs_migration_test to just paragraphs_test. This was necessary because the comment migration was creating a machine name of comment_bundle_ which was too long and causing errors during tests.
Replaced the paragraph_bundle_test paragraph type with two bundles, paragraph_bundle_one and paragraph_bundle_two
Added two new field collection types, field_nested_fc_inner and field_nested_fc_outer. Outer contains the field for inner.
The content type now has two paragraph fields, one which allows any paragraph (field_paragraph_any), and a second with only allows bundles of type paragraph_bundle_one (field_paragraph_one_only)
I adjusted the widget settings for the first paragraph field to non-default settings to test the migration of the widget settings, and set the view mode to a non-default view mode to test the formatter settings.
I hid the second paragraph field in the content type display to test that transfering.
I added a field to the content type for the nested field collection
I created a new revision of the language neutral content item to test revisions migrations
I added basic test content to support the new fields above.
Finally, I cleared the cache, and truncated the access log and search index tables to reduce the size.
Comment #6
heddnThanks for that thoughtful description. I think this is ready to land now.
Comment #8
miro_dietikerGreat work, committed. Ready for next step. :-)