Turn off the experimental flag for HPOS (#39846)

This commit is contained in:
Barry Hughes 2023-08-23 09:22:57 -07:00 committed by GitHub
commit 53c93ab449
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 13 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: update
Turn off the experimental flag for HPOS.

View File

@ -85,13 +85,6 @@ class CLIRunner {
return $this->controller->is_feature_visible();
}
/**
* Helper method to log warning that feature is not yet production ready.
*/
private function log_production_warning() {
WP_CLI::log( __( 'This feature is not production ready yet. Make sure you are not running these commands in your production environment.', 'woocommerce' ) );
}
/**
* Count how many orders have yet to be migrated into the custom orders table.
*
@ -156,7 +149,6 @@ class CLIRunner {
* @param array $assoc_args Associative arguments (options) passed to the command.
*/
public function sync( $args = array(), $assoc_args = array() ) {
$this->log_production_warning();
if ( ! $this->is_enabled() ) {
return;
}
@ -266,7 +258,6 @@ class CLIRunner {
* @param array $assoc_args Associative arguments (options) passed to the command.
*/
public function migrate( $args = array(), $assoc_args = array() ) {
$this->log_production_warning();
WP_CLI::log( __( 'Migrate command is deprecated. Please use `sync` instead.', 'woocommerce' ) );
}
@ -319,7 +310,6 @@ class CLIRunner {
*/
public function verify_cot_data( $args = array(), $assoc_args = array() ) {
global $wpdb;
$this->log_production_warning();
if ( ! $this->is_enabled() ) {
return;
}

View File

@ -116,16 +116,13 @@ class FeaturesController {
// Options for HPOS features are added in CustomOrdersTableController to keep the logic in same place.
'custom_order_tables' => array( // This exists for back-compat only, otherwise it's value is superseded by $hpos_authoritative option.
'name' => __( 'High-Performance order storage (COT)', 'woocommerce' ),
'is_experimental' => true,
'enabled_by_default' => false,
),
$hpos_authoritative => array(
'name' => __( 'High performance order storage', 'woocommerce' ),
'is_experimental' => true,
),
$hpos_enable_sync => array(
'name' => '',
'is_experimental' => true,
),
'cart_checkout_blocks' => array(
'name' => __( 'Cart & Checkout Blocks', 'woocommerce' ),