API count of tags should match the WebUI and the API
API count of tags doesn't match the WebUI, or the behavior of count variable on other API endpoints.
Confirmed this is still present.
This looks to be to do with some performance optimizations made in the Pagination class.
If my understanding is correct the count in /api/extras/tags should show the number of distinct tags like in /extras/tags.
I can take this, except if @pm17788 you want to work on this fix.
@KhaledTo : Sadly, my Python-Fu is still weak. Still learning, so I'm not ready to go committing code yet.
Looks like I fixed a slightly different problem under #3116.
FYI this has already been fixed under develop-2.6. The root issue stems from the use of distinct=True when annotating the TaggedItem count on the queryset. In v2.6, we've started using subqueries instead.
Not sure it makes sense to backport this utility function to the v2.5 train but we should be able to do a one-off implementation.
@jeremystretch : If it is not too tricky to make into 2.5 branch, it'd be awesome. There is some code I'd like to roll out internally, and can't, because of this silly thing :(
Closing this out as v2.6 is being released today.