Commit Graph

31 Commits

Author SHA1 Message Date
李华桥 6f18ddbe85 v0.10.1 2023-11-13 19:49:26 +08:00
Peng Xiao bd9f66fbc7 fix(infra): compatibility fix for space prefix (#4912)
It seems there are some cases that [this upstream PR](https://github.com/toeverything/blocksuite/pull/4747) will cause data loss.

Because of some historical reasons, the page id could be different with its doc id.
It might be caused by subdoc migration in the following (not 100% sure if all white screen issue is caused by it) https://github.com/toeverything/AFFiNE/blob/0714c12703ff8840acc180633e5489c755ddfba3/packages/common/infra/src/blocksuite/index.ts#L538-L540

In version 0.10, page id in spaces no longer has prefix "space:"
The data flow for fetching a doc's updates is:
- page id in `meta.pages` -> find `${page-id}` in `doc.spaces` -> `doc` -> `doc.guid`
if `doc` is not found in `doc.spaces`, a new doc will be created and its `doc.guid` is the same with its pageId
- because of guid logic change, the doc that previously prefixed with `space:` will not be found in `doc.spaces`
- when fetching the rows of this doc using the doc id === page id,
  it will return EMPTY since there is no updates associated with the page id

The provided fix in the PR will patch the `spaces` field of the root doc so that after 0.10 the page doc can still be found in the `spaces` map. It shall apply to both of the idb & sqlite datasources.

Special thanks to @lawvs 's db file for investigation!
2023-11-13 17:57:56 +08:00
李华桥 075439c74f fix(core): change server url of stable to insider 2023-11-10 18:32:53 +08:00
Yifeng Wang 2117d6b232 chore: bump blocksuite (#4901) 2023-11-10 13:23:29 +08:00
李华桥 5c48c83301 v0.10.0 2023-11-10 11:42:04 +08:00
李华桥 063f5a683e v0.10.0-canary.16 2023-11-10 10:10:54 +08:00
李华桥 075eead9fa v0.10.0-canary.15 2023-11-09 23:27:12 +08:00
Peng Xiao 442115632b chore(component): bump bs (#4880) 2023-11-09 04:47:10 +00:00
Joooye_34 744cd47481 v0.10.0-canary.14 2023-11-08 15:36:54 +08:00
Hongtao Lye 12c72e63b1 chore: bump blocksuite version (#4862) 2023-11-08 07:12:48 +00:00
Joooye_34 f50b8002b3 v0.10.0-canary.13 2023-11-07 09:55:30 +08:00
Joooye_34 8554d5d791 v0.10.0-canary.12 2023-11-07 00:13:51 +08:00
Peng Xiao da9934fbdc fix(electron): add search to proxied url (#4852) 2023-11-06 14:47:44 +00:00
Joooye_34 3b74ff2b92 v0.10.0-canary.11 2023-11-06 18:10:28 +08:00
Joooye_34 fb0aaabe53 v0.10.0-canary.10 2023-11-02 23:40:34 +08:00
Hongtao Lye 15024c6c8a chore: bump blocksuite (#4801) 2023-11-02 09:12:23 +00:00
Joooye_34 75c8dd75e3 v0.10.0-canary.9 2023-11-01 22:03:47 +08:00
Joooye_34 0273ea8b00 v0.10.0-canary.8 2023-11-01 00:03:04 +08:00
Peng Xiao 8ca53326a7 fix(electron): update app icons (#4789)
Co-authored-by: Joooye_34 <Joooye1991@gmail.com>
2023-10-31 09:09:42 +00:00
Joooye_34 563863005f v0.10.0-canary.6 2023-10-31 14:40:47 +08:00
Joooye_34 37ec552f74 v0.10.0-canary.5 2023-10-31 11:54:25 +08:00
Joooye_34 17afe218fe v0.10.0-canary.4 2023-10-31 01:49:15 +08:00
joooye34 559ec3956f v0.10.0-canary.3 2023-10-24 20:18:21 +08:00
LongYinan b13705ba3d ci: remove setup-maker to reduce release duration (#4710) 2023-10-24 10:09:40 +00:00
Flrande 627e5dfbb5 feat: bump blocksuite (#4706) 2023-10-24 09:00:27 +00:00
Alex Yang d9e2d17a26 refactor: cleanup code 2023-10-20 19:28:04 -05:00
LongYinan 54aad58388 ci: fix electron make script on Windows (#4666) 2023-10-19 13:00:11 +00:00
LongYinan 37c6560dd6 v0.10.0-canary.2 2023-10-19 17:18:18 +08:00
Alex Yang 97d8660a54 refactor(electron): fix vitest and add behavior test (#4655) 2023-10-18 22:14:30 -05:00
Alex Yang b14a6bc29e build: fix generate-assets.ts 2023-10-18 16:33:09 -05:00
Joooye_34 bed9310519 refactor(infra): directory structure (#4615) 2023-10-18 15:30:08 +00:00