Skip to content

Comments

Job 26 cv keywords#22

Merged
AnsonChung3 merged 7 commits intomainfrom
JOB-26-cv-keywords
Dec 16, 2025
Merged

Job 26 cv keywords#22
AnsonChung3 merged 7 commits intomainfrom
JOB-26-cv-keywords

Conversation

@mtariq-phd
Copy link

JOB-{Linear issue id} Pull Request Title

Summary/Description/Done changes

Endpoint Creation: Modified POST /users_cvs endpoint to handle CV file uploads via multipart/form-data.
OpenAI Integration: Implemented service logic to send parsed CV text to OpenAI API for keyword and deal-breaker extraction.
Database Updates: Updated database queries to store the AI-extracted JSON response (keywords/dealbreakers) directly into the users_cvs table. -> not yet working!
FIX: ensures user_id is correctly passed from frontend and used to save the keywords to the db.
Error Handling: Added try/catch blocks to handle failures in both file parsing and external API calls.

Time spent on this issue

30mins

Maira Tariq added 7 commits December 15, 2025 13:38
…ow requests from the frontend client.- Implement in the main router: - Add middleware to handle file uploads (key: 'cv'). - Add logic to parse stringified array from . - Integrate middleware to process PDF/DOCX files.- Ensure correct error handling for file parsing and empty uploads.
…tion

- Create cvExtractionService to interface with OpenAI for extracting skills.- Update usersCVsRoutes to integrate file parsing, AI analysis, and Supabase storage.- Add TypeScript safety checks for AI response parsing.
- Extract user_id from req.user (authMiddleware) instead of insecure req.body.- Remove manual user_id validation logic.- Fix TypeScript 'verbatimModuleSyntax' errors using 'import type'.- Leverage global Express type declarations for Request.user.
…OST /users_dealbreakers endpoint using auth token for user_id.- Updated POST /users_cvs to return extracted keywords to the frontend to unblock UI testing.- Temporarily commented out DB insertion for CVs to bypass UUID schema mismatch (pending DB migration).
Copy link
Contributor

@AnsonChung3 AnsonChung3 left a comment

Choose a reason for hiding this comment

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

Maria said it works 🤣

@AnsonChung3 AnsonChung3 merged commit d3c31ef into main Dec 16, 2025
1 check passed
@AnsonChung3 AnsonChung3 deleted the JOB-26-cv-keywords branch December 16, 2025 11:15
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.

2 participants