Automattic / woocommerce-subscriptions-core

Subscriptions core package for WooCommerce
Other
87 stars 33 forks source link

[HPOS] subscription admin list table has missing status filters and incorrect counts #370

Closed james-allan closed 1 year ago

james-allan commented 1 year ago

Describe the bug

On HPOS environments, the some status filters are missing and don't list the correct subscription counts.

Screen Shot 2023-01-12 at 3 00 12 pm

eg Subscription specific statuses like active, pending-cancelled don't have status filters and subscriptions with an active or pending cancelled status, don't contribute to the "All" count.

To Reproduce

  1. Enable HPOS
  2. Purchase a number of subscriptions.
  3. Set the subscription statuses you have a variety of statuses (active, on-hold, pending, pending cancelled, cancelled etc).
  4. Go to WooCommerce > Subscrptions list table.
  5. Note that the "All" count is incorrect.
  6. Note that there aren't filters for all subscription statuses. eg Active.

Expected behavior

Like on CPT, all subscription statuses should be shown and the counts should be correct.

Actual behavior

Screen Shot 2023-01-12 at 3 09 40 pm