Uploaded image for project: 'ListenBrainz'
  1. ListenBrainz
  2. LB-1013

Inconsistent "count" value in result of /stats/sitewide/artists

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • API
    • None

      In almost all APIs (or at least the ones I implemented access to so far), the "count" field of a payload has always matched the number of items in the primary result array.

      This enables basic payload validation ("is there a count, and does it match the number of items in this array?").

      However, while the result of the sitewide artist statistics now pretty much match the result of the per-user artist statistics, the count returned is always 1000, not the actual number of results. It would be useful if this was changed to return the correct count in the "count" field. The user stats also have a "total_artist_count" field; perhaps the sitewide stats could/should also return that (and that would then always be 1000).

            kartik1712 amCap1712
            zastai Tim Van Holder
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                Version Package