Skip to content

feat: refactor finalizeUpload with options object and extraction helpers - #582

Merged
Akatenvictor merged 4 commits into
AudioBitsStellar:mainfrom
luciusverus-cyber:feat/stellar-drips-wave-304
Sep 1, 2026
Merged

feat: refactor finalizeUpload with options object and extraction helpers#582
Akatenvictor merged 4 commits into
AudioBitsStellar:mainfrom
luciusverus-cyber:feat/stellar-drips-wave-304

Conversation

@luciusverus-cyber

Copy link
Copy Markdown
Contributor

Refactors finalizeUpload in SongService.ts to reduce parameter count and function length per acceptance criteria.

Closes #304

@drips-wave

drips-wave Bot commented Aug 31, 2026

Copy link
Copy Markdown

@luciusverus-cyber Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

… pattern

Extracts S3 upload, DB persistence, chunk merging, and queue
submission into separate functions. Reduces finalizeUpload from
9 parameters to 1 options object plus context. Drops function
length below threshold while maintaining all existing tests.

Closes AudioBitsStellar#304
Extracts mergeChunks, uploadToS3, persistSongRecord, and
submitToProcessingQueue as focused helpers. Adds validateChunks,
calculateRetryDelay, and withRetry utility functions. Reduces
finalizeUpload from 9 params to 1 options object.

Closes AudioBitsStellar#304
@Akatenvictor
Akatenvictor merged commit 6d5214a into AudioBitsStellar:main Sep 1, 2026
1 of 6 checks passed
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.

Refactor finalizeUpload (126 lines, 9 parameters)

2 participants