Skip to content

Conversation

@malinajirka
Copy link
Contributor

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 Version2 in the name WooPosProductModelVersion2 will eventually be removed.

This PR migrates WooPosCartItemsUpdater, WooPosSearchByIdentifierProcessVariationResult and WooPosSearchByIdentifierResultConverter.

Images/gif

N/A

  • I have considered if this change warrants release notes and have added them to RELEASE-NOTES.txt if necessary. Use the "[Internal]" label for non-user-facing changes.

@malinajirka malinajirka added this to the 23.3 milestone Sep 8, 2025
@malinajirka malinajirka added status: do not merge Dependent on another PR, ready for review but not ready for merge. feature: POS labels Sep 8, 2025
@wpmobilebot
Copy link
Collaborator

wpmobilebot commented Sep 8, 2025

📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
App Name WooCommerce-Wear Android
Platform⌚️ Wear OS
FlavorJalapeno
Build TypeDebug
Commitf5884ec
Direct Downloadwoocommerce-wear-prototype-build-pr14589-f5884ec.apk

…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
Base automatically changed from issue/woomob-1280-woo-poslocal-catalog-use-new-pos-specific-product-model to feature-branch-for-pos-product-migration September 9, 2025 06:35
@malinajirka malinajirka requested a review from kidinov September 9, 2025 06:35
…omob-1280-woo-poslocal-catalog-use-new-pos-specific-product-model-step-6
@malinajirka malinajirka removed the status: do not merge Dependent on another PR, ready for review but not ready for merge. label Sep 9, 2025
@kidinov kidinov self-assigned this Sep 9, 2025
is WooPosSearchByIdentifierResult.Success -> {
val product = result.product
if (product.type.equals("variation", ignoreCase = true)) {
if (product.type.value.equals("variation", ignoreCase = true)) {
Copy link
Contributor

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 ?

Copy link
Contributor Author

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
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

@kidinov kidinov left a 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

@malinajirka malinajirka merged commit 0e38476 into feature-branch-for-pos-product-migration Sep 10, 2025
4 of 5 checks passed
@malinajirka malinajirka deleted the issue/woomob-1280-woo-poslocal-catalog-use-new-pos-specific-product-model-step-6 branch September 10, 2025 12:48
@malinajirka malinajirka mentioned this pull request Sep 10, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants