-
Notifications
You must be signed in to change notification settings - Fork 117
Shipping Labels: Sync shipments #15899
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
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 main flow works normal.
func syncShipmentsForWooShipping() { | ||
stores.dispatch(WooShippingAction.syncShipments(siteID: order.siteID, orderID: order.orderID) { result in | ||
switch result { | ||
case .success(let shipments): |
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.
NIT: the shipments
is not used here.
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.
Thanks, I'll remove this in the next PR that depends on this branch.
Part of WOOMOB-754
Description
This PR continues the work in #15897 to add support for syncing shipments on the order details screen. Changes include:
WooShippingStore
.OrderDetailsViewModel
to sync shipments if a store has the Woo Shipping extension.OrderDetailsViewControllers
to fetch shipments from storage and update shipping labels from the fetched shipments.Testing steps
Testing information
Screenshots
No UI changes
RELEASE-NOTES.txt
if necessary.