Commit Graph

22709 Commits

Author SHA1 Message Date
Tienson Qin
ee1089f671 Add sync offline tests 2026-01-13 20:58:04 +08:00
Tienson Qin
2afc7fe48d another try of client fix 2026-01-13 18:54:20 +08:00
Tienson Qin
8c8ca9ce45 rebase 2026-01-13 16:19:03 +08:00
Tienson Qin
0c55b0acf0 fix: typo 2026-01-13 00:01:01 +08:00
Tienson Qin
c03a5183df refactor: fix data in server instead of client 2026-01-12 23:56:50 +08:00
Tienson Qin
63357c43ba fix: parent missing 2026-01-12 23:24:10 +08:00
Tienson Qin
ecb46de504 fix: close existing ws connection when opening new conn 2026-01-12 18:53:07 +08:00
Tienson Qin
bc7f19cbdc fix: client should send only the last :block/parent update to server 2026-01-12 18:45:02 +08:00
Tienson Qin
8430f1c9e1 refactor: keep only one ws client 2026-01-12 17:36:03 +08:00
Tienson Qin
9bbba502ff remove state machine from protocol 2026-01-12 17:22:56 +08:00
Tienson Qin
dd30969902 remove state machine 2026-01-12 17:11:11 +08:00
rcmerci
04356586fd fix(db-sync): fix block-cycle, add test 2026-01-12 14:51:55 +08:00
Tienson Qin
40ddc54091 fix: missing parent 2026-01-12 14:31:58 +08:00
rcmerci
88d1b56222 doc(db-sync): update fix-blocks-cycle.md 2026-01-12 00:54:52 +08:00
rcmerci
9356782168 fix(db-sync): worker server unit-tests 2026-01-11 23:57:33 +08:00
rcmerci
10e368fb39 chore: fmt 2026-01-11 23:01:30 +08:00
rcmerci
6e2cae24b7 enhance(db-sync): ensure only one ws per repo 2026-01-11 23:00:36 +08:00
rcmerci
b949f707ed fix(db-sync): recv 'changed' when in tx/batch-wait 2026-01-11 22:39:07 +08:00
rcmerci
410d4a27f2 dev(db-sync): add db-sync debug icon in header 2026-01-11 22:26:52 +08:00
rcmerci
f23ab5c5b5 refactor(db-sync): add state machine doc & refactor 2026-01-11 22:25:58 +08:00
rcmerci
b7e926f713 enhance(db-sync): remove declare 2026-01-11 18:14:34 +08:00
rcmerci
2bc5783b78 enhance(db-sync): update doc and align with codebase 2026-01-11 18:02:53 +08:00
rcmerci
611a52443e enhance(db-sync): fail fast when encounter bugs 2026-01-11 17:24:25 +08:00
rcmerci
32945f6443 fix(db-sync): fix blocks-cycle, add doc docs/agent-guide/db-sync/fix-blocks-cycle.md 2026-01-11 17:18:12 +08:00
rcmerci
4cbb01f78c fix(db-sync): fix test 2026-01-11 15:44:06 +08:00
rcmerci
8fbcf16868 fix(db-sync): wrong ws resp when tx/reject 2026-01-11 15:28:56 +08:00
Tienson Qin
b0309307f7 wip: missing parent && order conflicts 2026-01-11 11:18:57 +08:00
Tienson Qin
f8daccba40 fix: fn order 2026-01-11 10:38:08 +08:00
rcmerci
1b79d7d0d8 doc(db-sync): sync db-sync docs and codebase again 2026-01-10 23:41:40 +08:00
rcmerci
fcc24fff20 feat(db-sync): add schemas for all client&server ws&http requests&responses 2026-01-10 22:56:11 +08:00
rcmerci
a32f46fb6f fix(db-sync): dev:db-sync-test only compile 2026-01-10 21:46:33 +08:00
rcmerci
9f530799b6 enhance(db-sync): protocol.md add http endpoints
fix: make t_before mandatory
2026-01-10 21:45:41 +08:00
rcmerci
0864b485f4 refactor(db-sync): rename worker-sync to db-sync 2026-01-10 17:52:33 +08:00
Tienson Qin
cdd380bdc7 use promesa instead of js-await 2026-01-10 16:59:27 +08:00
rcmerci
5219d928d1 docs(worker-sync): add guide and protocol 2026-01-10 16:41:59 +08:00
Tienson Qin
c06a63b03a enable db validation on worker 2026-01-10 16:16:22 +08:00
Tienson Qin
6606162080 fix: property db attrs need to be at the beginning of tx-data 2026-01-10 16:00:07 +08:00
Tienson Qin
7aee601c3e no need for de-normalize 2026-01-10 13:12:18 +08:00
Tienson Qin
2dde10531f move retract handler to normalize 2026-01-10 10:57:34 +08:00
Tienson Qin
3fbd1c842e fix: set local tx when downloading graph 2026-01-10 10:57:34 +08:00
Tienson Qin
7bbc5af848 fix: replace :db/retract datoms with :db.fn/retractEntity 2026-01-10 10:57:34 +08:00
rcmerci
52bac8aef5 enhance(worker-sync): add ws reconnect backoff 2026-01-10 00:17:35 +08:00
Tienson Qin
7d2d098cf2 fix: wrong pipeline data when applying remote tx 2026-01-09 23:10:12 +08:00
Tienson Qin
e203198528 server apply multiple txs at once 2026-01-09 22:51:53 +08:00
Tienson Qin
96da116077 fix: user persisted local-tx 2026-01-09 22:37:01 +08:00
rcmerci
a54ecc7d28 docs(worker-sync): add accuracy note 2026-01-09 22:28:33 +08:00
rcmerci
01fc791cd6 docs(worker-sync): expand dev start note 2026-01-09 22:23:44 +08:00
rcmerci
c2738c9dc9 enhance(worker-sync): foreground dev task 2026-01-09 22:19:27 +08:00
rcmerci
965f93de70 update agents.md and docs/agent-guide/worker-sync.md 2026-01-09 21:05:24 +08:00
Tienson Qin
cb032ea148 remove tx api, use tx/batch instead 2026-01-09 20:49:19 +08:00