docs: record VK Callback API architecture
This commit is contained in:
1 parent
a04498d634
commit
ed9203ea77
5 files changed
+27
-15
No files matched your search
@@ -97,6 +97,10 @@ Inspection results persist the base score for the number of inspections and each
|
||||
|
||||
`app/belki/domain.py` keeps an explicit `EDIBLE_CATCHES` set for one-point inspection catches. `Ящерица` and `Летучая мышь` are included and covered by `tests/test_belki.py`; the Krylan memo lists them in the edible catch table.
|
||||
|
||||
# 2026-10-10: VK Callback API migration
|
||||
|
||||
`app/belki/vk_bot.py` no longer runs VK Long Poll. It starts a threaded Callback API listener on `VK_CALLBACK_HOST:VK_CALLBACK_PORT` (defaults `0.0.0.0:8081`) and requires `VK_CALLBACK_SECRET` plus `VK_CALLBACK_CONFIRMATION`. `app/belki/vk_callback.py` validates secret/group, returns confirmation or `ok`, normalizes `message_event`, and retries failed handlers by releasing the event claim. `VkConversationStore` persists seven-day callback event claims in `vk_callback_events`. Production routing uses the existing public host path `/api/vk/callback`, an exact nginx route to the `belki-bot` ClusterIP Service, and callback health probes. Live VK server registration and confirmation remain deployment-stage actions.
|
||||
|
||||
# 2026-10-07: entered report state
|
||||
|
||||
`app/belki/history.py` persists an administrative `entered` boolean with an idempotent SQLite/PostgreSQL schema migration. `/api/admin/calculations/{id}/entered` is session-protected and updates one report. `web/admin.html` defaults report history to the calendar current month, prepends an accessible checkbox/checkmark column, and dims rows after entry; sorting remains unchanged.
|
||||
Reference in new issue
Block a user