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 number of purchases appearing on paginated purchases #4854

Merged
merged 1 commit into from
Dec 14, 2024

Conversation

cielf
Copy link
Collaborator

@cielf cielf commented Dec 14, 2024

Description

Fixes an issue found while testing #4847 -- the number of purchases actually appearing in the purchase index was the number of filtered purchases, not the number of paginated filtered purchases

Most banks don't make 50 purchases a year, so this hasn't had a large impact.

Very simple fix (one variable name change), plus tests.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

  • automated tests
  • also temporarily reduced config.default_per_page in config/initializers/kaminari.rb to 3 to manually test on local.

@dorner dorner merged commit 4138837 into rubyforgood:main Dec 14, 2024
11 checks passed
@dorner
Copy link
Collaborator

dorner commented Dec 14, 2024

Nice!

Copy link
Contributor

@cielf: Your PR fix number of purchases appearing on paginated purchases is part of today's Human Essentials production release: 2024.12.15.
Thank you very much for your contribution!

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