Skip to content

chore : import문 추가#356

Merged
crocusia merged 1 commit intodevfrom
chore/355
Aug 8, 2025
Merged

chore : import문 추가#356
crocusia merged 1 commit intodevfrom
chore/355

Conversation

@crocusia
Copy link
Copy Markdown
Member

@crocusia crocusia commented Aug 8, 2025

🔎 작업 내용

  • 누락된 import문 추가

close #355

Summary by CodeRabbit

해당 변경사항은 사용자에게 영향을 미치는 기능 변경이 없습니다.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Aug 8, 2025

Walkthrough

AiFeedbackStreamProcessor 클래스에 AiExceptionAiExceptionCode 예외 관련 import문이 추가되었습니다. 코드의 나머지 부분에는 변경 사항이 없습니다.

Changes

Cohort / File(s) Change Summary
AI 예외 import 추가
cs25-service/.../AiFeedbackStreamProcessor.java
AiException, AiExceptionCode import문 추가

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Assessment against linked issues

Objective Addressed Explanation
AI 채점 예외 import문 누락 (#355)

Poem

🐇
예외 import가 빠졌던 그 날,
토끼는 코드를 살짝 고쳐놨어요.
이제 AI 채점도 걱정 없겠죠?
작은 변화지만, 마음은 든든해요!

(import문 하나로 봄바람이 솔솔~)

Note

🔌 MCP (Model Context Protocol) integration is now available in Early Access!

Pro users can now connect to remote MCP servers under the Integrations page to get reviews and chat conversations that understand additional development context.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/355

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.
  • 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.

Support

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

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 generate unit tests to generate unit tests for 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.

@crocusia crocusia merged commit 1e9228b into dev Aug 8, 2025
1 of 2 checks passed
@crocusia crocusia deleted the chore/355 branch August 8, 2025 08:28
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
cs25-service/src/main/java/com/example/cs25service/domain/ai/service/AiFeedbackStreamProcessor.java (1)

142-150: SSE 에러 처리 단일화 제안: 중복 completeWithError 방지

현재 send()에서 completeWithError(e) 호출 후 RuntimeException을 재던지며, 업스트림에서도 doOnError(emitter::completeWithError)가 있어 이중 완료 시도가 발생할 수 있습니다. 에러 스톰/로그 폭증을 방지하고 도메인 예외로 일관성 있게 처리하는 편이 안전합니다.

권장: send()에서는 Emitter 완료를 직접 하지 말고, 도메인 예외만 던지도록 정규화하세요. 업스트림에서 단일 지점으로 완료 처리되게 합니다.

   private void send(SseEmitter emitter, String data) {
     try {
       emitter.send(SseEmitter.event().data(data));
     } catch (IOException e) {
       log.error("SSE send error: {}", e.getMessage(), e);
-      emitter.completeWithError(e);
-      throw new RuntimeException(e);
+      // 업스트림 doOnError / 외부 try-catch에서 단일 지점으로 완료 처리
+      throw new AiException(AiExceptionCode.INTERNAL_SERVER_ERROR);
     }
   }

보안 관점(DoS 완화)에서도 이중 완료/중복 로그를 줄이는 방향이 유리합니다.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between b43fff0 and 275d76b.

📒 Files selected for processing (1)
  • cs25-service/src/main/java/com/example/cs25service/domain/ai/service/AiFeedbackStreamProcessor.java (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📓 Common learnings
Learnt from: crocusia
PR: NBC-finalProject/CS25-BE#342
File: cs25-service/src/main/java/com/example/cs25service/domain/security/common/XssRequestWrapper.java:106-123
Timestamp: 2025-08-06T05:31:32.282Z
Learning: crocusia는 보안 문제, 특히 DoS 공격 방지에 대해 매우 강한 우선순위를 두고 있으며, 보안 취약점에 대해서는 "절대 막아"라는 표현을 사용할 정도로 강조한다.
🔇 Additional comments (1)
cs25-service/src/main/java/com/example/cs25service/domain/ai/service/AiFeedbackStreamProcessor.java (1)

7-8: 필수 예외 import 추가 검증 완료

AiException.javaAiExceptionCode.javacom.example.cs25service.domain.ai.exception 패키지에 올바르게 선언되어 있으며, 변경된 import 경로와 완전히 일치합니다. 더 이상의 조치가 필요 없습니다.

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.

AI 채점 예외 import문 누락

1 participant