aiondemand / AIOD-rest-api

Services for the core of AIoD: Authentication and the metadata catalogue with REST API.
https://api.aiod.eu
MIT License
10 stars 7 forks source link

Bugfix/openml connector offset #270

Closed jsmatias closed 6 months ago

jsmatias commented 6 months ago

Bugfixes:

  1. Issue #266 - OpenML returns a response with status code 412, when a list is not found.

    • Solved by returning a RecordError with a HttpError to the main loop. When this happens, the loop is interrupted without adding an unit to the counter, which is added to the state[offset].
    • Tests added to check the state after a response with status_code=412
  2. The _distributions() function was returning an empty list when all the three fields: dependencies, installation_notes, and binary_url had not None values, instead of the opposite.