Hierarchical graphs PR1: WorkItem drills into a Graph (schema + queries)#59
Merged
Conversation
First slice of Altium-style "graphs of graphs": a WorkItem can be a sheet
symbol that drills into a sub-graph.
- neo4j-schema.ts: WorkItem.subgraph (DRILLS_INTO -> Graph) + denormalized
subgraphId scalar; inverse Graph.drillSources. Additive, no data migration.
- queries.ts: fetch subgraphId + subgraph{ id name nodeCount edgeCount type }
in GET_WORK_ITEMS / GET_WORK_ITEM_BY_ID.
- types/graph.ts: WorkItem gains subgraphId? + subgraph? summary.
Verified: GraphQL exposes the fields and returns null for existing nodes;
THE GATE 5/5; web + server typecheck clean.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
🧪 Comprehensive Test Suite
Full-stack smoke gate runs in the CI workflow. |
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.
First slice of the Altium-style "graphs of graphs" feature (see approved plan).
A WorkItem can now be a sheet symbol that drills into a sub-graph:
neo4j-schema.ts:WorkItem.subgraph(DRILLS_INTO→ Graph) + denormalizedsubgraphIdscalar; inverseGraph.drillSources. Additive — no Neo4j data migration; existing nodes resolvenull.queries.ts: fetchsubgraphId+subgraph { id name nodeCount edgeCount type }.types/graph.ts:WorkItemgains the optional fields.No behavior change yet — navigation (PR3) and seed data (PR2) build on this.
Verified: GraphQL exposes the fields (null for existing nodes), THE GATE 5/5, web+server typecheck clean.
🤖 Generated with Claude Code