-
Notifications
You must be signed in to change notification settings - Fork 137
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 issue with displaying refunded items #13261
Conversation
Generated by 🚫 Danger |
3cbac30
to
41de9c9
Compare
📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
|
📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.
|
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.
Works correctly in my test store, I tested both partial and full refund and there's no issue. The fix explanation makes sense and great that you're adding unit test, too 👏🏼
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## release/21.3 #13261 +/- ##
==================================================
+ Coverage 40.55% 40.56% +0.01%
Complexity 6367 6367
==================================================
Files 1344 1344
Lines 77229 77229
Branches 10597 10597
==================================================
+ Hits 31318 31330 +12
+ Misses 43165 43142 -23
- Partials 2746 2757 +11 ☔ View full report in Codecov by Sentry. |
Closes: #13258
Description
This PR fixes the linked issue, the cause of the bug was that with the custom fields, we had to refactor how
WCMetaData
values are represented, and with it, the behavior ofvalue.toString()
changed, leading to an issue with retrieving the item's ID.This PR updates all of the usages that were missed during the refactoring to start using
stringValue
instead.Steps to reproduce
Testing information
Confirm the refunded items are shown.
The tests that have been performed
^
Images/gif
RELEASE-NOTES.txt
if necessary. Use the "[Internal]" label for non-user-facing changes.Reviewer (or Author, in the case of optional code reviews):
Please make sure these conditions are met before approving the PR, or request changes if the PR needs improvement: