[DP-465] 채용 상세 부족 역량 추천 — 파싱 미완료 공고 빈 배열 반환 버그 수정#163
Merged
Conversation
- requiredSkills가 빈 경우(PENDING/FAILED) techStack으로 폴백해 missing 계산 - missing이 빈 경우(스킬 모두 보유) techStack 기준으로 콘텐츠 추천
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
parseStatus = PENDING/FAILED인 공고(requiredSkills = [])에서skillGap()호출 시roadmap: [], contents: []가 반환되는 버그 수정requiredSkills가 비어 있으면techStack으로 폴백해missing_skills계산 후 FastAPI에 전달missing이 비어 있는 경우(스킬 전부 보유)에도techStack기준으로 콘텐츠 추천 (기존에는 early return으로 빈 배열 반환)변경 파일
JobService.javaskillGap()—baseSkills폴백 로직 추가,recommendContents()파라미터contentSkills로 분리JobSkillGapServiceTest.java원인 요약
수정 내용
Test plan
skillGap_pendingJob_usesTechStackForMissingSkills— PENDING 공고에서 techStack이 AI missing_skills로 전달됨skillGap_allSkillsMet_recommendsContentByTechStack— 스킬 전부 보유 시 techStack으로 콘텐츠 추천skillGap_partialMissing_usesMissingSkillsForAiAndContent— 일부 미보유 시 missing 스킬 기준 정상 동작skillGap_emptyRequiredAndEmptyTechStack_returnsEmptyContent— 둘 다 비어있을 때 빈 배열 반환 (edge case)./gradlew build전체 통과