Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: 리쿠르팅과 모집회차의 에러코드 분리 #475

Merged
merged 2 commits into from
Jul 17, 2024

Conversation

Sangwook02
Copy link
Member

@Sangwook02 Sangwook02 commented Jul 17, 2024

🌱 관련 이슈

📌 작업 내용 및 특이사항

📝 참고사항

📚 기타

Summary by CodeRabbit

  • 기능 변경
    • 모집 관련 오류 코드 업데이트:
      • 모집회차 모집기간 오류 코드 제거.
      • 학년도와 학기 유형이 일치하지 않는 오류 코드 제거.
      • 모집 기간이 2주 이내에 있지 않는 오류 코드 제거.
      • 새로운 오류 코드 추가: 모집회차가 존재하지 않음.
      • 모집 차수가 중복되는 오류 코드 수정.
      • 모집 시작일이 이미 지난 모집회차 오류 코드 수정.
      • 1차 모집이 존재하지 않는 오류 코드 수정.

@Sangwook02 Sangwook02 self-assigned this Jul 17, 2024
@Sangwook02 Sangwook02 requested a review from a team as a code owner July 17, 2024 13:06
Copy link

coderabbitai bot commented Jul 17, 2024

워크스루

ErrorCode 열거형이 리팩토링되었습니다. 모집과 모집 회차의 에러 코드가 분리되어 가독성을 높이고 유지보수를 용이하게 했습니다. 기존의 일부 에러 코드가 제거되었으며, 새로운 에러 코드가 추가되었습니다.

변경 사항

경로 변경 요약
src/main/java/com/gdschongik/gdsc/global/exception/ErrorCode.java 기존의 모집 회차 관련 에러 코드 제거, 새로운 에러 코드 추가 및 메시지 수정

연계된 이슈에 대한 평가

Objective Addressed Explanation
Recruitment와 RecruitmentRound의 ErrorCode 분리 (#457)

코드는 말하네, 분리된 길
오류도 이제는 헷갈리지 않게
모집과 회차가 각자 위치해
더 나은 가독성, 유지보수도 쉬워져
🐰✨🎉


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

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>.
    • Generate unit testing code for this file.
    • 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 generate unit testing code for this file.
    • @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 generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @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.

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 as 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 resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

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.

Copy link

Job Summary for Gradle

Check Style and Test to Develop :: build-test
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
gdsc check 8.5 Build Scan published

Copy link

@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

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 912371c and d2fba64.

Files selected for processing (1)
  • src/main/java/com/gdschongik/gdsc/global/exception/ErrorCode.java (1 hunks)
Additional comments not posted (4)
src/main/java/com/gdschongik/gdsc/global/exception/ErrorCode.java (4)

86-86: 추가된 모집회차 오류 코드 승인

RECRUITMENT_ROUND_NOT_FOUND 오류 코드가 추가되었으며, 모집회차가 존재하지 않을 때 발생하는 상황에 적합합니다.


86-86: 수정된 모집회차 오류 코드 승인

RECRUITMENT_ROUND_TYPE_OVERLAP 오류 코드가 수정되었으며, 모집 차수가 중복될 때 적절한 메시지를 제공합니다.


86-86: 수정된 모집회차 시작일 오류 코드 승인

RECRUITMENT_ROUND_STARTDATE_ALREADY_PASSED 오류 코드가 수정되었으며, 이미 시작일이 지난 모집회차에 대해 적절한 메시지를 제공합니다.


86-86: 수정된 1차 모집 오류 코드 승인

ROUND_ONE_DOES_NOT_EXIST 오류 코드가 수정되었으며, 1차 모집이 존재하지 않을 때 발생하는 상황에 적합합니다.

Copy link
Member

@AlmondBreez3 AlmondBreez3 left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@seulgi99 seulgi99 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@uwoobeat uwoobeat left a comment

Choose a reason for hiding this comment

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

PR 제목 ErrorCode나 에러코드...? 가 어떨까 싶어요
lgtm

@Sangwook02 Sangwook02 changed the title refactor: 리쿠르팅과 모집회차의 Errorcode 분리 refactor: 리쿠르팅과 모집회차의 에러코드 분리 Jul 17, 2024
@Sangwook02 Sangwook02 merged commit 3c6419e into develop Jul 17, 2024
1 check passed
@Sangwook02 Sangwook02 deleted the refactor/457-separate-recruitment-errorcode branch July 17, 2024 13:15
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.

♻️ Recruitment와 RecruitmentRound의 ErrorCode 분리
4 participants