Commit
fix: properly associate samples and packs with projects
Commit details
Commit notes
## Issues Fixed:
1. **Legacy upload route now supports projectId** - The /uploads/chunked/initiate endpoint was missing projectId parameter - Now correctly passes projectId to createUploadSession and queue job - Also added folderPath support to legacy route for consistency
2. **Samples can now be moved between projects** - Added projectId to PATCH /:id endpoint - Added projectId to PATCH /:id/metadata endpoint - Added projectId to PATCH /batch endpoint for bulk moves - Added projectId to all sample response functions
3. **Sample packs can now be moved between projects** - Added projectId to PATCH /:id endpoint - Added projectId to pack response function
4. **API responses now include projectId** - Updated toSampleResponse() in samples.ts - Updated toFullSampleResponse() in samples.ts - Updated toSampleResponse() in library.ts - Updated toPackResponse() in sample-packs.ts
This ensures that samples and sample packs are correctly associated with workspace projects throughout the entire upload and management lifecycle.
Co-authored-by: armin.naimi <[email redacted]>
- Files changed
- 4
- Lines added
- +36
- Lines removed
- −1