-
Notifications
You must be signed in to change notification settings - Fork 10.7k
[HPOS] Add order data store info to SSR #35487
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
Conversation
Test Results SummaryCommit SHA: 121ff33
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. |
plugins/woocommerce/includes/admin/views/html-admin-page-status-report.php
Outdated
Show resolved
Hide resolved
…s-report.php Co-authored-by: Barry Hughes <[email protected]>
|
Hi @barryhughes! Thanks for the suggestion. That was what I intended to do but maybe I got confused with all of our features/controller I've committed your suggestion and this is now ready for another look. Thanks! |
| <td class="help"><?php echo wc_help_tip( esc_html__( 'Datastore currently in use for orders.', 'woocommerce' ) ); ?></td> | ||
| <td><?php echo esc_html( WC_Data_Store::load( 'order' )->get_current_class_name() ); ?></td> | ||
| </tr> | ||
| <?php if ( wc_get_container()->get( Automattic\WooCommerce\Internal\Features\FeaturesController::class )->feature_is_enabled( 'custom_order_tables' ) ) : ?> |
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.
Now I'm also wondering, would it be useful to indicate if transactions are in effect (and show either the isolation level, like REPEATABLE READ or else simply No)? However, that wasn't noted in the original issue and can easily be added later if we think it should be added—no need to hold up this PR.
barryhughes
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.
Great!
|
Hi @barryhughes, thanks for merging this pull request. Please take a look at these follow-up tasks you may need to perform:
|
|
Just a note here that we need to add the items to the REST API code and only read it in the template to ensure consistency. |
All Submissions:
Changes proposed in this Pull Request:
This PR adds a couple of new rows to the "Settings" section of the Status Report, with info about the order datastore in use and whether data sync is enabled or not (when HPOS is enabled).
Note: I've added the new rows under "Settings" but maybe we'll eventually need a different section for this sort of information (such as current implementations of product or other data stores). Not sure if that's worth doing now.
Closes #34864.
How to test the changes in this Pull Request:
Other information:
pnpm --filter=<project> changelog add?FOR PR REVIEWER ONLY: