From 35a448a8f38302e10e128d493a34afe3bad7f573 Mon Sep 17 00:00:00 2001 From: Sam Seay Date: Mon, 18 Jan 2021 09:49:32 +1300 Subject: [PATCH] Allow for larger result sets of attribute terms (https://github.com/woocommerce/woocommerce-admin/pull/6077) --- .../components/src/advanced-filters/attribute-filter.js | 2 +- plugins/woocommerce-admin/readme.txt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/woocommerce-admin/packages/components/src/advanced-filters/attribute-filter.js b/plugins/woocommerce-admin/packages/components/src/advanced-filters/attribute-filter.js index be4b5d8a3cc..8e829780bc4 100644 --- a/plugins/woocommerce-admin/packages/components/src/advanced-filters/attribute-filter.js +++ b/plugins/woocommerce-admin/packages/components/src/advanced-filters/attribute-filter.js @@ -112,7 +112,7 @@ const AttributeFilter = ( props ) => { } setAttributeTerms( false ); apiFetch( { - path: `/wc-analytics/products/attributes/${ selectedAttribute[ 0 ].key }/terms`, + path: `/wc-analytics/products/attributes/${ selectedAttribute[ 0 ].key }/terms?per_page=100`, } ) .then( ( terms ) => terms.map( ( { id, name } ) => ( { diff --git a/plugins/woocommerce-admin/readme.txt b/plugins/woocommerce-admin/readme.txt index daba9fb9c37..779ac82ad00 100644 --- a/plugins/woocommerce-admin/readme.txt +++ b/plugins/woocommerce-admin/readme.txt @@ -72,8 +72,11 @@ Release and roadmap notes are available on the [WooCommerce Developers Blog](htt 3. Analytics == Unreleased == + +- Fix: allow for more terms to be shown for product attributes in the Analytics orders report. #5868 - Tweak: update the content and timing of the NeedSomeInspiration note. #6076 + == Changelog == == 1.9.0 1/15/2021 ==