MicroFish/backend/app
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
..
api feat(recovery): persist active_task_id to project.json for browser-refresh reconnection 2026-04-26 14:54:44 +00:00
graph fix(graph): cap get_all_edges to 5000 edges to prevent unbounded RAM growth 2026-04-26 14:50:21 +00:00
models feat(project): add ontology/graph persistence helpers to ProjectManager 2026-05-03 01:13:26 +00:00
services fix(report): strip fabricated tool_result blocks to prevent LLM hallucination loop 2026-04-26 15:06:24 +00:00
storage fix(storage,db): path traversal fix, delete_prefix validation, remove dead import, factory uses Config 2026-05-03 00:06:58 +00:00
utils fix(llm): centralise Azure URL normalisation in parse_azure_url utility 2026-04-25 21:09:48 +00:00
__init__.py feat(app): inject SQLAlchemy DB and StorageService into Flask app factory 2026-05-03 00:08:13 +00:00
config.py feat(config): add DATABASE_URL, STORAGE_TYPE, AZURE_STORAGE_*, JWT config vars 2026-05-02 23:53:16 +00:00
db.py test(conftest): add in_memory_db and task manager singleton reset fixtures; fix broken tests 2026-05-03 00:15:42 +00:00