-
Notifications
You must be signed in to change notification settings - Fork 21
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
Fix incorrect product statistics count #1728
Merged
ianlin
merged 11 commits into
develop
from
update/1610-group-variations-when-counting-product-statistics
Nov 22, 2022
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
e5c0520
Group variations for the same parent when coutning synced products in
ianlin 0970482
Move get_post to ProductHelper
ianlin 9f661dc
Add a unit test for getting product statistics
ianlin cac5dd0
Get syncable but not synced through SyncStatus rather than MCStatus
ianlin 2d9c4a3
Merge branch 'develop' into update/1610-group-variations-when-countin…
ianlin 7dfd462
Fix a bug that it would never run the delete batch requests
ianlin 3f7a2cc
Get product with status `trash` for `find_delete_product_ids`
ianlin 6c84398
Make the method `get_wc_product_by_wp_post`'s return type nullable
ianlin 40f189a
Visibility should be sync and show for syncable but not synced products
ianlin 41c52e0
Delete sync status for unsyncable products when calling mark_as_unsynced
ianlin 39e3190
Add back the filter to exclude the products which aren't ready to delete
ianlin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This is now working for items that need to be deleted because they are in the trash. But for items that get deleted from Merchant Center for other reasons are not found/updated. For example I set a product to catalog visibility = hidden, which will trigger it to be deleted from the Merchant Center, but it's status remains "published".
Without any status it was previously querying the default WP statuses so it seems we should include
trash
with the default array.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 for catching this, I've updated the issue #1785 so it will be handled in the next PR. Merging this PR first.