Skip to content

Conversation

@Soundbar91
Copy link
Collaborator

🔍 개요

  • 동아리 공부 시간 랭킹 업데이트 스케줄러를 추가합니다.

🚀 주요 변경 내용

동아리 공부 시간 랭킹 업데이트 스케줄러 추가

  • 5분에 한 번씩 스케줄러가 돕니다.
  • 랭킹에 등록된 동아리의 멤버 조회 -> 각 멤버의 공부시간(일간, 월간) 조회 -> 각 동아리에 소속된 멤버의 공부시간(일간, 월간) 합산 -> 동아리 공부 시간 랭킹 업데이트 플로우로 진행됩니다.

💬 참고 사항


✅ Checklist (완료 조건)

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

@Soundbar91 Soundbar91 requested a review from dh2906 January 7, 2026 06:29
@Soundbar91 Soundbar91 self-assigned this Jan 7, 2026
@Soundbar91 Soundbar91 added the 기능 새로운 기능을 개발합니다. label Jan 7, 2026
…o feat/CAM-151-club-studytime-ranking-scheduler

# Conflicts:
#	src/main/java/gg/agit/konect/domain/studytime/repository/StudyTimeRankingRepository.java
Copy link
Contributor

@dh2906 dh2906 left a comment

Choose a reason for hiding this comment

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

고생하셨습니다!

RankingType rankingType = rankingTypeRepository.getByNameIgnoreCase(RANKING_TYPE_CLUB);
List<StudyTimeRanking> studyTimeRankings = studyTimeRankingRepository.findByRankingTypeId(rankingType.getId());
if (studyTimeRankings.isEmpty()) {
return ;
Copy link
Contributor

Choose a reason for hiding this comment

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

여기 공백 들어가있어요!!

private final StudyTimeSchedulerService studyTimeSchedulerService;

@Scheduled(fixedDelay = 5, timeUnit = MINUTES)
public void clubStudyTimeRankingUpdate() {
Copy link
Contributor

Choose a reason for hiding this comment

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

스케줄러의 메소드 네이밍은 update가 뒤에 있는 이유가 있나요? 👀

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

큰 이유는 없었는데, 행위를 앞에 적는게 좋아보이네염

Soundbar91 and others added 2 commits January 8, 2026 10:50
* feat: 개인 공부 시간 랭킹 업데이트 스케쥴링 추가

* feat: 학번 공부 시간 랭킹 업데이트 스케쥴링 추가 (#108)

Co-authored-by: soundbar91 <[email protected]>

---------

Co-authored-by: soundbar91 <[email protected]>
@github-actions
Copy link

github-actions bot commented Jan 8, 2026

⚠️ Checkstyle 위반 사항 발견

Checkstyle 검사에서 코딩 컨벤션 위반이 발견되었습니다.

📋 상세 리포트

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

기능 새로운 기능을 개발합니다.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants