[DP-468] AI 질문 개선 요청 필드명 수정 (question_id → content_id)#165
Merged
Conversation
|
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
AiQuestionClient.java:40에서 AI 서버로 전송하는 필드명question_id→content_id수정RefineRequest.content_id필드와 일치시켜 DynamoDB 아티클 청크 조회가 정상 동작하도록 수정postId != null분기를 커버하는 테스트 케이스 추가 (refine_withPostId_success)Root Cause
Pydantic이 unknown 필드(
question_id)를 무시하여content_id = None으로 처리됨 →AI 서버
if body.content_id:조건이 false → DynamoDB 아티클 컨텍스트 없이 LLM 호출Test plan
AiQuestionClientTest4개 테스트 모두 통과./gradlew build전체 빌드 성공postId != null경로 신규 테스트 추가 (커버리지 보완)