-
Notifications
You must be signed in to change notification settings - Fork 0
REFACTOR AWS transcription to local transcription #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
UPDATE swagger docs
Will be handled by whisper-asr
…cription container
ADD transcription local functionality
|
| Severity | Issue | Location |
|---|---|---|
| WARNING | Incorrect status rollback on transcription failure | server/controllers/transcriptionController.js:39 |
| WARNING | Missing error object logging | server/controllers/analysisEntryController.js:33 |
| WARNING | Potential null pointer access | server/integrations/whisper-asr-webservice/transcribe.js:8 |
Recommendation: Address critical issues before merge
Review Details (18 files)
Files:
- server/controllers/transcriptionController.js (1 issue)
- server/controllers/analysisEntryController.js (1 issue)
- server/integrations/whisper-asr-webservice/transcribe.js (1 issue)
- compose.yaml, package.json, .env.example, server/integrations/s3-client/s3.js, and others
Checked: Security, bugs, performance, error handling
Key Issues Found:
1. Incorrect Status Rollback (WARNING)
File: server/controllers/transcriptionController.js:39
When transcription fails, the status is incorrectly set back to IN_PROGRESS instead of PENDING, preventing retry attempts.
Fix: Change status to PENDING for failed jobs.
2. Missing Error Details (WARNING)
File: server/controllers/analysisEntryController.js:33
Error logging does not include the actual error object, making debugging difficult.
Fix: Include error parameter in logError call.
3. Potential Null Pointer (WARNING)
File: server/integrations/whisper-asr-webservice/transcribe.js:8
Accessing transcriptionJob.AnalysisEntry without null check could cause runtime errors.
Fix: Add null check before accessing nested properties.
Positive Changes:
- Good separation of concerns with new transcription controller
- Improved S3 client architecture (external/internal split)
- Removed AWS dependencies, reducing external service costs
- Simplified transcription normalizer logic
- Docker compose properly configured for local transcription
This is done to accomodate for upcoming internal S3 endpoint
It was set to 'IN_PROGRESS' when it should have been 'PENDING' so it would be picked up again by the CRON job
This was not included due to an oversight -- Once a transcription Job is completed, it will now update the status of the transcription job in DB to 'COMPLETED'
Description
Types of Changes
Related issue
Explanation of changes/Implementation
Screenshots (if applicable)
Pull Request Checklist
Additional Notes