MicroFish/backend/app/models
Ubuntu 949921344b feat(project): add ontology/graph persistence helpers to ProjectManager
- Add `from ..config import Config` import
- Convert `_to_dict` from @staticmethod to @classmethod; it now opens a
  fresh session to populate `ontology` and `graph_id` from OntologyModel
  and GraphModel respectively
- Use `db.expunge(proj)` before closing sessions in create_project,
  get_project and list_projects so `_to_dict` can open its own session
  without nesting conflicts (SQLite StaticPool safe)
- Add five new classmethods: save_ontology, get_ontology,
  save_graph_record, get_latest_graph_external_id, complete_graph_record

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-03 01:13:26 +00:00
..
__init__.py feat(project): refactor ProjectManager to persist via SQLAlchemy + StorageService 2026-05-03 00:11:12 +00:00
db_models.py fix(storage,db): path traversal fix, delete_prefix validation, remove dead import, factory uses Config 2026-05-03 00:06:58 +00:00
project.py feat(project): add ontology/graph persistence helpers to ProjectManager 2026-05-03 01:13:26 +00:00
task.py fix(task): rename loop var t→task_row to avoid shadowing locale.t import 2026-05-03 00:13:12 +00:00