mirror of
https://github.com/Dasemu/Synapse.git
synced 2026-11-27 15:56:43 +00:00
feat(core): hubs, tag pages and types, with ffi, history and import support
Hubs and templates are page kinds; tags are pages of kind tag linked by a TAGGED edge; types are plain names on the page. Schema v5. Snapshots carry synapse-kind/tags/types. Also adapts search, import and server tests. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
91a8276966
commit
b800248d67
35 files changed
+7983
-141
No files matched your search
@@ -189,14 +189,20 @@ impl History {
|
||||
for rec in ops {
|
||||
match rec.op {
|
||||
Op::UpsertPage { page } => {
|
||||
// Members list their hubs by title: a renamed hub, or one that
|
||||
// became a note, changes their files.
|
||||
touched.extend(graph.hub_members(page.id)?);
|
||||
touched.insert(page.id);
|
||||
}
|
||||
Op::UpsertBlock { block } => {
|
||||
touched.insert(block.page_id);
|
||||
}
|
||||
// A deleted hub drops out of its members' lists (their `page_hubs`
|
||||
// rows outlive it when no member upsert came along).
|
||||
Op::DeletePage { id } => touched.extend(graph.hub_members(id)?),
|
||||
// Deletions and moves do not say which page lost a block; those
|
||||
// pages are caught by the `updated_at` scan below.
|
||||
Op::DeleteBlock { .. } | Op::DeletePage { .. } | Op::PutAsset { .. } => {}
|
||||
Op::DeleteBlock { .. } | Op::PutAsset { .. } => {}
|
||||
// The previous owner of an alias is unknown.
|
||||
Op::SetAlias { .. } => everything = true,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user