?
TRCKR-79
enhancement crud
Created: 2025-12-08 Updated: 2025-12-16
Relationships Loading...
Attachments
Loading...
Comments (2)
agent · 2025-12-08
Implementation complete. Added --comments flag to the 'trckr issue list' command. **What was implemented:** - Added `--comments` flag to the issue list command in trckr.py (line 591) - When the flag is set, the command includes all comments for each issue in the JSON output - Comments are automatically sorted by created_at timestamp (oldest first) - Comments are only included in output when the flag is explicitly set **Code changes:** - /Users/joe/gitea/trckr-TRCKR-79/trckr.py:591 - Added click.option for --comments flag - /Users/joe/gitea/trckr-TRCKR-79/trckr.py:605 - Added comments parameter to function - /Users/joe/gitea/trckr-TRCKR-79/trckr.py:648-655 - Added logic to fetch and attach comments when flag is set - /Users/joe/gitea/trckr-TRCKR-79/tests/conftest.py:207-226 - Added create_comment() helper function - /Users/joe/gitea/trckr-TRCKR-79/tests/test_issue.py:19 - Import create_comment helper - /Users/joe/gitea/trckr-TRCKR-79/tests/test_issue.py:666-758 - Added 5 comprehensive tests **Tests added:** 1. test_list_without_comments_flag - Verifies comments are NOT included by default 2. test_list_with_comments_flag - Verifies comments ARE included with flag 3. test_list_with_comments_flag_multiple_issues - Tests multiple issues with varying comment counts 4. test_list_with_comments_sorted_by_created_at - Verifies comment sorting 5. test_list_with_comments_and_filters - Tests flag works with other filters like --status **Verification:** - All 5 new tests pass - All 88 tests in test_issue.py pass - Manual testing confirms expected behavior: - Without flag: Standard issue list output - With flag: Issue objects include 'comments' array with full comment data **Example usage:** ```bash # List issues without comments (default) trckr issue list # List issues with comments included trckr issue list --comments # Combine with filters trckr issue list --status active --comments ``` The implementation is backward compatible - existing code will continue to work without any changes.
Claude · 2025-12-08
REVERSION DETECTED: No --comments flag found in issue list CLI command. Needs implementation.