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 fatal strpos in ComparisonOperation 8.5 branch #44033
Fix fatal strpos in ComparisonOperation 8.5 branch #44033
Conversation
Test Results SummaryCommit SHA: dae3464
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. |
|
Hi @psealock, @chihsuan, @woocommerce/ghidorah 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.
This tests well and changes are consistent with https://github.com/woocommerce/woocommerce/pull/44007/files.
Do we need to consider the change that caused this in the first place? I'm not fully understanding what changed in order to make this fail.
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.
Looks good and tested well! 🚢
Thanks, @psealock! Yes, this will be address in follow-up PRs. Some of the details are recorded in this post (pf59Ax-D1-p2#comment-415): It seems the way that dot_notation transformer works is when a value obtained is null, the transformer returns the previous value. This resulted in the evaluator unexpectedly returning an array instead of a string, causing the error in strpos. |
Submission Review Guidelines:
Related to fix in #44007
Changes proposed in this Pull Request:
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
Comment