refactor: remove unreachable catalog producer and sync orchestration (WealthLedger/backend#62) #98

Merged
codex-bot merged 1 commits from refactor/62-remove-dead-sync-orchestration into develop 2026-10-15 10:46:58 +03:00
Owner

Closes #62

Что удалено

  • TbankSyncService.request и dispatch (orchestration экрана): контроллер использует только status; зависимости membership, portfolio, metadata, discovery, sources, candles убраны из сервиса.
  • CatalogDiscoveryService.request, refresh, drain и producer-состояние (очередь, observers, completions, logger). read больше не запускает producer; параметр observe у read удалён (вызовы из search/detail/byTicker передают только observe-ветки).
  • Orphan DTO: TbankSyncAcceptedDto, HourlySyncSectionDto.
  • Producer-only тесты в tbank-catalog-discovery.e2e-spec.ts (coalescing, late publication, forced retry, recovery, refresh-stability). Оставшиеся тесты переписаны на прямой seed через prisma, без producer.
  • Неактуальные записи в eslint-suppressions.json (7 строк).

Не тронуто (по границам issue)

Status/sourceStatus, public sync=observe, shared repository.read/publishSource/readSources/work, instrument schema/FK, hourly/candle/ledger owners.

Проверки

  • npm run verify: 40 suites, 268 tests, lint, typecheck app/test, coverage, nest build - зелёные.
  • npm run test:e2e: 20/20 SQLite suites, 22 tests в сумме по выводу - зелёные.
  • npm run test:openapi-contract: 3/3.

Ограничения

  • repository.reserve/publish/finish (catalog) и TbankSyncRepository.reserve/progress остаются в репозиториях: им нет вызывающих в production, но их удаление относится к follow-up, а не к этому PR, чтобы не расширять shared-owner scope.
Closes #62 ## Что удалено - `TbankSyncService.request` и `dispatch` (orchestration экрана): контроллер использует только `status`; зависимости `membership, portfolio, metadata, discovery, sources, candles` убраны из сервиса. - `CatalogDiscoveryService.request`, `refresh`, `drain` и producer-состояние (очередь, observers, completions, `logger`). `read` больше не запускает producer; параметр `observe` у `read` удалён (вызовы из `search/detail/byTicker` передают только observe-ветки). - Orphan DTO: `TbankSyncAcceptedDto`, `HourlySyncSectionDto`. - Producer-only тесты в `tbank-catalog-discovery.e2e-spec.ts` (coalescing, late publication, forced retry, recovery, refresh-stability). Оставшиеся тесты переписаны на прямой seed через prisma, без producer. - Неактуальные записи в `eslint-suppressions.json` (7 строк). ## Не тронуто (по границам issue) Status/sourceStatus, public sync=observe, shared `repository.read/publishSource/readSources/work`, instrument schema/FK, hourly/candle/ledger owners. ## Проверки - `npm run verify`: 40 suites, 268 tests, lint, typecheck app/test, coverage, nest build - зелёные. - `npm run test:e2e`: 20/20 SQLite suites, 22 tests в сумме по выводу - зелёные. - `npm run test:openapi-contract`: 3/3. ## Ограничения - `repository.reserve/publish/finish` (catalog) и `TbankSyncRepository.reserve/progress` остаются в репозиториях: им нет вызывающих в production, но их удаление относится к follow-up, а не к этому PR, чтобы не расширять shared-owner scope.
ksv741 force-pushed refactor/62-remove-dead-sync-orchestration from 60f4ca6b80 to 344e2291b6 2026-10-15 08:12:37 +03:00 Compare
codex-bot changed title from refactor: remove unreachable catalog producer and sync screen orchestration (WealthLedger/backend#62) to refactor: remove unreachable catalog producer and sync orchestration (WealthLedger/backend#62) 2026-10-15 08:17:46 +03:00
codex-bot closed this pull request 2026-10-15 08:32:34 +03:00
codex-bot reopened this pull request 2026-10-15 08:32:39 +03:00
ksv741 added 1 commit 2026-10-15 10:32:53 +03:00
refactor: remove unreachable catalog producer and sync orchestration (WealthLedger/backend#62)
Backend verify / commits (pull_request) Successful in 31s
Backend verify / security (pull_request) Successful in 11s
Backend verify / verify (pull_request) Successful in 4m53s
9717565bc3
ksv741 force-pushed refactor/62-remove-dead-sync-orchestration from 8ff8656d7f to 9717565bc3 2026-10-15 10:32:53 +03:00 Compare
codex-bot merged commit 96d4de4195 into develop 2026-10-15 10:46:58 +03:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: WealthLedger/backend#98