woocommerce / woocommerce-admin

(Deprecated) This plugin has been merged to woocommerce/woocommerce
https://woocommerce.github.io/woocommerce-admin/#/
Other
361 stars 144 forks source link

Coupon Search Not Filtering the Coupon List and Summary Data #7258

Closed kcfgl closed 2 years ago

kcfgl commented 3 years ago

Describe the bug On the Coupons Report (Analytics>Coupons), when you attempt to filter the coupon list using the search box (next to the Compare button), the auto-suggest drop down displays with a link, tapping the link will add the search text as a filter, but it will not return results. Even if the search text matches the coupon exactly

To Reproduce

  1. Go to Analytics>Coupons
  2. Ensure there are coupons returned in the results
  3. Enter the exact name of a coupon in the search/filter input field
  4. Tap on the link the "All coupon codes that contain..."
  5. 0 Results will show up

Expected behavior If there are coupons that match the search, only those should show up in the list and the summary data should be updated to reflect only orders that leveraged the searched/selected coupon code.

Screenshots

Screen Shot 2021-06-26 at 9 09 33 AM

Desktop (please complete the following information):

ilyasfoo commented 3 years ago

Hi, @kcfgl!

Thank you for taking the time to report this bug, we really appreciate your help. I was able to reproduce this, it seems that the API does return the data but it was not rendered in the search result. This also seems to be intermittent, as the next search actually renders the data. I think that's important to the context.

image

kcfgl commented 3 years ago

Thanks for confirming the bug @ilyasfoo! It is interesting that the second search works for you. I haven't been able to recreate that, but I'll try a few more times and see if I can.

chihsuan commented 2 years ago

@ilyasfoo I'm going to close this since this bug is over 6 months old. Free free to reopen it whenever you have the bandwidth to work on it!

ilyasfoo commented 2 years ago

Hey, @chihsuan. Thanks for bringing this to my attention. I tried to reproduce this again with WCA 3.2 beta 2, and I wasn't able to. I think this may have been fixed by one of your analytics PR in the past 😄