WordPress-Android icon indicating copy to clipboard operation
WordPress-Android copied to clipboard

Replace stats/follows with v2/stats/subscribers in People screen

Open staskus opened this issue 9 months ago • 2 comments

The current v1.1/sites/{site_id}/follows endpoint we use doesn't work for non-admins, but the new v2/sites/{site_id}/subscribers one does work. So until we update it, editors who go to Stats Subscribers in the app and tap View More won't be able to load the full Subscriber list (aka. the People view)

staskus avatar Apr 29 '24 08:04 staskus

Thanks for reporting! 👍

dangermattic avatar Apr 29 '24 08:04 dangermattic

Putting out of scope, due to findings on pdDOJh-2RW-p2:

The problem is that, due to how the data is organized in different databases, we deliver the features in different ways depending on the number of subscribers of your site. Let’s see what those differences are: We can aggregate data for small sites, and we call this endpoint to return the subscriber list: /wpcom/v2/sites/[blog-id]/subscribers. We cannot aggregate data for big sites, so we need to pass a subscriber type all the time, using this endpoint instead: /wpcom/v2/sites/[blog-id]/subscribers_by_user_type.

staskus avatar May 02 '24 06:05 staskus