Skip to content

Sync markToUpdate and shouldCreateBoard in syncMeta#2210

Merged
tomivm merged 3 commits into
cboard-org:masterfrom
magush27:sync-markToUpdate-in-syncMeta
Jun 5, 2026
Merged

Sync markToUpdate and shouldCreateBoard in syncMeta#2210
tomivm merged 3 commits into
cboard-org:masterfrom
magush27:sync-markToUpdate-in-syncMeta

Conversation

@magush27

@magush27 magush27 commented Jun 1, 2026

Copy link
Copy Markdown
Collaborator

CREATE_API_BOARD_SUCCESS now stamps syncMeta as PENDING for every board that received markToUpdate: true or shouldCreateBoard: true, so the standard syncBoards() cycle can recover them even if updateApiMarkedBoards fails.

How to test:

  1. Open the app and go to any board
  2. Open Redux DevTools, go to the State tab
  3. Unlock the board and create a new folder tile (this creates a local child board with a short ID)
  4. Wait a few seconds for the sync to run
  5. In Redux DevTools, find the CREATE_API_BOARD_SUCCESS action
  6. In the state diff, check syncMeta — the parent board's entry should show { status: 'pending' }
  7. Find the UPDATE_API_BOARD_SUCCESS action that fires shortly after
  8. Check that the parent board is now { status: 'synced' } in syncMeta
  9. Check that the parent board's tile loadBoard field now contains a long MongoDB ObjectId (not the original short local ID)

Expected: the parent board goes pending → synced and its tile points to the server ID.

Closes #2198

@magush27 magush27 requested review from RodriSanchez1 and tomivm June 1, 2026 22:08
@tomivm tomivm merged commit 0d0d49e into cboard-org:master Jun 5, 2026
4 checks passed
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: markToUpdate must be reflected in syncMeta so Pass 1 retries stale tile.loadBoard references

2 participants