feat(#7): add subtask support to task management API - #8
Closed
fullsend-ai-coder[bot] wants to merge 1 commit into
Closed
feat(#7): add subtask support to task management API#8fullsend-ai-coder[bot] wants to merge 1 commit into
fullsend-ai-coder[bot] wants to merge 1 commit into
Conversation
Add hierarchical subtask support allowing users to break tasks into smaller, trackable child tasks. Subtasks share core task properties and are linked to a parent task. Changes: - store.js: Add createSubtask() with parent validation and single-level nesting enforcement, listSubtasks() to retrieve children by parent ID, and cascade delete to automatically remove subtasks when a parent is deleted. Tasks now include a parentId field (null for top-level tasks). - index.js: Add POST /tasks/:id/subtasks and GET /tasks/:id/subtasks endpoints following the existing RESTful nested resource pattern. - store.test.js: Add 9 tests covering subtask creation, nesting rejection, listing, cascade delete, backward compatibility, and parent isolation. Closes #7
|
🤖 Finished Review · ✅ Success · Started 8:06 AM UTC · Completed 8:20 AM UTC Commit: |
|
Review skipped — this PR is already closed. The Posted by fullsend post-review check |
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
POST /tasks/:id/subtasks(create) andGET /tasks/:id/subtasks(list)parentIdGET /taskscontinues to return all tasks including subtasksChanges
src/store.js: ExtendedTaskStorewithcreateSubtask(),listSubtasks(), cascade delete indelete(), andparentIdfield on all taskssrc/index.js: Added route handlers forPOST /tasks/:id/subtasksandGET /tasks/:id/subtaskssrc/store.test.js: Added 9 new tests covering subtask creation, nesting rejection, parent validation, listing, cascade delete, backward compatibility, and parent isolationTesting
All 16 tests pass (7 existing + 9 new):
Closes #7
Post-script verification
agent/7-add-subtasks)77fa054a08e6345d0561de4fc22d420c9fef5d5c..HEAD)