Skip to content

[DP-468] AI 질문 개선 요청 필드명 수정 (question_id → content_id)#165

Merged
github-actions[bot] merged 1 commit into
developV2from
auto/fix/DP-468-refine-content-id
May 7, 2026
Merged

[DP-468] AI 질문 개선 요청 필드명 수정 (question_id → content_id)#165
github-actions[bot] merged 1 commit into
developV2from
auto/fix/DP-468-refine-content-id

Conversation

@nYeonG4001
Copy link
Copy Markdown
Collaborator

Summary

  • AiQuestionClient.java:40 에서 AI 서버로 전송하는 필드명 question_idcontent_id 수정
  • AI 서버의 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

  • AiQuestionClientTest 4개 테스트 모두 통과
  • ./gradlew build 전체 빌드 성공
  • postId != null 경로 신규 테스트 추가 (커버리지 보완)

@github-actions github-actions Bot merged commit d93596f into developV2 May 7, 2026
2 checks passed
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 7, 2026

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