Skip to content

fix(sync): process marked boards before reporting batch failures - #2372

Open
jonathanwxh-cell wants to merge 1 commit into
cboard-org:masterfrom
jonathanwxh-cell:fix/sync-continue-marked-boards
Open

jonathanwxh-cell wants to merge 1 commit into
cboard-org:masterfrom
jonathanwxh-cell:fix/sync-continue-marked-boards

Conversation

@jonathanwxh-cell

@jonathanwxh-cell jonathanwxh-cell commented Oct 16, 2026 •

Copy link
Copy Markdown

Fixes #2199.

A failed marked-board update currently aborts the loop, leaving later boards untouched. A failed marked-board create instead logs the error and resolves. Continue through independent marked boards in both cases, then reject with one error whose failures array identifies each failed board, operation, and underlying error. Successful updates still clear their flags; failed flags and existing PENDING metadata remain intact.

Await the marked-board pass in the parent/child cascade caller and stop rewrapping exceptions in both cascade callers so failure details reach the caller instead of being dropped or rejected in the background. This does not add the global partial-success UI/state from #2196.

Tests use real Redux reducers with mocked API responses. Two regression cases fail on the original code: later updates are skipped, and create failures are silently resolved. Additional cases cover a fully successful batch and failure propagation through both cascade callers. The final focused run passes 175 tests across three action/reducer/regression suites on Node 22.23.2. Prettier, whitespace checks, and the commit hook pass.

All repository checks pass on af45f52: CircleCI build 6685 (63 suites, 439 tests, 65 snapshots), Codacy, and Snyk. No live-account synchronization or device/browser end-to-end test was performed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sync: asymmetric error handling in updateApiMarkedBoards orphans batch on markToUpdate failure

1 participant