feat(api/graph): edges + clusters API with type filter + Redis cache#49
Merged
gracefullight merged 2 commits intomainfrom Mar 21, 2026
Merged
feat(api/graph): edges + clusters API with type filter + Redis cache#49gracefullight merged 2 commits intomainfrom
gracefullight merged 2 commits intomainfrom
Conversation
Add graph data endpoints for visualizing contact relationship networks: - GET /graph/edges?type= returns edges between contacts sharing an organization - GET /graph/clusters?type= returns contact groups by shared organization - Supports company and school types via experience table; tag, region, meeting types return empty until their backing tables are created - Redis caching with 5-minute TTL on both endpoints Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
# Conflicts: # apps/api/src/main.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GET /graph/edges?type=endpoint returning edges between contacts that share an organization (self-join on experience table)GET /graph/clusters?type=endpoint returning contact groups clustered by shared organizationcompanyandschooltype filters via organization/experience tables;tag,region,meetingtypes return empty until backing tables existTest plan
GET /graph/edges?type=companyreturns edges between contacts sharing the same companyGET /graph/clusters?type=schoolreturns clusters of contacts grouped by school🤖 Generated with Claude Code