Skip to content

fix: ranking range/#652#660

Merged
chaeyn merged 2 commits into
developfrom
fix/ranking-range/#652
Apr 11, 2026
Merged

fix: ranking range/#652#660
chaeyn merged 2 commits into
developfrom
fix/ranking-range/#652

Conversation

@hjbin-25

Copy link
Copy Markdown
Member

변경사항

  • GetRankingService: WEEK/MONTH/YEAR 랭킹 조회 시 minusWeeks/Months/Years(1) 사용으로 BETWEEN 양끝 포함(inclusive) 조건과 맞물려 기간이 하루 초과 조회되던 문제 수정
    (.plusDays(1) 추가)
  • GetRankingServiceTest: WEEK/MONTH/YEAR startDate 기대값 업데이트, SEASON 테스트 mock을 findCurrentSeason()findSeasonByDate()로 수정

관련 이슈

Closes #652 #658

추가 컨텍스트

  • BETWEEN startDate AND endDate는 양끝 포함이므로, 예를 들어 WEEK의 경우 today.minusWeeks(1) 사용 시 실제로 8일치가 조회됨. .plusDays(1)로 정확히 7일 범위로 조정
  • SEASON은 season.startDate()를 그대로 사용하므로 해당 없음

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request adjusts the date range calculations for weekly, monthly, and yearly rankings by adding a one-day offset to the start date, ensuring accurate period coverage. It also modifies the application configuration by removing default values for rate-limiting environment variables. A review comment identifies that removing these defaults could cause the application to fail at startup if the environment variables are not provided, suggesting they be restored for better robustness.

Comment thread src/main/resources/application.yml
@hjbin-25 hjbin-25 changed the base branch from main to develop April 10, 2026 00:24

@redjungi09 redjungi09 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@chaeyn chaeyn merged commit 4e79496 into develop Apr 11, 2026
1 check passed
@chaeyn chaeyn deleted the fix/ranking-range/#652 branch April 11, 2026 03:09
@Finefinee Finefinee added the bug 기능이 정상적으로 작동하지 않음 label Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug 기능이 정상적으로 작동하지 않음

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FIX] 랭킹 조회에서 날짜가 하루 누락됨

4 participants