Generic Relationships (blocks, depends_on, related_to) #39
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Overview
Add a Relationships model for generic entity linking. Everything connects to everything.
Background
From r0 (jarvis-brain), tasks have
blocksandblocked_byarrays. This needs to be generalized to support:Requirements
Prisma Schema
API Endpoints
GET /api/relationships?sourceType=TASK&sourceId=xxx— Get relationships for entityPOST /api/relationships— Create relationshipDELETE /api/relationships/:id— Remove relationshipGET /api/tasks/:id/blocking— Convenience: what does this task block?GET /api/tasks/:id/blocked-by— Convenience: what blocks this task?UI
Acceptance Criteria
Absorbed by Knowledge Module wiki-links.
[[link]]syntax provides:See: #59-64 (Linking phase),
docs/design/knowledge-module.md