Conversation
[FEAT] 반응성 기반 핫이슈 로직 구현 (#82)
- Vote 엔티티에 content 핑드 추가 (text, nullable) - VoteCreateRequest, VoteDetailResponse, VoteResponseDto에 content 필드 추가 - HotIssueVoteResponse에 content 필드 추가 - VoteServiceImpl에서 content 처리 로직 구현 - 투표 생성, 상세 조회, 핫이슈, 트렌딩에서 content 반환 - Swagger 테스트를 위해 로컬 개발 서버 추가
feat: develop.valanse.kr CORS 설정 추가
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Free Run ID: ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (59)
Walkthrough이 PR은 GitHub Actions 기반의 CI/CD 배포 워크플로우(개발/운영)를 추가하고, JWT 토큰 필터를 Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant ReportController
participant ReportService
participant VoteRepository
participant CommentRepository
participant ReportRepository
participant Database
Client->>ReportController: POST /report/{targetId}<br/>(ReportRequest)
ReportController->>ReportController: 인증 사용자 조회<br/>(SecurityContextHolder)
ReportController->>ReportService: report(member,<br/>targetId, reportType)
alt reportType == VOTE
ReportService->>VoteRepository: findByIdAndDeletedAtIsNull(targetId)
VoteRepository->>Database: SELECT * FROM vote
Database-->>VoteRepository: Vote
ReportService->>ReportService: 대상자 == 신고자?
ReportService->>ReportRepository: existsByMember...(member,<br/>reportType, targetId)
ReportRepository->>Database: SELECT COUNT(*)
Database-->>ReportRepository: count
else reportType == COMMENT
ReportService->>CommentRepository: findByIdAndDeletedAtIsNull(targetId)
CommentRepository->>Database: SELECT * FROM comment
Database-->>CommentRepository: Comment
ReportService->>ReportService: 대상자 == 신고자?
ReportService->>ReportRepository: existsByMember...(member,<br/>reportType, targetId)
ReportRepository->>Database: SELECT COUNT(*)
Database-->>ReportRepository: count
end
ReportService->>ReportRepository: save(Report)
ReportRepository->>Database: INSERT INTO report
Database-->>ReportRepository: saved Report
ReportRepository-->>ReportService: Report
ReportService-->>ReportController: void
ReportController-->>Client: HTTP 200
Estimated code review effort🎯 4 (Complex) | ⏱️ ~65 minutes Poem
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. Comment |
dev에서 main으로 머지 테스트 + CI/CD 확인
Summary by CodeRabbit
릴리스 노트
New Features
Bug Fixes
Refactor
Tests
Chores