zettelkasten.dashboard.backend.routes.organizations¶
zettelkasten.dashboard.backend.routes.organizations ¶
Organization catalog + spine promote/demote/resync/verify/overlay routes.
Split out of the former flat routes.py; behaviour is unchanged.
SpineActionRequest ¶
Bases: BaseModel
Optional knobs for promote/resync (sensible defaults when omitted).
Source code in zettelkasten/dashboard/backend/routes/organizations.py
project_organizations ¶
List the organizations (saved matrix definitions) owned by a project.
Owner-level — spans every review scoped to this project. Listing also lazily
migrates any legacy review tables into the registry (idempotent). This is the
shared org/spine CATALOG the per-view spine selectors (graph/matrix/outline)
read; default_spine names the project's primary org (the default lens)
when one is pinned, so a view can default to it. Each org carries its state
(lens vs materialized spine) + spine_ref so the selector can show
only the materialized spines as overlay options.
Federation-aware read: a namespaced <repo_id>:<local> project reads the
PEER's org catalog read-only (graphs_dir=repo.zettel_dir, migrate=False
so the lazy migration WRITE never touches a peer), and its default_spine
from the peer's project manifest. A local ref keeps the exact prior behavior.
Source code in zettelkasten/dashboard/backend/routes/organizations.py
graph_organizations ¶
List the organizations (saved matrix definitions) owned by a source graph.
Federation-aware read: a namespaced graph reads the PEER's org catalog
read-only (graphs_dir=repo.zettel_dir, migrate=False); a local ref
keeps the exact prior behavior.
Source code in zettelkasten/dashboard/backend/routes/organizations.py
promote_project_org
async
¶
promote_project_org(name: str, org_id: str, req: SpineActionRequest = SpineActionRequest()) -> dict
Materialize a project-owned org lens into a spine (+ bulk-attach members).
Source code in zettelkasten/dashboard/backend/routes/organizations.py
promote_graph_org
async
¶
promote_graph_org(name: str, org_id: str, req: SpineActionRequest = SpineActionRequest()) -> dict
Materialize a graph-owned org lens into a spine (+ bulk-attach members).
Source code in zettelkasten/dashboard/backend/routes/organizations.py
demote_project_org ¶
Demote a project-owned spine back to a lens (keeps nodes + edges).
demote_graph_org ¶
Demote a graph-owned spine back to a lens (keeps nodes + edges).
resync_project_org
async
¶
resync_project_org(name: str, org_id: str, req: SpineActionRequest = SpineActionRequest()) -> dict
Incrementally route new in-scope notes into a project-owned spine.
Source code in zettelkasten/dashboard/backend/routes/organizations.py
resync_graph_org
async
¶
resync_graph_org(name: str, org_id: str, req: SpineActionRequest = SpineActionRequest()) -> dict
Incrementally route new in-scope notes into a graph-owned spine.
Source code in zettelkasten/dashboard/backend/routes/organizations.py
delete_project_spine ¶
Transactional teardown of a project-owned spine (reverts the org to a lens).
delete_graph_spine ¶
Transactional teardown of a graph-owned spine (reverts the org to a lens).
verify_project_org ¶
Audit a project-owned org's synthesized summaries against their members.
?semantic=true opts into the agent over-reach tier (one call per
synthesized cell); omitted, the audit is a free structural pass.
Source code in zettelkasten/dashboard/backend/routes/organizations.py
verify_graph_org ¶
Audit a graph-owned org's synthesized summaries against their members.
?semantic=true opts into the agent over-reach tier (one call per
synthesized cell); omitted, the audit is a free structural pass.
Source code in zettelkasten/dashboard/backend/routes/organizations.py
project_spine_overlay ¶
Load a project-owned spine's overlay (apex/dimensions/hubs) for GraphView.
graph_spine_overlay ¶
Load a graph-owned spine's overlay (apex/dimensions/hubs) for GraphView.