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

fix: default page or items_per_page for when paginating using the get on list #177

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

phguyss
Copy link

@phguyss phguyss commented Oct 21, 2024

Pull Request Template for FastCRUD

Description

fixes: #175

Changes

Added default values for pagination (for when filling just page_number or just items_per_page)

Tests

Added tests to validate default page or default items_per_page on get list usage.

Checklist

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • I have added necessary documentation (if appropriate).
  • I have added tests that cover my changes (if applicable).
  • All new and existing tests passed.

Additional Notes

.

Copy link
Owner

@igorbenav igorbenav left a comment

Choose a reason for hiding this comment

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

Hey, @phguyss thanks for the great PR and nice catch🚀!

Can you please just add this behavior somehow in the docs and maybe in the docstrings as well? Just to document that this is a design decision

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.

Get list not paginating when only "itemsPerPage" is filled
2 participants