Skip to content

Conversation

@aldeed
Copy link
Contributor

@aldeed aldeed commented Aug 9, 2018

Impact: breaking
Type: refactor

Changes

This is some refactor work in preparation for #4497. In particular, the cart.shipping and order.shipping array items no longer have an items array on them because this wasn't used much and isn't necessary. The items are already on cart.items or order.items. It is replaced by an itemIds property, with just the IDs, which is only set for orders, not carts.

Breaking changes

There are migrations that make this non-breaking for core, but it will break any non-core plugins that are expecting the items property to be there. Such plugins should be updated to use a combination of itemIds and the main items list.

Testing

Verify that you can still successfully add items to a cart, checkout, and fulfill the order through to completion as an admin.

@aldeed aldeed changed the title [WIP] Refactor fulfillment items Refactor fulfillment items Aug 9, 2018
@aldeed aldeed self-assigned this Aug 9, 2018
@aldeed aldeed requested a review from kieckhafer August 9, 2018 21:14
Copy link
Member

@kieckhafer kieckhafer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good, I'm able to checkout as I should.

@kieckhafer kieckhafer merged commit 8bf4132 into release-1.15.0 Aug 10, 2018
@kieckhafer kieckhafer deleted the refactor-aldeed-fulfillment-items branch August 10, 2018 17:06
@spencern spencern mentioned this pull request Aug 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants