[Refactor/#78] 열린피드백 리뷰 반영 — 네이밍 통일, round 검증 VO 분리 - #79
Merged
Merged
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Repository: billilge/stream-server/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (16)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
github-actions
Bot
requested review from
jjunh33,
leegain1,
sangrae2325 and
tnals0924
September 28, 2026 08:16
tnals0924
approved these changes
Sep 29, 2026
jjunh33
force-pushed
the
refactor/#78-open-feedback-review-fixes
branch
from
September 29, 2026 11:42
8d19b01 to
c0b461f
Compare
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.
#️⃣연관된 이슈
🎯 해결하려는 문제가 무엇인가요?
PR #67 리뷰에서 나온 지적 2개.
OpenFeedback도메인 클래스명이FeedbackErrorCode/FeedbackRound등 나머지 접두사(Feedback)와 안 맞음search()의round <= 0유효성 검사가 검색 로직과 섞여 있음❓ 왜 해결해야 하나요?
리뷰어가 직접 지적한 사항이고, 둘 다 코드 일관성·관심사 분리 측면에서 반영하는 게 맞다고 판단했다.
⭐ 어떻게 해결했나요?
OpenFeedback→Feedback으로 리네임(도메인 클래스·리포지토리·서비스·JPA 엔티티까지 전부, DB 테이블명open_feedbacks는 자바 네이밍과 별개라 안 건드림)FeedbackSearchCondition(year, round)VO를 신규 추가해round유효성 검사(1 이상)를 그 정적 팩토리(of())로 이동.search()는 조회 로직만 남음.AppFeedbackController에서 요청 파라미터를 받자마자 이 VO로 감싸서 넘긴다.🧩 이 PR의 한계 & 트레이드오프
없음.
⛓️ 기존 기능에 미치는 영향
FeedbackService.search()시그니처가(Integer year, Integer round, PageOffset)에서(FeedbackSearchCondition, PageOffset)으로 바뀐다. 호출부(AppFeedbackController)만 있어 영향 범위는 그 안으로 한정된다.gradle :bootstrap:test(ArchUnit + Modulith) 통과 확인.🔀 Edge Case & 실패 시나리오
round <= 0요청 시 여전히INVALID_FEEDBACK_ROUND(400) — 발생 위치만search()내부에서FeedbackSearchCondition.of()로 이동했다.📋 검토한 대안과 선택 이유
FeedbackSearchCondition이라는 이름을 쓴 이유:FeedbackRound(관리자가 여는 접수 회차, 별개 엔티티)와 이름이 겹치지 않으면서도 "조회 조건"이라는 성격을 그대로 드러낸다.💬 리뷰 포인트
[r]OpenFeedback→Feedback리네임이 빠짐없이 반영됐는지(파일 7개 + 참조 2곳)[c]FeedbackSearchCondition의 위치·이름이 적절한지