[importer] import attachments - #20
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
🚧 Files skipped from review as they are similar to previous changes (6)
📝 WalkthroughWalkthroughAdds end-to-end attachment import: typed BitBucket export attachments, attachment model constructor and repository import, MinIO upload API, service orchestration to upload and persist attachments (with cleanup on failure), and importer command wiring with dry-run and file validation. ChangesAttachment import from BitBucket export
Sequence Diagram(s)sequenceDiagram
participant CLI as Importer CLI
participant Importer as importer.run
participant AttachSvc as AttachmentsService
participant Storage as StorageService (MinIO)
participant Repo as Attachments Repository
CLI->>Importer: run import command with export file
Importer->>AttachSvc: Import(taskID, fileName, localPath, uploadedBy)
AttachSvc->>Storage: PutObject(storageKey, localPath)
Storage-->>AttachSvc: success / error
AttachSvc->>Repo: Import(attachmentModel)
Repo-->>AttachSvc: domain Attachment / error
AttachSvc->>Storage: DeleteObject(storageKey) on repo error
AttachSvc-->>Importer: return Attachment / error
Importer-->>CLI: log result, update counters
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labelscodex 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🤖 Pull request artifacts
|
3172411 to
e27ab2a
Compare
e27ab2a to
810f8d6
Compare
Summary by CodeRabbit