-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Remove order/product count from wcSettings #33064
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
Remove order/product count from wcSettings #33064
Conversation
|
📊 Test reports for this pull request have been published and are accessible through the following links:
Latest commit referenced in the reports: Visit the WooCommerce Test Reports homepage to view all published reports. See the FAQs page if you're having problems accessing them. |
5b1b170 to
d9cbfad
Compare
| .map( ( order ) => order.customer_id ) | ||
| .filter( ( id ) => id !== 0 ), | ||
| _fields: [ 'id', 'name', 'country', 'user_id' ], | ||
| } ); |
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.
customer data is not available through the orders API, so we retrieve them from the Analytics customers API, as we link to the customer analytics page.
I added the users param to this API so we can retrieve customers by the user id instead of customer id.
octaedro
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.
Good job @louwie17! This is testing well here and the code LGTM 🚢
I just noticed a bug related to the Stock panel (the bug wasn't added in this PR).
After updating the stock in the Stock panel, it never changes the loading state.
Thanks for the approval @octaedro, I did end up fixing the bug you found as part of this PR as it was relatively simple, but will need a re-approval. |
octaedro
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.
Thank you @louwie17 for the quick fix. LGTM 🚀
|
Hi @louwie17, thanks for merging this pull request. Please take a look at these follow-up tasks you may need to perform:
|

All Submissions:
Changes proposed in this Pull Request:
This PR depends on #32964 and #33063 being merged first (I currently merged their changes into this branch).
The only changes as part of this PR can be found in this commit: 8c2e6e8 aside from the additional changelog.
Closes #32524
How to test the changes in this Pull Request:
/wc/v3/productsand one to/wc/v3/ordersOther information:
pnpm nx changelog <project>?FOR PR REVIEWER ONLY: