Skip to content

PR-004: Attachments + Link Detection#8

Draft
raychrisgdp wants to merge 5 commits intomainfrom
feature/attachments
Draft

PR-004: Attachments + Link Detection#8
raychrisgdp wants to merge 5 commits intomainfrom
feature/attachments

Conversation

@raychrisgdp
Copy link
Copy Markdown
Owner

Summary

Implement task attachments with automatic URL detection, normalization, and deduplication. Supports provider registry pattern for future integration extensibility (Gmail, GitHub, etc.).

Changes

  • Add Attachment model and schema with unique constraint on (task_id, reference)
  • Implement LinkDetectionService with provider registry (GitHub, Gmail, generic)
  • Implement AttachmentService with CRUD operations and duplicate detection
  • Add attachment API endpoints (POST/GET/DELETE) under /api/v1
  • Auto-detect URLs in task create/update via LinkDetectionService
  • URL normalization to stable references with dedup per task

Test Results

  • Total Tests: 233
  • Passed: 233 ✅
  • Failed: 0 ❌
  • Coverage: Full

Acceptance Criteria

  • ✅ AC1: Manual Attachment CRUD
  • ✅ AC2: Auto-Detect URLs
  • ✅ AC3: Normalization and Deduplication

See test results for details.

Related

  • Spec: PR-004-attachments-link-detection.md
  • Depends on: PR-002 (Task CRUD API)

- Add Attachment model and schema with unique constraint on (task_id, reference)
- Implement LinkDetectionService with provider registry (GitHub, Gmail, generic)
- Implement AttachmentService with CRUD operations and duplicate detection
- Add attachment API endpoints (POST/GET/DELETE) under /api/v1
- Auto-detect URLs in task create/update via LinkDetectionService
- URL normalization to stable references with dedup per task
- 233 tests passing (100%)
- All acceptance criteria met

See PR-004-TEST-RESULTS.md for detailed test results
@raychrisgdp raychrisgdp marked this pull request as draft January 4, 2026 05:36
@raychrisgdp raychrisgdp self-assigned this Jan 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant