Prod upgrade fixes: profiler compatibility with new FastAPI, pinned dependencies

- profiler: Literal instead of Query(enum=...) (broke on FastAPI 0.162)
- pin fastapi/starlette/uvicorn/pydantic for the profiler, upper bounds for APP_CORE
- health check: show the service log when an HTTP check fails
- update.sh: the "before" version comes from deploy.state
- migrate.py: hint about OVPMON_*_DB_PATH when the default database is missing
- docs: --source --no-pull mode, dependency pinning, PIP_CONSTRAINT
- tests: new test for the section parameter, fixed test_server_process.py

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ayurishchevandClaude Sonnet 5.5 committed 2026-11-13 00:03:39 +03:00
1 parent 1bbf9b7cc1
commit 79c950f8f7
14 files changed
+156 -38

No files matched your search

+1
View File
@@ -30,3 +30,4 @@ Every change has a plan (`*_PLAN.md`) before it and a summary of what was done a
| 2026-10-07 | Backup: бейджи Type, Status и Last result в таблице Destinations выровнены по верхнему краю строки (`align-top`), дата остаётся под бейджем | [plan](2026-10-07_Backup_Badges_Align_PLAN.md) · [change](2026-10-07_Backup_Badges_Align.md) |
| 2026-10-07 | Скорость (Mbps) на графиках за период больше суток: средняя скорость корзины из байтов агрегатных таблиц вместо нулей (история клиента и Analytics), подписи «RX/TX Mbps (avg)» | [plan](2026-10-07_Aggregated_Speed_PLAN.md) · [change](2026-10-07_Aggregated_Speed.md) |
| 2026-11-12 | Clients: несколько сессий одного пользователя видны в UI: бейдж «×N», «N devices» вместо адреса, раскрывающийся список сессий, KPI Active Sessions; `/api/v1/stats` отдаёт `sessions_count` и `sessions` | [plan](2026-11-12_Multi_Session_UI_PLAN.md) · [change](2026-11-12_Multi_Session_UI.md) |
| 2026-11-12 | Доработки по итогам обновления ПРОД: `Literal` вместо `Query(enum=)` в профайлере (совместимость с новым FastAPI), фиксация зависимостей, лог сервиса при отказе health-check, версия «до» из `deploy.state`, подсказка в `migrate.py`, документация `--source --no-pull` | [plan](2026-11-12_Prod_Upgrade_Fixes_PLAN.md) · [change](2026-11-12_Prod_Upgrade_Fixes.md) |