Skip to content

Dev > Main 브랜치 병합#323

Merged
NamDoHyeon2 merged 2 commits intomainfrom
Dev
Jul 10, 2025
Merged

Dev > Main 브랜치 병합#323
NamDoHyeon2 merged 2 commits intomainfrom
Dev

Conversation

@NamDoHyeon2
Copy link
Copy Markdown
Collaborator

@NamDoHyeon2 NamDoHyeon2 commented Jul 10, 2025

  1. 알람 Response 구조에 replier 컬럼이 나오지 않는 버그를 수정하였습니다.
    통합 테스트 거친 뒤 Main 브랜치로 병합합니다.

Summary by CodeRabbit

  • 신규 기능

    • 문의 알림(Inquiry Alarm) 타입이 추가되어, 문의 관련 알림을 받을 수 있습니다.
  • 버그 수정

    • 알림 필터 및 리플라이 필터의 일부 항목명이 더 명확하게 수정되었습니다.
  • 기타

    • 알림 캐시가 새 알림 생성 시마다 자동으로 갱신되어, 실시간 알림 반영이 개선되었습니다.
    • 문의 및 신고 알림의 내부 식별 번호가 조정되었습니다.

1. 알람 Response 구조에 replier 컬럼이 나오지 않는 버그를 수정하였습니다.
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jul 10, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

이 변경은 InquiryAlarmEntity(문의 알람)에 대한 지원을 추가하여 AlarmDto의 정적 팩토리 메서드에서 다형적 처리 범위를 확장합니다. InquiryAlarmDto가 새로 도입되었으며, AlarmService에서는 알람 생성 시 UserAlarmService를 통해 사용자 알람 캐시를 갱신합니다. 관련 enum 및 상수의 값도 조정되었습니다.

Changes

파일/경로 요약 변경 내용 요약
.../domain/user/dto/AlarmDto.java AlarmDto.fromEntity에서 InquiryAlarmEntity 지원 추가 및 InquiryAlarmDto 반환 로직 도입
.../domain/user/dto/InquiryAlarmDto.java InquiryAlarmDto 신규 클래스 추가, InquiryAlarmEntity를 받아 생성자에서 필드 초기화
.../domain/user/dto/CommentAlarmDto.java ReplierFilter의 static import 범위를 COMMENT, RECOMMENT로 명시적으로 축소
.../domain/user/entity/alarm/InquiryAlarmEntity.java DiscriminatorValue와 필터 int값을 INQUIRY로 변경, 관련 상수 참조 수정
.../domain/user/service/AlarmService.java UserAlarmService 의존성 추가, 알람 생성 시 refreshCacheUserAlarm 호출 로직 추가
.../domain/user/service/UserAlarmService.java refreshCacheUserAlarm 메서드 접근제어자를 private에서 public으로 변경
.../global/common/enums/AlarmFilter.java INQUIRY enum 활성화 및 값 4로 지정, REPORT 값 5로 변경
.../global/common/enums/ReplierFilter.java RECOMMENT, INQUIRY, REPORT의 display name을 한글로 수정 및 "미구현" 문구 제거
.../global/constants/AlarmFilterConstants.java INQUIRY 및 INQUIRY_INT_VALUE 활성화, REPORT_INT_VALUE를 5로 변경

Sequence Diagram(s)

sequenceDiagram
    participant Client
    participant AlarmService
    participant UserAlarmService
    participant SSE

    Client->>AlarmService: sendAlarm(…)
    AlarmService->>AlarmService: save AlarmEntity
    AlarmService->>UserAlarmService: refreshCacheUserAlarm(userId)
    AlarmService->>SSE: sendAlarm(…)
Loading
sequenceDiagram
    participant InquiryAlarmEntity
    participant AlarmDto
    participant InquiryAlarmDto

    InquiryAlarmEntity-->>AlarmDto: fromEntity(entity)
    alt entity is InquiryAlarmEntity
        AlarmDto-->>InquiryAlarmDto: 생성 및 반환
    else entity is CommentAlarmEntity
        AlarmDto-->>CommentAlarmDto: 생성 및 반환
    else
        AlarmDto-->>AlarmDto: 기본 생성 및 반환
    end
Loading

Possibly related PRs

Poem

🐰
문의 알람이 찾아왔어요,
새 DTO가 반짝이며 인사하죠.
캐시도 싱싱하게 갱신되고,
enum 값도 정렬 완료!
알람의 세상, 점점 풍성해져요—
토끼는 오늘도 귀를 쫑긋 세워
새로운 알림을 기다려요!


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2a578cb and 119860d.

📒 Files selected for processing (9)
  • src/main/java/hs/kr/backend/devpals/domain/user/dto/AlarmDto.java (2 hunks)
  • src/main/java/hs/kr/backend/devpals/domain/user/dto/CommentAlarmDto.java (1 hunks)
  • src/main/java/hs/kr/backend/devpals/domain/user/dto/InquiryAlarmDto.java (1 hunks)
  • src/main/java/hs/kr/backend/devpals/domain/user/entity/alarm/InquiryAlarmEntity.java (2 hunks)
  • src/main/java/hs/kr/backend/devpals/domain/user/service/AlarmService.java (5 hunks)
  • src/main/java/hs/kr/backend/devpals/domain/user/service/UserAlarmService.java (1 hunks)
  • src/main/java/hs/kr/backend/devpals/global/common/enums/AlarmFilter.java (1 hunks)
  • src/main/java/hs/kr/backend/devpals/global/common/enums/ReplierFilter.java (1 hunks)
  • src/main/java/hs/kr/backend/devpals/global/constants/AlarmFilterConstants.java (1 hunks)
✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@NamDoHyeon2 NamDoHyeon2 merged commit 91d7740 into main Jul 10, 2025
1 check was pending
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