REFACTOR transcription microservice into the monollith#25
Conversation
They were used in the microservice - no longer used in the monolith functions: - mark as published to queue - get completed & not published to queue
There was a problem hiding this comment.
⚠️ 6 Issues Found
| Severity | Issue | Location |
|---|---|---|
| WARNING | Potential issue with transcription job status check | server/services/analysisService.js:24 |
| WARNING | Incorrect query for transcription job details | server/models/transcriptionModel.js:35 |
| WARNING | Typo in comment | server/integrations/aws/Transcribe.js:23 |
| WARNING | Hardcoded language code | server/controllers/analysisEntryController.js:30 |
| WARNING | Direct console.error usage | server/utils/transcription/transcriptionNormalizer.js:175 |
| WARNING | Missing data type for language_code field | prisma/schema.prisma:140 |
Recommendation: Address critical issues before merge
Review Details (6 files)
Files: server/services/analysisService.js (1 issue), server/models/transcriptionModel.js (1 issue), server/integrations/aws/Transcribe.js (1 issue), server/controllers/analysisEntryController.js (1 issue), server/utils/transcription/transcriptionNormalizer.js (1 issue), prisma/schema.prisma (1 issue)
| } | ||
| processTranscriptionRequest(transcriptionRequest); // Fire-and-forget | ||
|
|
||
| return res.status(200).json({ |
There was a problem hiding this comment.
The language code is hardcoded to 'es-ES'. This should be configurable based on the analysis requirements or user preferences.
There was a problem hiding this comment.
No - Will only be in es-ES for the time being - its more efficient to hardcore for now
There was a problem hiding this comment.
✅ No New Issues
Changes since last review look good.
Looking at the latest changes, the refactor from a microservice architecture with LavinMQ to a monolithic approach using AWS Transcribe directly has been implemented successfully. The code now:
- Removes all LavinMQ dependencies and related code
- Adds direct integration with AWS Transcribe service
- Implements a transcription job tracking system in the database
- Uses cron jobs to periodically check for completed transcription jobs
- Includes a transcription normalizer to process the AWS Transcribe output
The remaining open issue about the hardcoded language code ('es-ES') has been acknowledged by the author as intentional for now. All other previously identified issues have been addressed.
Refactor to reduce complexity