Uploaded image for project: 'AcousticBrainz'
  1. AcousticBrainz
  2. AB-409

Use bulk get methods for single recording endpoints

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Review Submitted
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Server
    • Labels:
      None

      Description

      Right now, we use unique methods to return the low/high level data for a single recording that is requested in the get_low_level and get_high_level endpoints:

      https://github.com/metabrainz/acousticbrainz-server/blob/master/webserver/views/api/v1/core.py#L33

      Since the single recording endpoints are really just special cases of the bulk get, we should be able to use those queries and remove the existing methods load_low_level and load_high_levelĀ https://github.com/metabrainz/acousticbrainz-server/blob/master/db/data.py#L359

        Attachments

          Activity

            People

            Assignee:
            alastairp Alastair Porter
            Reporter:
            aidanlw17 Aidan Lawford-Wickham
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package