Skip to content

Conversation

@joshheald
Copy link
Contributor

@joshheald joshheald commented Nov 24, 2025

Description

This PR prevents trashed/draft/pending products from being shown in search results.

Test Steps

  • Launch the app and open POS
  • In WP-Admin, trash a product (or make it draft/pending)
  • Pull to refresh the item list to do an incremental sync
  • Search for the trashed product – observe that it's not shown

  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

@joshheald joshheald added this to the 23.8 milestone Nov 24, 2025
@joshheald joshheald added type: task An internally driven task. feature: POS labels Nov 24, 2025
@wpmobilebot
Copy link
Collaborator

wpmobilebot commented Nov 24, 2025

App Icon📲 You can test the changes from this Pull Request in WooCommerce iOS Prototype by scanning the QR code below to install the corresponding build.

App NameWooCommerce iOS Prototype
Build Numberpr16389-737641a
Version23.7
Bundle IDcom.automattic.alpha.woocommerce
Commit737641a
Installation URL2374rehn7b8b0
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@iamgabrielma iamgabrielma self-assigned this Nov 25, 2025
Copy link
Contributor

@iamgabrielma iamgabrielma left a comment

Choose a reason for hiding this comment

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

Products that have been searched before still will show under "popular searches" despite being unsupported after the action to change their status, not sure if should be part of the scope of this PR, handled separately, or not handled at all:

  1. search for a product
  2. trash it
  3. perform partial sync
  4. open the search, product will display there, then immediately be removed as soon as we start to type something
Cached omelette Trashed omelette
Simulator Screenshot - iPad mini (A17 Pro) - US store - 2025-11-25 at 12 31 08 Simulator Screenshot - iPad mini (A17 Pro) - US store - 2025-11-25 at 12 31 18

Otherwise LGTM!

@joshheald
Copy link
Contributor Author

Products that have been searched before still will show under "popular searches" despite being unsupported after the action to change their status, not sure if should be part of the scope of this PR, handled separately, or not handled at all:

Otherwise LGTM!

Good catch. The popular products aren't fed from the local catalog, so this is an existing issue. We could refresh them at the same time as we do an incremental sync, at least from PTR/purchase. I'll see if it's straightforward and do it here if it is... but I don't think it's a must have.

Thanks for the review

@dangermattic
Copy link
Collaborator

1 Warning
⚠️ View files have been modified, but no screenshot or video is included in the pull request. Consider adding some for clarity.

Generated by 🚫 Danger

@joshheald joshheald enabled auto-merge November 25, 2025 10:47
@joshheald
Copy link
Contributor Author

Products that have been searched before still will show under "popular searches" despite being unsupported after the action to change their status, not sure if should be part of the scope of this PR, handled separately, or not handled at all:

I'll see if it's straightforward and do it here if it is... but I don't think it's a must have.

Done in 737641a – it's not the neatest thing in the world, but on the plus side it make the fix work with the non-local catalog approach as well, and we have other specific controller calls in the item list (e.g. coupon creation.)

I suspect we'll eventually replace the popular products with something from the local catalog too

@joshheald joshheald merged commit 1857228 into trunk Nov 25, 2025
14 checks passed
@joshheald joshheald deleted the woomob-1766-local-catalog-dont-show-trashed-products-in-search branch November 25, 2025 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature: POS type: task An internally driven task.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants