Problem/Motivation

In field_config_instance there are fields on the 'product' bundle for the entities commerce_product. These should become field on the 'product' bundle on the commerce_product_variation entity type. However, the 'product' bundle is not migrated. Note the smae problem occurred in the Ubercart 6 product type migration.

The source plugin query selects only those types that also have a 'line_item_type' in the data field of the field_config_instance. And that makes sense but it does mean the field instance migrations will fail.

Proposed resolution

Modify the source plugin so that it return all products listed in commerce_product_type

Remaining tasks

Make a patch
Review
Commit

User interface changes

N/A

API changes

N/A

Data model changes

N/A

CommentFileSizeAuthor
#8 interdiff_2-8.txt549 bytesheddn
#8 2920104-8.patch5.81 KBheddn
#2 2920104-2.patch5.84 KBquietone
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

quietone created an issue. See original summary.

quietone’s picture

FileSize
5.84 KB
quietone’s picture

Status: Active » Needs review

Tests passed, setting to NR.

quietone’s picture

Issue tags: +blocker

This is blocking #2905065: Migrate fields to the correct entity . Therefore, with one week to go before the next release there is now a 2 day grace period for reviews.

quietone’s picture

Status: Needs review » Reviewed & tested by the community

Retested, tests are green. No feedback to the contrary, so RTBC.

heddn’s picture

Status: Reviewed & tested by the community » Needs work

Can we add some fields for nodes that aren't products and add an expected count to confirm we aren't pulling in non-product data?

quietone’s picture

Status: Needs work » Needs review

This just changes the source plugin to get all the product types, not some. It does nothing to get product fields on the correct entity, so I think that is out of scope. Plus the work to do that is in #2905065: Migrate fields to the correct entity . So, I still think this is ready to go.

heddn’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
5.81 KB
549 bytes

Added a count assertion as well to the test. It confirms we are *only* returning the two expected products and not other node data. Otherwise this looks good to me. If this comes back green, let's commit it.

  • heddn committed 3ca9946 on 8.x-2.x
    Issue #2920104 by heddn, quietone: ProductType doesn't migrate default...
heddn’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.