Files
vesti/openspec/changes/fix-paused-sources-visible/tasks.md
T

19 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Tasks: fix-paused-sources-visible
## Диагностика (выполнена при заведении бага 2026-10-25)
- [x] Проверить `sources.yaml` и БД: у `slug: bleepingcomputer` стоит `name: omarchy` (id 2815, `enabled: 1`, 314 новых поста)
- [x] Проверить реальный omarchy: `id 2965`, `enabled: 0`, 15 новых постов; simon-willison `enabled: 0`, 200 новых
- [x] Найти логическую причину: ветка `else` в `_fetch_candidates` не добавляет `s.enabled=1` при явном `status`
## Реализация
- [ ] `sources/sources.yaml`: `name: omarchy` → `name: BleepingComputer` в блоке `slug: bleepingcomputer`
- [ ] Синк источников в БД, проверка `sources(id=2815).name`
- [ ] `web/app.py` `_fetch_candidates`: `s.enabled=1` для любого `status='new'`, включая явно заданный
- [ ] SQL-проверка: `new AND enabled=1` ≈ 2956; скрыто 215 (omarchy 15 + simon-willison 200); resolved-статусы видны
- [ ] UI-проверка: `/candidates` и `/candidates?status=new` — одинаковый набор, в списке нет «omarchy»
- [ ] Рестарт vesti-web, сервис active
- [ ] `openspec validate fix-paused-sources-visible`
- [ ] STATUS.md / TODO.md / WALKTHROUGH.md, коммит + пуш