fix: file upload source#579
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
supermemory-app | bf225f2 | Nov 13 2025, 06:46 AM |
How to use the Graphite Merge QueueAdd the label Main to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Pull Request Review: Fix File Upload SourceSummaryThis PR adds the ✅ Positive Aspects
🔍 Code Quality ObservationsGood:
Minor Observations:
🐛 Potential IssuesNone identified - This is a straightforward bug fix with no apparent issues. 🚀 Performance ConsiderationsNo performance impact - Adding a small metadata field to the FormData has negligible overhead. 🔒 Security ConcernsLow Risk - The value is hardcoded to
🧪 Test CoverageMissing Tests: There are no test files for the add-memory component:
Recommendation: Consider adding tests for: - File upload mutation includes correct metadata
- FormData structure is properly formatted
- Error handling for failed uploads
- Metadata is preserved through the upload flow📋 Additional Recommendations
curl -X POST "https://api.supermemory.ai/v3/documents/file" \
-H "Authorization: Bearer $SUPERMEMORY_API_KEY" \
-F "file=@document.pdf" \
-F "containerTags=documents" \
-F "metadata={\"sm_source\":\"consumer\"}"
// packages/validation/schemas.ts or similar
export const SM_SOURCE = {
CONSUMER: 'consumer',
TWITTER_BOOKMARKS: 'twitter_bookmarks',
// ... other sources
} as const;
✅ VerdictAPPROVED - This is a good bug fix that improves consistency across the codebase. The change is minimal, correct, and follows existing patterns. Merge Recommendation: ✅ Safe to merge Priority: Medium - This ensures proper source tracking for analytics and potentially for rate limiting logic. 📝 Summary Checklist
Great work on maintaining consistency! 🎉 |
Merge activity
|
60e65e7 to
bf225f2
Compare
Code Review: Fix file upload source metadataSummaryThis PR adds the ✅ Code Quality & Best PracticesPositive:
Suggestions:
🐛 Potential IssuesNone identified. The implementation correctly:
⚡ Performance ConsiderationsNo concerns. The change:
🔒 Security ConcernsNone identified. The implementation:
🧪 Test CoverageGap identified:
Recommendations:
📝 Additional NotesContext from codebase analysis:
Related files using
✨ VerdictLGTM with suggestions ✅ This is a solid fix that improves consistency across the codebase. The implementation is correct and follows established patterns. Consider the constant extraction suggestion and adding test coverage for future maintainability. Risk level: Low |


No description provided.