[fix] AI 팀장 자동 리포트가 방장 명의로 게시되는 문제 - #317
Merged
Merged
Conversation
주차/수료 리포트를 WeeklyReportScheduler가 게시할 때 createPost를 authorDisplayNameOverride 없이 호출해, 작성자 표시명이 coalesce(override, 멤버명)에서 방장(OWNER) 이름으로 떨어졌다. 게시판 상세에서 AI 자동 리포트가 방장이 쓴 글처럼 보임. - 주차 리포트(postWeeklyReport)·수료 리포트(generateCompletionReport) 두 createPost 호출에 author_display_name_override = "AI 팀장" 전달 - AI_LEADER_DISPLAY_NAME 상수 추가 - WeeklyReportSchedulerTest: 게시 커맨드 캡처해 작성자 override가 "AI 팀장"인지 단언(회귀 방지) - EXEC_PLAN 추가 FE 변경 불필요: 작성자명은 백엔드가 author_display_name 으로 내려줌. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
작업
AI가 자동 게시하는 주차/수료 리포트가 게시판 상세에서 작성자가 방장(OWNER) 이름으로 표시되는 버그를 수정합니다. (의도: "AI 팀장" 명의)
원인
WeeklyReportScheduler가 리포트를 게시할 때boardService.createPost(...)를authorDisplayNameOverride없이(6-인자 호환 생성자) 호출 →group_board_post.author_display_name_override가 NULL → 작성자명 산출coalesce(override, 멤버명, 닉네임)에서 방장 멤버명으로 표시됨.변경
postWeeklyReport)·수료 리포트(generateCompletionReport)의 두createPost호출에authorDisplayNameOverride = "AI 팀장"전달AI_LEADER_DISPLAY_NAME상수 추가WeeklyReportSchedulerTest: 게시 커맨드를 캡처해 작성자 override가"AI 팀장"인지 단언(회귀 방지)영향 범위
author_display_name(coalesce 결과)으로 응답하므로 override만 채우면 표시 반영.author_display_name_override컬럼을 의도된 용도로 채우는 수정.검증
./gradlew check build통과 (test · ArchUnit · Swagger 포함)Jira
🤖 Generated with Claude Code