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
Do not send user meta data back in woocommerce_get_customer_details
#40221
Conversation
Hi @barryhughes, Apart from reviewing the code changes, please make sure to review the testing instructions as well. You can follow this guide to find out what good testing instructions should look like: |
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.
A1 👍🏼
Left a suggestion re changelog; pre-emptively approving.
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
Test Results SummaryCommit SHA: 7d079ff
To view the full API test report, click here. To view the full E2E test report, click here. To view all test reports, visit the WooCommerce Test Reports Dashboard. |
Currently fighting our changelog automation 😄, will fix then merge once tests pass. |
53c37af
to
7d079ff
Compare
…#40221) * Do not send user meta data back in `woocommerce_get_customer_details` * Add changefile(s) from automation for the following project(s): woocommerce * Update plugins/woocommerce/changelog/fix-meta-data-customer-details Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com> --------- Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
* Do not send user meta data back in `woocommerce_get_customer_details` (#40221) * Do not send user meta data back in `woocommerce_get_customer_details` * Add changefile(s) from automation for the following project(s): woocommerce * Update plugins/woocommerce/changelog/fix-meta-data-customer-details Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com> --------- Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com> * Prep for cherry pick 40221 --------- Co-authored-by: jonathansadowski <jonathansadowski@users.noreply.github.com> Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com> Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
…#40221) * Do not send user meta data back in `woocommerce_get_customer_details` * Add changefile(s) from automation for the following project(s): woocommerce * Update plugins/woocommerce/changelog/fix-meta-data-customer-details Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com> --------- Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
* Do not send user meta data back in `woocommerce_get_customer_details` (#40221) * Do not send user meta data back in `woocommerce_get_customer_details` * Add changefile(s) from automation for the following project(s): woocommerce * Update plugins/woocommerce/changelog/fix-meta-data-customer-details Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com> --------- Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com> * Prep for cherry pick 40221 --------- Co-authored-by: jonathansadowski <jonathansadowski@users.noreply.github.com> Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com> Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
…#40221) * Do not send user meta data back in `woocommerce_get_customer_details` * Add changefile(s) from automation for the following project(s): woocommerce * Update plugins/woocommerce/changelog/fix-meta-data-customer-details Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com> --------- Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
* Do not send user meta data back in `woocommerce_get_customer_details` (#40221) * Do not send user meta data back in `woocommerce_get_customer_details` * Add changefile(s) from automation for the following project(s): woocommerce * Update plugins/woocommerce/changelog/fix-meta-data-customer-details Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com> --------- Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com> * Prep for cherry pick 40221 --------- Co-authored-by: jonathansadowski <jonathansadowski@users.noreply.github.com> Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com> Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
hello, i believe this has caused an error within a mobile application, I'm getting meta data error in console , can't parse meta_data , in the mobile app, it use json response to get the latest order data , parse it then display it within custom app with sound notification, with this latest modification "Do not send user meta data back in woocommerce_get_customer_details", it destroyed everything, how can i fix this issue? @jonathansadowski |
I'm new here, not sure if this is ok or not but this is the script , - `using Newtonsoft.Json;
} [System.Serializable] } [System.Serializable] [System.Serializable] } [System.Serializable] [System.Serializable] |
Hi @tsc1390, We're sorry for any disruption this might have caused. However:
If you still think there is a bug within WooCommerce, please do raise a new bug report and we will be happy to look into it. If you could distill it down to a set of easily reproducible steps, that would be ideal. Thanks! |
Submission Review Guidelines:
Changes proposed in this Pull Request:
The ajax handler for
woocommerce_get_customer_details
is primarily used (within WC core) for grabbing a customer's stored addresses. However, up until now, the response has also included all of the user's meta data, which we identified as being unnecessary and risky.Closes # .
How to test the changes in this Pull Request:
Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:
Changelog entry
Significance
Type
Message
Do not send user meta data back in
woocommerce_get_customer_details
.Comment