From 06e6397dd17352cacedbfb71bdf808c940efffcb Mon Sep 17 00:00:00 2001 From: Tam Mullen Date: Sat, 24 Dec 2022 01:53:23 +0000 Subject: [PATCH] Tidy up formatting of perf scenarios --- .../tests/gh-action-daily-ext-requests.js | 111 ++++++++--------- .../tests/gh-action-pr-requests.js | 7 +- .../performance/tests/simple-all-requests.js | 113 +++++++++--------- .../performance/tests/wc-baseline-load.js | 113 +++++++++--------- 4 files changed, 174 insertions(+), 170 deletions(-) diff --git a/plugins/woocommerce/tests/performance/tests/gh-action-daily-ext-requests.js b/plugins/woocommerce/tests/performance/tests/gh-action-daily-ext-requests.js index 01e670e7bb8..7ecec81086e 100644 --- a/plugins/woocommerce/tests/performance/tests/gh-action-daily-ext-requests.js +++ b/plugins/woocommerce/tests/performance/tests/gh-action-daily-ext-requests.js @@ -83,165 +83,166 @@ export const options = { }, }, thresholds: { - checks: ['rate==1'], + checks: [ 'rate==1' ], + // Listing individual metrics due to https://github.com/grafana/k6/issues/1321 'http_req_duration{name:Shopper - Site Root}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - Shop Page}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - Search Products}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - Category Page}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - Product Page}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - wc-ajax=add_to_cart}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - View Cart}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - Remove Item From Cart}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - wc-ajax=apply_coupon}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - Update Cart}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - View Checkout}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - wc-ajax=update_order_review}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - wc-ajax=checkout}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - Order Received}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - wc-ajax=get_refreshed_fragments}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - Login to Checkout}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - My Account Login Page}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - Login to My Account}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - My Account}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - My Account Orders}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - My Account Open Order}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Merchant - WP Login Page}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Login to WP Admin}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - WC-Admin}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - wc-analytics/orders?}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - wc-analytics/products/reviews?}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - wc-analytics/products/low-in-stock?}': - [`${merchant_request_threshold}`], + [ `${ merchant_request_threshold }` ], 'http_req_duration{name:Merchant - All Orders}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Completed Orders}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - New Order Page}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Create New Order}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Open Order}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Update Existing Order Status}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Search Orders By Product}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Search Orders By Customer Email}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Search Orders By Customer Address}': - [`${merchant_request_threshold}`], + [ `${ merchant_request_threshold }` ], 'http_req_duration{name:Merchant - Filter Orders By Month}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Filter Orders By Customer}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - All Products}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Add New Product}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - action=sample-permalink}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - action=heartbeat autosave}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Update New Product}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Coupons}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - wc-admin/onboarding/tasks?}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - wc-analytics/admin/notes?}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - wc-admin/options?options=woocommerce_ces_tracks_queue}': - [`${merchant_request_threshold}`], + [ `${ merchant_request_threshold }` ], 'http_req_duration{name:Merchant - action=heartbeat}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:API - Create Order}': [ - `${api_request_threshold}`, + `${ api_request_threshold }`, ], 'http_req_duration{name:API - Retrieve Order}': [ - `${api_request_threshold}`, + `${ api_request_threshold }`, ], 'http_req_duration{name:API - Update Order (Status)}': [ - `${api_request_threshold}`, + `${ api_request_threshold }`, ], 'http_req_duration{name:API - Delete Order}': [ - `${api_request_threshold}`, + `${ api_request_threshold }`, ], 'http_req_duration{name:API - Batch Create Orders}': [ - `${api_request_threshold}`, + `${ api_request_threshold }`, ], 'http_req_duration{name:API - Batch Update (Status) Orders}': [ - `${api_request_threshold}`, + `${ api_request_threshold }`, ], }, }; diff --git a/plugins/woocommerce/tests/performance/tests/gh-action-pr-requests.js b/plugins/woocommerce/tests/performance/tests/gh-action-pr-requests.js index ac98b0330f6..afd8f10b4a1 100644 --- a/plugins/woocommerce/tests/performance/tests/gh-action-pr-requests.js +++ b/plugins/woocommerce/tests/performance/tests/gh-action-pr-requests.js @@ -85,6 +85,7 @@ export const options = { }, thresholds: { checks: [ 'rate==1' ], + // Listing individual metrics due to https://github.com/grafana/k6/issues/1321 'http_req_duration{name:Shopper - Site Root}': [ `${ shopper_request_threshold }`, ], @@ -140,13 +141,13 @@ export const options = { `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - My Account}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - My Account Orders}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - My Account Open Order}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Merchant - WP Login Page}': [ `${ merchant_request_threshold }`, diff --git a/plugins/woocommerce/tests/performance/tests/simple-all-requests.js b/plugins/woocommerce/tests/performance/tests/simple-all-requests.js index 6eb654c15a0..52c79b9dc52 100644 --- a/plugins/woocommerce/tests/performance/tests/simple-all-requests.js +++ b/plugins/woocommerce/tests/performance/tests/simple-all-requests.js @@ -87,165 +87,166 @@ export const options = { }, }, thresholds: { - checks: ['rate==1'], + checks: [ 'rate==1' ], + // Listing individual metrics due to https://github.com/grafana/k6/issues/1321 'http_req_duration{name:Shopper - Site Root}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - Shop Page}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - Search Products}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - Category Page}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - Product Page}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - wc-ajax=add_to_cart}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - View Cart}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - Remove Item From Cart}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - wc-ajax=apply_coupon}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - Update Cart}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - View Checkout}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - wc-ajax=update_order_review}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - wc-ajax=checkout}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - Order Received}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - wc-ajax=get_refreshed_fragments}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - Login to Checkout}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - My Account Login Page}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - Login to My Account}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - My Account}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - My Account Orders}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - My Account Open Order}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Merchant - WP Login Page}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Login to WP Admin}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - WC-Admin}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - wc-analytics/orders?}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - wc-analytics/products/reviews?}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - wc-analytics/products/low-in-stock?}': - [`${merchant_request_threshold}`], + [ `${ merchant_request_threshold }` ], 'http_req_duration{name:Merchant - All Orders}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Completed Orders}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - New Order Page}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Create New Order}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Open Order}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Update Existing Order Status}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Search Orders By Product}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Search Orders By Customer Email}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Search Orders By Customer Address}': - [`${merchant_request_threshold}`], + [ `${ merchant_request_threshold }` ], 'http_req_duration{name:Merchant - Filter Orders By Month}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Filter Orders By Customer}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - All Products}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Add New Product}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - action=sample-permalink}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - action=heartbeat autosave}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Update New Product}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Coupons}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - wc-admin/onboarding/tasks?}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - wc-analytics/admin/notes?}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - wc-admin/options?options=woocommerce_ces_tracks_queue}': - [`${merchant_request_threshold}`], + [ `${ merchant_request_threshold }` ], 'http_req_duration{name:Merchant - action=heartbeat}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:API - Create Order}': [ - `${api_request_threshold}`, + `${ api_request_threshold }`, ], 'http_req_duration{name:API - Retrieve Order}': [ - `${api_request_threshold}`, + `${ api_request_threshold }`, ], 'http_req_duration{name:API - Update Order (Status)}': [ - `${api_request_threshold}`, + `${ api_request_threshold }`, ], 'http_req_duration{name:API - Delete Order}': [ - `${api_request_threshold}`, + `${ api_request_threshold }`, ], 'http_req_duration{name:API - Batch Create Orders}': [ - `${api_request_threshold}`, + `${ api_request_threshold }`, ], 'http_req_duration{name:API - Batch Update (Status) Orders}': [ - `${api_request_threshold}`, + `${ api_request_threshold }`, ], }, }; @@ -275,7 +276,7 @@ export function cartFlow() { } export function allMerchantFlow() { - if (admin_acc_login === true) { + if ( admin_acc_login === true ) { myAccountMerchantLogin(); } else { wpLogin(); diff --git a/plugins/woocommerce/tests/performance/tests/wc-baseline-load.js b/plugins/woocommerce/tests/performance/tests/wc-baseline-load.js index d2ae164f612..936ecacfb24 100644 --- a/plugins/woocommerce/tests/performance/tests/wc-baseline-load.js +++ b/plugins/woocommerce/tests/performance/tests/wc-baseline-load.js @@ -118,171 +118,172 @@ export const options = { }, }, thresholds: { + // Listing individual metrics due to https://github.com/grafana/k6/issues/1321 'http_req_duration{name:Shopper - Site Root}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - Shop Page}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - Search Products}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - Category Page}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - Product Page}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - wc-ajax=add_to_cart}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - View Cart}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - Remove Item From Cart}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - wc-ajax=apply_coupon}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - Update Cart}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - View Checkout}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - wc-ajax=update_order_review}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - wc-ajax=checkout}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - Order Received}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - wc-ajax=get_refreshed_fragments}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - Login to Checkout}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - My Account Login Page}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - Login to My Account}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - My Account}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - My Account Orders}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Shopper - My Account Open Order}': [ - `${shopper_request_threshold}`, + `${ shopper_request_threshold }`, ], 'http_req_duration{name:Merchant - WP Login Page}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Login to WP Admin}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - WC-Admin}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - wc-analytics/orders?}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - wc-analytics/products/reviews?}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - wc-analytics/products/low-in-stock?}': - [`${merchant_request_threshold}`], + [ `${ merchant_request_threshold }` ], 'http_req_duration{name:Merchant - All Orders}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Completed Orders}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - New Order Page}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Create New Order}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Open Order}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Update Existing Order Status}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Search Orders By Product}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Search Orders By Customer Email}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Search Orders By Customer Address}': - [`${merchant_request_threshold}`], + [ `${ merchant_request_threshold }` ], 'http_req_duration{name:Merchant - Filter Orders By Month}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Filter Orders By Customer}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - All Products}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Add New Product}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - action=sample-permalink}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - action=heartbeat autosave}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Update New Product}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - Coupons}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - wc-admin/onboarding/tasks?}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - wc-analytics/admin/notes?}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:Merchant - wc-admin/options?options=woocommerce_ces_tracks_queue}': - [`${merchant_request_threshold}`], + [ `${ merchant_request_threshold }` ], 'http_req_duration{name:Merchant - action=heartbeat}': [ - `${merchant_request_threshold}`, + `${ merchant_request_threshold }`, ], 'http_req_duration{name:API - Create Order}': [ - `${api_request_threshold}`, + `${ api_request_threshold }`, ], 'http_req_duration{name:API - Retrieve Order}': [ - `${api_request_threshold}`, + `${ api_request_threshold }`, ], 'http_req_duration{name:API - Update Order (Status)}': [ - `${api_request_threshold}`, + `${ api_request_threshold }`, ], 'http_req_duration{name:API - Delete Order}': [ - `${api_request_threshold}`, + `${ api_request_threshold }`, ], 'http_req_duration{name:API - Batch Create Orders}': [ - `${api_request_threshold}`, + `${ api_request_threshold }`, ], 'http_req_duration{name:API - Batch Update (Status) Orders}': [ - `${api_request_threshold}`, + `${ api_request_threshold }`, ], }, }; // Use myAccountMerchantLogin() instead of wpLogin() if having issues with login. export function merchantOrderFlows() { - if (admin_acc_login === true) { + if ( admin_acc_login === true ) { myAccountMerchantLogin(); } else { wpLogin(); @@ -295,7 +296,7 @@ export function merchantOrderFlows() { // Use myAccountMerchantLogin() instead of wpLogin() if having issues with login. export function merchantOtherFlows() { - if (admin_acc_login === true) { + if ( admin_acc_login === true ) { myAccountMerchantLogin(); } else { wpLogin();