Skip to content

Conversation

@dh2906
Copy link
Contributor

@dh2906 dh2906 commented Jan 24, 2026

🔍 개요


🚀 주요 변경 내용

  • GET /clubs 에서 쿼리 파라미터인 isRecruitingfalse인 경우 모집 중인 동아리를 우선적으로 정렬하여 조회할 수 있도록 수정했습니다.

💬 참고 사항


✅ Checklist (완료 조건)

  • 코드 스타일 가이드 준수
  • 테스트 코드 포함됨
  • Reviewers / Assignees / Labels 지정 완료
  • 보안 및 민감 정보 검증 (API 키, 환경 변수, 개인정보 등)

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

이 PR은 동아리 목록 조회 API(GET /clubs)에서 모집 중인 동아리를 우선적으로 표시하도록 개선하는 작업입니다. isRecruiting 파라미터가 false일 때(기본값) 전체 동아리를 조회하되 모집 중인 동아리를 먼저 정렬하여 보여주도록 변경했습니다.

Changes:

  • createOngoingRecruitmentCondition() 메서드를 추가하여 모집 중인 동아리 판별 로직을 재사용 가능하게 개선
  • isRecruiting=false일 때 모집 중인 동아리를 먼저 정렬하는 로직 추가
  • isRecruiting=true일 때 상시 모집 동아리를 포함하도록 필터링 조건 수정 (기존 버그 수정)
  • 모집 마감일 기준 정렬 로직 개선 (상시 모집 동아리는 마지막에 배치)
  • API 문서 업데이트

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/main/java/gg/agit/konect/domain/club/repository/ClubQueryRepository.java 동아리 조회 및 정렬 로직 개선: 모집 상태 판별 메서드 추가, 필터링 및 정렬 조건 수정
src/main/java/gg/agit/konect/domain/club/controller/ClubApi.java API 문서 업데이트: isRecruiting 파라미터별 동작 설명 추가

@dh2906 dh2906 merged commit 5b9989e into main Jan 24, 2026
7 checks passed
@dh2906 dh2906 deleted the feat/CAM-186-get-clubs-order-by-recruiting branch January 24, 2026 06:59
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.

2 participants