-
Notifications
You must be signed in to change notification settings - Fork 219
Enable manual migration of Products to Product Collection #10655
Enable manual migration of Products to Product Collection #10655
Conversation
The release ZIP for this PR is accessible via:
TypeScript Errors Report
🎉 🎉 This PR does not introduce new TS errors. Script Dependencies ReportThere is no changed script dependency between this branch and trunk. This comment was automatically generated by the |
Size Change: +1 B (0%) Total Size: 1.42 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and the migration works correctly.
The only nitpicky suggestion would be to change the changelog entry to match the pattern:
Product Collection: Allow to convert Products (Beta) blocks into Product Collection.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! The migration worked well. The only thing I would mention is if it is necessary to allow reverting? Since Product Collection does not remove anything that was in Products (beta) and only adding features, I don't see why we should allow reverting.
@roykho, Thanks for review! We allow for revert in case Product Collection doesn't satisfy all of the needs (and we expect early feedback) or if there was something wrong with the migration itself. As an example, we do the same for blockified templates (even though we encourage them, there's still an option to opt-out). |
* Enable Product Collection as a core feature * Fix: disable product query title and summary variations from inserter in favour of Product Collection ones (#10548) * Limit the scope of Product Query's Product Title and Product Summary * Add missing piece after refactoring * Enable manual migration of Products to Product Collection (#10655) * Refactor block variation registration in product-collection (#10701) This commit refactors the product-collection block's variation registration. Changes: - The `product-summary` and `product-title` variations have been encapsulated within their own respective functions: `registerProductSummaryVariation` and `registerProductTitleVariation`. - Imported and invoked these new functions in the main `index.tsx` of the product-collection block, ensuring the variations are registered. --------- Co-authored-by: Manish Menaria <the.manish.menaria@gmail.com>
What
This PR enables manual migration from Products (Beta) to Product Collection blocks. It's on top of #10524, which enables Product Collection as a core feature.
Contributes to #10430
In #10524 we're enabling Product Collection block. Since the migration from Products (Beta) block to Product Collection has been finished, this PR enables additionally manual migration.
It's kept separated to allow testing both scenarios and deciding if we want to proceed with manual migration.
Testing Instructions
Please consider any edge cases this change may have, and also other areas of the product this may impact.
Note: Migration mechanism is not a part of this PR and various scenarios were already tested in the scope of #10268 and #10115. This PR only enables the migration.
WooCommerce Visibility
Required:
Checklist
Required:
[type]
label or a[skip-changelog]
label.Conditional:
[skip-changelog]
label is not present).Changelog