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

RAC-478 fix : 페이지당 10개로 변경 #330

Merged
merged 1 commit into from
Dec 23, 2024
Merged

RAC-478 fix : 페이지당 10개로 변경 #330

merged 1 commit into from
Dec 23, 2024

Conversation

ywj9811
Copy link
Member

@ywj9811 ywj9811 commented Dec 23, 2024

🦝 PR 요약

페이지당 10개로 변경

✨ PR 상세 내용

20개 -> 10개 변경

🚨 주의 사항

주의할 부분이 무엇인가요? - 지우고 작성

✅ 체크 리스트

  • 리뷰어 설정했나요?
  • Label 설정했나요?
  • 제목 양식 맞췄나요? (ex. RAC-1 feat: 기능 추가)
  • 변경 사항에 대한 테스트 진행했나요?

Summary by CodeRabbit

  • New Features

    • Pagination size for payments, salaries, seniors, juniors, and wishes has been updated to return 10 items per page instead of 20.
  • Bug Fixes

    • Adjusted pagination behavior to ensure consistent data retrieval across various services.

@ywj9811 ywj9811 added the 🐞 BugFix 오류 수정 label Dec 23, 2024
@ywj9811 ywj9811 self-assigned this Dec 23, 2024
Copy link

coderabbitai bot commented Dec 23, 2024

Walkthrough

The pull request involves a consistent modification across multiple admin service classes in the project. In each service file, the page size constant has been reduced from 20 to 10, affecting pagination for various administrative functionalities such as payments, salaries, seniors, users, and wishes. This change will result in fewer records being returned per page across different administrative list retrieval methods, potentially impacting the user interface and data browsing experience.

Changes

File Change Summary
src/main/java/com/postgraduate/admin/domain/service/AdminPaymentService.java Reduced PAYMENT_PAGE_SIZE from 20 to 10
src/main/java/com/postgraduate/admin/domain/service/AdminSalaryService.java Reduced SALARY_PAGE_SIZE from 20 to 10
src/main/java/com/postgraduate/admin/domain/service/AdminSeniorService.java Reduced SENIOR_PAGE_SIZE from 20 to 10
src/main/java/com/postgraduate/admin/domain/service/AdminUserService.java Reduced JUNIOR_PAGE_SIZE from 20 to 10
src/main/java/com/postgraduate/admin/domain/service/AdminWishService.java Reduced WISH_PAGE_SIZE from 20 to 10

Poem

🐰 Pagination's Hop, a Rabbit's Tale
From twenty to ten, we trim the trail
Admin pages now more concise
Fewer records, but just as nice
A hop, a skip, a pagination delight! 🌟

Tip

CodeRabbit's docstrings feature is now available as part of our Early Access Program! Simply use the command @coderabbitai generate docstrings to have CodeRabbit automatically generate docstrings for your pull request. We would love to hear your feedback on Discord.


📜 Recent review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between ff57f1f and 19170a1.

📒 Files selected for processing (5)
  • src/main/java/com/postgraduate/admin/domain/service/AdminPaymentService.java (1 hunks)
  • src/main/java/com/postgraduate/admin/domain/service/AdminSalaryService.java (1 hunks)
  • src/main/java/com/postgraduate/admin/domain/service/AdminSeniorService.java (1 hunks)
  • src/main/java/com/postgraduate/admin/domain/service/AdminUserService.java (1 hunks)
  • src/main/java/com/postgraduate/admin/domain/service/AdminWishService.java (1 hunks)
🔇 Additional comments (6)
src/main/java/com/postgraduate/admin/domain/service/AdminPaymentService.java (1)

15-15: Pagination Size Successfully Updated to 10
This change aligns with the PR objective to reduce the default page size from 20 to 10.

src/main/java/com/postgraduate/admin/domain/service/AdminUserService.java (1)

17-17: Consistent Reduction of Junior Page Size
Good job keeping consistency across services by adjusting the page size from 20 to 10.

src/main/java/com/postgraduate/admin/domain/service/AdminWishService.java (1)

16-16: Wish Page Size Lowered as Planned
The pagination update from 20 to 10 supports the streamlined user experience goals.

src/main/java/com/postgraduate/admin/domain/service/AdminSeniorService.java (2)

22-22: Senior Page Size Adjustment
This finalizes the pagination changes in line with the overall PR objective.


22-22: Verify All References to the Old Page Size
Below is a script to confirm that no remaining “20” page size references exist:

✅ Verification successful

No References to Old Page Size Found
The codebase search shows that all PAGE_SIZE constants are consistently set to 10, including SENIOR_PAGE_SIZE and other pagination-related constants. No references to a page size of 20 were found in the codebase. The change appears to be consistently implemented.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Searching for any references to "PAGE_SIZE = 20" in the Java codebase:
rg 'PAGE_SIZE\s*=\s*20' --glob '*.java' -A 2

Length of output: 46


Script:

#!/bin/bash
# Let's search for any PAGE_SIZE constant declarations in Java files
rg 'PAGE_SIZE\s*=\s*\d+' --glob '*.java' -A 2

Length of output: 2177


Script:

#!/bin/bash
# Let's also search for any direct usage of the number 20 in pagination context
rg '(setPageSize|pageSize|size\s*=)\s*20' --glob '*.java' -A 2

Length of output: 64


Script:

#!/bin/bash
# Search for any pagination-related method calls with numeric arguments
rg '(setPageSize|pageSize|size)\s*\(\s*\d+\s*\)' --glob '*.java' -A 2

Length of output: 71

src/main/java/com/postgraduate/admin/domain/service/AdminSalaryService.java (1)

23-23: Confirm alignment with the new page size requirement.

Changing from 20 to 10 items per page matches the PR objective to reduce the number of items displayed per page. This is straightforward and consistent with the approach taken in other admin service classes. The rest of the pagination logic remains unchanged and appears correct.


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>, please review it.
    • 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 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 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 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. (Beta)
  • @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.

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.

@ywj9811 ywj9811 merged commit 4e79c62 into develop Dec 23, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 BugFix 오류 수정
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant