Closed chovanecm closed 6 years ago
Similarly to having a MetricsDAO class, create a RunDAO class and its implementation for all of the backends that exist now.
MetricsDAO
RunDAO
Public methods:
get_run(run_id)
get_runs(self, sort_by=None, sort_direction=None, start=0, limit=None, query={"type": "and", "filters": []})
delete_run(self, run_id,)
get_runs_dao(self)
The MongoDB implementation currently implements parsing queries. For now, it moves to the MetricsDAO implementation for MongoDB, but it should later be generalised.
Similarly to having a
MetricsDAO
class, create aRunDAO
class and its implementation for all of the backends that exist now.Public methods:
get_run(run_id)
-get_runs(self, sort_by=None, sort_direction=None, start=0, limit=None, query={"type": "and", "filters": []})
delete_run(self, run_id,)
get_runs_dao(self)
methodThe MongoDB implementation currently implements parsing queries. For now, it moves to the MetricsDAO implementation for MongoDB, but it should later be generalised.