fix(sync): start hourly operations after portfolio works finish (#201) #202

Merged
codex-bot merged 1 commits from fix/201-hourly-operations-after-portfolio into develop 2026-11-11 09:29:09 +03:00
Owner

Summary

The hourly pass started operations sync without waiting for the portfolio works to finish. For large accounts, operations coverage therefore ended before the snapshot fetchedAt, and performance returned OPERATIONS_HISTORY_INCOMPLETE even though the history was fully loaded.

Linked Issue

#201 (related: WealthLedger/main#54, WealthLedger/main#55)

Changes

  • refreshAccounts waits for the portfolio works (via the existing waitWorks with its bound) before dispatching operations.
  • e2e: operations do not start while any portfolio work is running. Without the fix the test fails.

Verification

  • npm run verify: pass (364 tests)
  • npm run test:e2e: pass, including tbank-hourly-lifecycle 29/29
## Summary The hourly pass started operations sync without waiting for the portfolio works to finish. For large accounts, operations coverage therefore ended before the snapshot `fetchedAt`, and performance returned `OPERATIONS_HISTORY_INCOMPLETE` even though the history was fully loaded. ## Linked Issue #201 (related: WealthLedger/main#54, WealthLedger/main#55) ## Changes - `refreshAccounts` waits for the portfolio works (via the existing `waitWorks` with its bound) before dispatching operations. - e2e: operations do not start while any portfolio work is `running`. Without the fix the test fails. ## Verification - `npm run verify`: pass (364 tests) - `npm run test:e2e`: pass, including `tbank-hourly-lifecycle` 29/29
codex-bot added 1 commit 2026-11-11 09:15:22 +03:00
fix(sync): start hourly operations after portfolio works finish (#201)
Backend verify / commits (pull_request) Successful in 1m42s
Backend verify / security (pull_request) Successful in 1m17s
Backend verify / verify (pull_request) Successful in 6m36s
586e9fdd39
codex-bot scheduled this pull request to auto merge when all checks succeed 2026-11-11 09:17:46 +03:00
codex-bot merged commit 85d65f8997 into develop 2026-11-11 09:29:09 +03:00
codex-bot deleted branch fix/201-hourly-operations-after-portfolio 2026-11-11 09:29:09 +03:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: WealthLedger/backend#202