Clean up stale hub-and-spoke references after Universal Graph migration#800
Conversation
## Summary - Delete hub_spoke_schema_test.rs (511 lines of obsolete tests) - Update docstrings and comments across 11 files to remove "spoke" references - Fix collection_membership_test.rs to use Universal Graph Architecture ## Files Changed - behaviors/mod.rs: Updated DateNodeBehavior, QueryNodeBehavior, CollectionNodeBehavior docs - db/surreal_store.rs: Removed stale REMOVED comments, simplified architecture docs - mcp/handlers/nodes.rs, nodes_test.rs: Removed spoke table references - models/: Updated core_schemas.rs, mod.rs, schema.rs - services/node_service.rs: Cleaned up all spoke references in docs and tests - services/schema_table_manager.rs: Simplified module docs - tests/collection_membership_test.rs: Migrated test SQL to Universal Graph - tests/query_service_test.rs: Updated module docs - Deleted: tests/hub_spoke_schema_test.rs Closes #798 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Code Review Report - PR #800Review Type: Initial ReviewSummaryThis PR successfully cleans up stale hub-and-spoke terminology left behind after the Universal Graph Architecture migration (PR #786). The changes are purely documentation/comment updates with one test file deletion - no functional code changes. Requirements Validation
Code Review FindingsCritical IssuesNone. Suggested ImprovementsNone. Observations (No Action Required)1. Consistent Terminology Updates ( // Before:
/// Query nodes use the hybrid hub-and-spoke pattern (similar to TaskNode/SchemaNode):
/// - **Hub (`node.content`)**: Plain text description
/// - **Spoke (`query` table)**: Structured query fields
// After:
/// Query nodes store all data in the unified `node` table (Universal Graph Architecture):
/// - **Content (`node.content`)**: Plain text description
/// - **Properties (`node.properties`)**: Structured query fields
2. Test SQL Updated ( -- Before:
CREATE task:`{uuid}` CONTENT {
node: type::thing('node', '{uuid}'),
status: 'open',
priority: 'high'
};
CREATE node:`{uuid}` CONTENT {
node_type: 'task',
data: type::thing('task', '{uuid}'),
...
};
-- After:
CREATE node:`{uuid}` CONTENT {
node_type: 'task',
content: 'Task item',
properties: { status: 'open', priority: 'high' },
...
};3. Comment Simplification Pattern
Files Changed Summary
Total: 12 files, 56 insertions, 615 deletions Recommendation✅ APPROVE This is a clean technical debt cleanup that:
The changes are well-scoped, follow the issue's cleanup guidelines, and improve codebase clarity without any functional impact. |
malibio
left a comment
There was a problem hiding this comment.
Review complete - Recommendation: APPROVE. See detailed review in comments above.
…on (#800) ## Summary - Delete hub_spoke_schema_test.rs (511 lines of obsolete tests) - Update docstrings and comments across 11 files to remove "spoke" references - Fix collection_membership_test.rs to use Universal Graph Architecture ## Files Changed - behaviors/mod.rs: Updated DateNodeBehavior, QueryNodeBehavior, CollectionNodeBehavior docs - db/surreal_store.rs: Removed stale REMOVED comments, simplified architecture docs - mcp/handlers/nodes.rs, nodes_test.rs: Removed spoke table references - models/: Updated core_schemas.rs, mod.rs, schema.rs - services/node_service.rs: Cleaned up all spoke references in docs and tests - services/schema_table_manager.rs: Simplified module docs - tests/collection_membership_test.rs: Migrated test SQL to Universal Graph - tests/query_service_test.rs: Updated module docs - Deleted: tests/hub_spoke_schema_test.rs Closes #798 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
…on (#800) ## Summary - Delete hub_spoke_schema_test.rs (511 lines of obsolete tests) - Update docstrings and comments across 11 files to remove "spoke" references - Fix collection_membership_test.rs to use Universal Graph Architecture ## Files Changed - behaviors/mod.rs: Updated DateNodeBehavior, QueryNodeBehavior, CollectionNodeBehavior docs - db/surreal_store.rs: Removed stale REMOVED comments, simplified architecture docs - mcp/handlers/nodes.rs, nodes_test.rs: Removed spoke table references - models/: Updated core_schemas.rs, mod.rs, schema.rs - services/node_service.rs: Cleaned up all spoke references in docs and tests - services/schema_table_manager.rs: Simplified module docs - tests/collection_membership_test.rs: Migrated test SQL to Universal Graph - tests/query_service_test.rs: Updated module docs - Deleted: tests/hub_spoke_schema_test.rs Closes #798 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
…on (#800) ## Summary - Delete hub_spoke_schema_test.rs (511 lines of obsolete tests) - Update docstrings and comments across 11 files to remove "spoke" references - Fix collection_membership_test.rs to use Universal Graph Architecture ## Files Changed - behaviors/mod.rs: Updated DateNodeBehavior, QueryNodeBehavior, CollectionNodeBehavior docs - db/surreal_store.rs: Removed stale REMOVED comments, simplified architecture docs - mcp/handlers/nodes.rs, nodes_test.rs: Removed spoke table references - models/: Updated core_schemas.rs, mod.rs, schema.rs - services/node_service.rs: Cleaned up all spoke references in docs and tests - services/schema_table_manager.rs: Simplified module docs - tests/collection_membership_test.rs: Migrated test SQL to Universal Graph - tests/query_service_test.rs: Updated module docs - Deleted: tests/hub_spoke_schema_test.rs Closes #798 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Closes #798