b32fea671f
The container-user resolver introduced in 9f72093 accessed
'tool_type.manifest', which triggers a SQLAlchemy lazy load inside the
async WebSocket coroutine and raises MissingGreenlet. Fetch the manifest
explicitly with db_session.get() instead, matching the pattern used in
instance_service.py.
- Replace relationship access with explicit async loads in
_resolve_container_user().
- Add unit tests covering manifest, base-definition, legacy, and missing
manifest cases.
- Update project map artifacts.
Quality gates: pytest tests/api tests/services/test_terminal_manager_multi.py tests/unit (247 passed), ruff check (clean).
55 lines
1.5 KiB
Markdown
55 lines
1.5 KiB
Markdown
# apps/api (index)
|
|
dir: apps/api
|
|
|
|
## role
|
|
Backend API server for the Headquarter platform, providing self-hosted project management, git repository orchestration, and development tool integration.
|
|
## parent
|
|
index: apps/.pi-map.index.md
|
|
map: apps/.pi-map.md
|
|
## children
|
|
- apps/api/.mypy_cache
|
|
index: apps/api/.mypy_cache/.pi-map.index.md
|
|
map: apps/api/.mypy_cache/.pi-map.md
|
|
- apps/api/.pi-lens
|
|
index: apps/api/.pi-lens/.pi-map.index.md
|
|
map: apps/api/.pi-lens/.pi-map.md
|
|
- apps/api/.pytest_cache
|
|
index: apps/api/.pytest_cache/.pi-map.index.md
|
|
map: apps/api/.pytest_cache/.pi-map.md
|
|
- apps/api/.ruff_cache
|
|
index: apps/api/.ruff_cache/.pi-map.index.md
|
|
map: apps/api/.ruff_cache/.pi-map.md
|
|
- apps/api/alembic
|
|
index: apps/api/alembic/.pi-map.index.md
|
|
map: apps/api/alembic/.pi-map.md
|
|
- apps/api/app
|
|
index: apps/api/app/.pi-map.index.md
|
|
map: apps/api/app/.pi-map.md
|
|
- apps/api/headquarter_api.egg-info
|
|
index: apps/api/headquarter_api.egg-info/.pi-map.index.md
|
|
map: apps/api/headquarter_api.egg-info/.pi-map.md
|
|
- apps/api/src
|
|
index: apps/api/src/.pi-map.index.md
|
|
map: apps/api/src/.pi-map.md
|
|
- apps/api/tests
|
|
index: apps/api/tests/.pi-map.index.md
|
|
map: apps/api/tests/.pi-map.md
|
|
- apps/api/uploads
|
|
index: apps/api/uploads/.pi-map.index.md
|
|
map: apps/api/uploads/.pi-map.md
|
|
## files
|
|
- .dockerignore
|
|
- Dockerfile
|
|
- README.md
|
|
- alembic.ini
|
|
- pyproject.toml
|
|
- uv.lock
|
|
- wait-for-db.sh
|
|
## links
|
|
index: apps/api/.pi-map.index.md
|
|
map: apps/api/.pi-map.md
|
|
## workflows
|
|
-
|
|
## dirty
|
|
-
|