Skip to content

A sync that existed on paper only - #851

Merged
sridharkalaibala merged 1 commit into
developfrom
fix/a-sync-that-existed-on-paper-only
Sep 17, 2026
Merged

sridharkalaibala merged 1 commit into
developfrom
fix/a-sync-that-existed-on-paper-only

Conversation

@sridharkalaibala

Copy link
Copy Markdown
Contributor

What

api/src/sync/collections.json promised waitercalls syncs per branch. No lane was ever built: the sync agent's sync-config.json has none, the sync-gateway allows none, no Gateway branch has ever mentioned it. The packaging guard (scripts/prepare-sync-agent.js) compared the promise with the bundle and refused tonight's build, exactly as designed.

This PR records the truth: waitercalls moves from synced to undecided, with its consequence and what syncing it will take written beside it. The classification test now prints it among the 21 undecided collections instead of hiding it among the promised.

What this means for the feature

A table's call from the ordering page lands in the cloud tenant database. The till's request dock reads calls through the till's own API, so a shop running a desktop till never sees the call. That was already true; this PR does not change behaviour, it stops the build claiming otherwise.

To actually sync it (separate decision, Gateway repo + cloud deploy): a lane in the agent, the collection allowed by the sync-gateway, a check that rows carry branch_id and license, and a tombstone on close.

Tests

tests/sync-classification.test.js 5/5. node scripts/prepare-sync-agent.js: "the agent syncs every collection the app promises (22)".

The waiter-call feature marked its collection synced the day it shipped.
Nothing built the lane: the sync agent has none, the sync-gateway allows
none, and no build since has carried one. A call from a table on the
ordering page lands in the cloud and a till with its own database never
sees it.

The packaging guard compared the promise with the bundle and refused the
build, which is what it is for. This records the truth: waitercalls is
undecided, with what it will take to sync it written next to it. The
classification test now names it among the undecided instead of the
promised.
@sridharkalaibala
sridharkalaibala merged commit 29579c2 into develop Sep 17, 2026
9 checks passed
@github-actions github-actions Bot added the ready for QA Merged to develop and live on develop.posnic.io - anyone can test it label Sep 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Merged to develop. Anyone can test this - you do not need write access.

Try it at https://develop.posnic.io, or run it yourself:

git fetch origin develop && git checkout develop
npm install && npm --prefix api install
npm run dev   # then http://localhost:3000

When you have tested it, say what you did and what happened, and set
QA passed or QA failed. If you cannot set labels, just comment -
a maintainer will.

Reporting that something is broken is as useful as fixing it. It is
better found here than by a shopkeeper.

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

Labels

ready for QA Merged to develop and live on develop.posnic.io - anyone can test it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant