Use bulk get methods for single recording endpoints

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Type: Task
    • Resolution: Fixed
    • Priority: Normal
    • None
    • Affects Version/s: None
    • Component/s: Server
    • None

      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

            Assignee:
            Alastair Porter
            Reporter:
            Aidan Lawford-Wickham
            Archiver:
            julian45

              Created:
              Updated:
              Resolved:
              Archived:

                Version Package