Skip to content

[release]모아동 BE v1.0.5 배포#608

Merged
lepitaaar merged 2 commits intomainfrom
develop/be
Jul 28, 2025
Merged

[release]모아동 BE v1.0.5 배포#608
lepitaaar merged 2 commits intomainfrom
develop/be

Conversation

@Zepelown
Copy link
Member

@Zepelown Zepelown commented Jul 28, 2025

#️⃣연관된 이슈

ex) #이슈번호, #이슈번호

📝작업 내용

  • 모집 정보 갱신과 조회에 외부 지원서 링크 필드 추가

중점적으로 리뷰받고 싶은 부분(선택)

리뷰어가 특별히 봐주었으면 하는 부분이 있다면 작성해주세요

ex) 메서드 XXX의 이름을 더 잘 짓고 싶은데 혹시 좋은 명칭이 있을까요?

논의하고 싶은 부분(선택)

논의하고 싶은 부분이 있다면 작성해주세요.

🫡 참고사항

Summary by CodeRabbit

  • 신규 기능
    • 동아리 모집 정보에 외부 지원서 URL을 추가하였습니다.
    • 동아리 상세 정보 조회 시 외부 지원서 URL이 표시됩니다.
    • 동아리 모집 정보 수정 시 외부 지원서 URL을 입력할 수 있습니다.

@vercel
Copy link

vercel bot commented Jul 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
moadong ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 28, 2025 1:23pm

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jul 28, 2025

Warning

.coderabbit.yaml has a parsing error

The CodeRabbit configuration file in this repository has a parsing error and default settings were used instead. Please fix the error(s) in the configuration file. You can initialize chat with CodeRabbit to get help with the configuration file.

💥 Parsing errors (1)
Validation error: Invalid regex pattern for base branch. Received: "**" at "reviews.auto_review.base_branches[0]"
⚙️ Configuration instructions
  • 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

Walkthrough

클럽 모집 정보에 외부 지원 URL을 나타내는 externalApplicationUrl 필드가 추가되었습니다. 이 필드는 엔티티, DTO, 업데이트 요청 객체에 일관되게 반영되었으며, 관련 메서드에서 해당 값을 처리하도록 수정되었습니다.

Changes

Cohort / File(s) Change Summary
엔티티 필드 및 갱신 메서드 추가
backend/src/main/java/moadong/club/entity/ClubRecruitmentInformation.java
externalApplicationUrl 필드 추가 및 updateDescription 메서드에서 해당 값 할당 로직 추가
DTO 필드 및 팩토리 메서드 확장
backend/src/main/java/moadong/club/payload/dto/ClubDetailedResult.java
DTO에 externalApplicationUrl 필드 추가 및 of(Club club) 팩토리 메서드에서 값 할당 로직 추가
요청 객체 필드 추가
backend/src/main/java/moadong/club/payload/request/ClubRecruitmentInfoUpdateRequest.java
externalApplicationUrl 필드 추가로 업데이트 요청에 외부 URL 포함 가능

Sequence Diagram(s)

sequenceDiagram
    participant Client
    participant Controller
    participant Service
    participant ClubRecruitmentInformation

    Client->>Controller: ClubRecruitmentInfoUpdateRequest (externalApplicationUrl 포함)
    Controller->>Service: updateClubRecruitmentInfo(request)
    Service->>ClubRecruitmentInformation: updateDescription(request)
    ClubRecruitmentInformation-->>Service: 필드 값들 갱신 (externalApplicationUrl 포함)
    Service-->>Controller: 처리 결과 반환
    Controller-->>Client: 응답 반환 (externalApplicationUrl 포함)
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~7 minutes

Possibly related PRs

Suggested labels

✨ Feature

Suggested reviewers

  • PororoAndFriends
  • seongwon030

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.

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

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

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
Member

@oesnuj oesnuj 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

@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: 1

🧹 Nitpick comments (1)
backend/src/main/java/moadong/club/payload/request/ClubRecruitmentInfoUpdateRequest.java (1)

12-12: URL 유효성 검증 추가를 고려해보세요.

외부 지원 URL 필드가 추가되었지만, URL 형식에 대한 유효성 검증이 없습니다. 잘못된 URL 형식이나 악성 URL로부터 보호하기 위해 검증 어노테이션 추가를 고려해보세요.

