Skip to content

Resolve "Declarative base class should subclass DeclarativeBase"

Description

This MR replaces the use of declarative_base() with a Base class that inherits from DeclarativeBase. This change introduced a handful of type annotation errors and assorted issues (e.g. access of non-existing attributes, incorrect use of poorly named functions) that have been fixed.

Notes to review (code/docs/QA)

  • The changes to src/cli/commands/filterconfigs/filterconfigs.py could perhaps also be made simpler by explicitly defining relationships in the data models, rather than only relying on foreign key constraints of the various ids?
  • Is it correct that the SQL query in src/api/v1/resources/workflow/analysis.py is supposed to be a chain of joins?

Related issues

#2242 (closed)

Closes #2247 (closed)

Edited by Vetle Simensen

Merge request reports