Skip to content

REFACTOR transcription microservice into the monollith#25

Merged
SergioNR merged 30 commits intonextfrom
refactor-transcription-service-into-monolith
Dec 22, 2025
Merged

REFACTOR transcription microservice into the monollith#25
SergioNR merged 30 commits intonextfrom
refactor-transcription-service-into-monolith

Conversation

@SergioNR
Copy link
Copy Markdown
Member

Refactor to reduce complexity

They were used in the microservice - no longer used in the monolith

functions:
- mark as published to queue
- get completed & not published to queue
Copy link
Copy Markdown

@kilo-code-bot kilo-code-bot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ 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)

Fix these issues in Kilo Cloud

Comment thread server/services/analysisService.js
Comment thread server/models/transcriptionModel.js
Comment thread server/integrations/aws/Transcribe.js
}
processTranscriptionRequest(transcriptionRequest); // Fire-and-forget

return res.status(200).json({
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ WARNING: Hardcoded language code

The language code is hardcoded to 'es-ES'. This should be configurable based on the analysis requirements or user preferences.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No - Will only be in es-ES for the time being - its more efficient to hardcore for now

Comment thread server/utils/transcription/transcriptionNormalizer.js
Comment thread prisma/schema.prisma Outdated
@SergioNR SergioNR merged commit cb120eb into next Dec 22, 2025
@SergioNR SergioNR deleted the refactor-transcription-service-into-monolith branch December 22, 2025 14:39
Copy link
Copy Markdown

@kilo-code-bot kilo-code-bot Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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:

  1. Removes all LavinMQ dependencies and related code
  2. Adds direct integration with AWS Transcribe service
  3. Implements a transcription job tracking system in the database
  4. Uses cron jobs to periodically check for completed transcription jobs
  5. 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.

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.

1 participant