Closed (duplicate)
Project:
Commerce Migrate
Version:
8.x-2.x-dev
Component:
Drupal Commerce 1.x
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 Aug 2017 at 22:04 UTC
Updated:
3 Aug 2017 at 14:25 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mglamanComment #3
heddnSo, this probably needs tests then. Back to NW for tests.
Comment #4
mglamanHm, I'm wondering how we could test since we have to manually run migration dependencies in tests.
See http://cgit.drupalcode.org/commerce_migrate/tree/modules/commerce/tests/...
Comment #5
heddnInteresting point in #4. We should probably add an integration test that tests all the things. Would that catch this? Or we can introspect a migration for its dependencies and run them. So we don't have to manually figure out what they are.
BTW, I don't see anywhere in d7_product_display_type.yml or d7_product_display.yml where we are mapping the store.
Comment #6
quietone commentedCorrect me if I am wrong, but AFAIKT there isn't a similar test in core for migrations. This would be a new type of test to be added to all the commerce migrations. If that is true, I'd prefer to see that in a follow up. Having said that the closest thing in core is the UI testing in migrate_drupal_ui. It will run the migrations found by discovery and run them in dependency order. If a dependency is missing then a migration would fail in that test. Maybe we can use that method here. If that seems reasonable then the source plugin annotations need to fixed, #2899495: Add source_module and destination_module to the sources and destionations
.
Yes, the default store migration should be there as a dependency. Those migration tests run MigrateStore so it is there for the tests.
This can be removed, d7_product depends on d7_product_type.
And, I think, d7_product should have a dependency on d7_default_commerce_store_addedNo, I just mixed up the names. This is being fixed in #2899062: Order migration does not list store migration as dependencyComment #7
heddnI've opened #2899672: Commerce 1 Test "All The Things".
I also just committed #2899062: Order migration does not list store migration as dependency, to which I'm closing this as duplicate.