-
Notifications
You must be signed in to change notification settings - Fork 136
POS Product Migration Step 6 #14589
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
POS Product Migration Step 6 #14589
Conversation
📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
|
…ific-product-model' into issue/woomob-1280-woo-poslocal-catalog-use-new-pos-specific-product-model-step-6 # Conflicts: # WooCommerce/src/test/kotlin/com/woocommerce/android/ui/woopos/common/data/searchbyidentifier/WooPosSearchByIdentifierProcessVariationResultTest.kt # WooCommerce/src/test/kotlin/com/woocommerce/android/ui/woopos/common/data/searchbyidentifier/WooPosSearchByIdentifierResultConverterTest.kt
…omob-1280-woo-poslocal-catalog-use-new-pos-specific-product-model-step-6
| is WooPosSearchByIdentifierResult.Success -> { | ||
| val product = result.product | ||
| if (product.type.equals("variation", ignoreCase = true)) { | ||
| if (product.type.value.equals("variation", ignoreCase = true)) { |
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.
Shell it be product.type == WooPosProductModelVersion2.WooPosProductType.VARIATION ?
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.
Fixed in f5884ec
| updatedItem: WooPosCartItemViewState.Product, | ||
| updatedProduct: ParentToChildrenEvent.OrderCreated.ProductInfo | ||
| ) { | ||
| // TBD Local Catalog The app should update cache based on the data coming from backend not from the view layer |
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.
Is the data coming here from the view layer?
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.
Yes, or at least we are receiving WooPosCartItemViewState.Product which is a ViewState.
kidinov
left a comment
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! I left a couple of minor comments here
0e38476
into
feature-branch-for-pos-product-migration
Step 5 needs to be merged first.
Failing CI is expected here since this is a partial migration.
Description
This is part of the migration to POS specific Product Model. There will be many changes and I want to avoid huge PRs. Therefore I created a feature branch - I'll create a PR for each set of changes. The CI won't be able to build this PR, but I personally wouldn't worry about it -> we can ensure everything is green and working as expected when we are merging the feature branch back to trunk.
The
Version2in the name WooPosProductModelVersion2 will eventually be removed.This PR migrates WooPosCartItemsUpdater, WooPosSearchByIdentifierProcessVariationResult and WooPosSearchByIdentifierResultConverter.
Images/gif
N/A
RELEASE-NOTES.txtif necessary. Use the "[Internal]" label for non-user-facing changes.