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
Improve hpos cli verbose output #38699
Conversation
Test Results SummaryCommit SHA: f879ebb
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. |
@vedanshujain Does this look like a good list to add to this PR:
|
I'd keep the changes limited to HPOS related stuff, so only BatchProcessingController, OrdersTableDataStore and CLIRunner. Perhaps we can push rest changes in a different PR. For rest of the changes, since they are pretty old there may be parsers already configured for print_r output, so we probably format them conditionally (for example if a config constant is set). wdyt? |
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: |
1 similar comment
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.
Lovely jubbly.
- Works as described, received nice JSON-formatted output.
- Left one (optional) suggestion.
- Approving but not merging so you can review the suggestion and since another piece of work needs to be merged first.
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
I see #38690 was merged, will merge this also. |
Submission Review Guidelines:
Changes proposed in this Pull Request:
Note: This PR is a followup to #38690 which will need to be merged first.print_r
is used when logging warnings/errors during the HPOS CLI migrate command:Formatting this output as JSON will make it easier to read when there are a significant number of entries output:
How to test the changes in this Pull Request:
Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:
wp wc cot verify_cot_data --verbose --re-migrate
. In the output, you will first see the order that you have edited shown as error and out of sync. This will be followed by message:Warning: Attempting to remigrate
and then order will be re-migrated.