Skip to content

[DP-233] AI 답변 응답 전체 필드 수신 및 트렌드 엔드포인트 정리#138

Merged
github-actions[bot] merged 3 commits intodevelopV2from
auto/feature/DP-233-ai-answer-full-response
Apr 25, 2026
Merged

[DP-233] AI 답변 응답 전체 필드 수신 및 트렌드 엔드포인트 정리#138
github-actions[bot] merged 3 commits intodevelopV2from
auto/feature/DP-233-ai-answer-full-response

Conversation

@suheon98
Copy link
Copy Markdown
Collaborator

Summary

  • POST /posts/{postId}/ai-answer 응답에 AI 서버가 반환하던 key_points, suggested_tags, confidence 필드 추가 수신/저장
  • TopContentItemrank 필드 추가 (AI 서버 payload에 기존 포함)
  • GET /trends/analysis/{periodStart} 엔드포인트 및 TrendAnalysisService.getByPeriod() 제거 (히스토리 폐기 결정)
  • AI 서버 응답의 related_contents는 BE에서 파싱하지 않음 (팀 협의)

Test plan

  • AiAnswerClientTest — 전체 응답 객체 파싱 검증
  • AiAnswerServiceTest — 신규 필드 포함 저장 및 반환 검증
  • AiAnswerControllerTest — keyPoints, suggestedTags, confidence 응답 검증
  • TrendAnalysisServiceTest — getByPeriod 관련 테스트 제거
  • TrendControllerTest — getAnalysisByPeriod 관련 테스트 제거
  • 전체 빌드 통과 (./gradlew build --no-daemon)

suheon added 3 commits April 25, 2026 14:06
AI 서버가 answer_content 외 반환하던 key_points, suggested_tags,
related_contents, confidence 필드를 파싱·저장·API 응답에 포함
- TopContentItem에 rank 필드 추가 (AI 서버 payload 기존 포함)
- TrendController.getAnalysisByPeriod() 제거 (GET /trends/analysis/{periodStart})
- TrendAnalysisService.getByPeriod() 제거
AI 서버 응답에 포함되나 BE에서 파싱/저장하지 않음
@github-actions github-actions Bot merged commit 88dee05 into developV2 Apr 25, 2026
2 checks passed
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
43.8% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

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