+import jakarta.validation.constraints.Pattern;
+import moadong.global.RegexConstants;

 public record ClubRecruitmentInfoUpdateRequest(
     LocalDateTime recruitmentStart,
     LocalDateTime recruitmentEnd,
     String recruitmentTarget,
     String description,
-    String externalApplicationUrl,
+    @Pattern(regexp = RegexConstants.URL, message = "URL 형식이 올바르지 않습니다.")
+    String externalApplicationUrl,
     List<Faq> faqs
 ) {
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between a02e2f4 and 2ff5a8d.

📒 Files selected for processing (3)
  • backend/src/main/java/moadong/club/entity/ClubRecruitmentInformation.java (2 hunks)
  • backend/src/main/java/moadong/club/payload/dto/ClubDetailedResult.java (2 hunks)
  • backend/src/main/java/moadong/club/payload/request/ClubRecruitmentInfoUpdateRequest.java (1 hunks)
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: Zepelown
PR: Moadong/moadong#406
File: backend/src/main/java/moadong/club/entity/ClubApplicationQuestion.java:32-33
Timestamp: 2025-05-15T12:03:57.356Z
Learning: 엔티티 클래스는 요청/응답 객체(DTO)에 의존해서는 안 됩니다. 계층 간 의존성 문제를 방지하기 위해 엔티티와 DTO는 분리되어야 합니다. 예를 들어, `ClubApplicationQuestion` 엔티티가 `ClubApplicationRequest.Options`와 같은 요청 객체를 직접 참조하는 대신, 엔티티 패키지 내에 `QuestionOptions`와 같은 별도의 클래스를 정의하고 사용해야 합니다. 이렇게 하면 요청 객체 변경이 데이터베이스 스키마나 엔티티 계층에 영향을 미치지 않습니다.
Learnt from: seongwon030
PR: Moadong/moadong#195
File: frontend/src/pages/AdminPage/AdminPage.tsx:7-7
Timestamp: 2025-03-19T05:18:07.818Z
Learning: AdminPage.tsx에서 현재 하드코딩된 클럽 ID('67d2e3b9b15c136c6acbf20b')는 로그인 기능 구현 후 동적으로 가져오는 방식으로 수정될 예정입니다.
Learnt from: lepitaaar
PR: Moadong/moadong#406
File: backend/src/main/java/moadong/club/service/ClubApplyService.java:34-38
Timestamp: 2025-05-19T05:45:52.957Z
Learning: The code duplication between createClubApplication and editClubApplication methods in ClubApplyService.java is acknowledged but will be addressed in a future refactoring, as per the developer's plan.
backend/src/main/java/moadong/club/payload/dto/ClubDetailedResult.java (1)

Learnt from: lepitaaar
PR: #406
File: backend/src/main/java/moadong/club/service/ClubApplyService.java:34-38
Timestamp: 2025-05-19T05:45:52.957Z
Learning: The code duplication between createClubApplication and editClubApplication methods in ClubApplyService.java is acknowledged but will be addressed in a future refactoring, as per the developer's plan.

🔇 Additional comments (2)
backend/src/main/java/moadong/club/entity/ClubRecruitmentInformation.java (2)

57-57: LGTM!

외부 지원 URL 필드가 다른 String 필드들과 일관되게 잘 선언되었습니다.


82-82: LGTM!

updateDescription 메서드에 외부 지원 URL 업데이트 로직이 기존 패턴과 일관되게 잘 추가되었습니다.

Comment on lines +71 to +72
.externalApplicationUrl(club.getClubRecruitmentInformation().getExternalApplicationUrl()== null ? "" :
club.getClubRecruitmentInformation().getExternalApplicationUrl())
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

코드 포맷팅 수정 및 일관성 개선이 필요합니다.

몇 가지 개선점이 있습니다:

  1. == null 앞에 공백이 누락되었습니다
  2. 다른 필드들과 달리 로컬 변수 clubRecruitmentInformation을 사용하지 않아 일관성이 떨어집니다
  3. 동일한 메서드를 두 번 호출하는 중복이 있습니다
-                .externalApplicationUrl(club.getClubRecruitmentInformation().getExternalApplicationUrl()== null ? "" :
-                        club.getClubRecruitmentInformation().getExternalApplicationUrl())
+            .externalApplicationUrl(clubRecruitmentInformation.getExternalApplicationUrl() == null ? ""
+                : clubRecruitmentInformation.getExternalApplicationUrl())
🤖 Prompt for AI Agents
In backend/src/main/java/moadong/club/payload/dto/ClubDetailedResult.java around
lines 71 to 72, fix the formatting by adding a space before '== null' for
readability, use a local variable to store club.getClubRecruitmentInformation()
to maintain consistency with other fields, and avoid calling
getExternalApplicationUrl() twice by reusing the local variable. This will
improve code clarity and reduce redundant method calls.

Copy link
Member

@seongwon030 seongwon030 left a comment

Choose a reason for hiding this comment

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

배포가보자~

Copy link
Contributor

@lepitaaar lepitaaar left a comment

Choose a reason for hiding this comment

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

수고하셨어요

@lepitaaar lepitaaar merged commit 22053e7 into main Jul 28, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💾 BE Backend 📈 release 릴리즈 배포

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments