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

Improve performance of case contacts index action using pagination #6208

Conversation

Kerman07
Copy link
Contributor

@Kerman07 Kerman07 commented Feb 2, 2025

What github issue is this PR for, if any?

Resolves #6201

What changed, and why?

Added pagination to the case contacts index action, that fixes a lot of the performance issues.

How is this tested? (please write tests!) 💖💪

Screenshots please :)

Before:
Screenshot 2025-02-02 at 23 38 00

After:
Screenshot 2025-02-02 at 22 57 25

Feelings gif (optional)

@github-actions github-actions bot added dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code erb labels Feb 2, 2025
@Kerman07 Kerman07 force-pushed the improve-case-contacts-index-performance-with-pagination branch 2 times, most recently from 3f46463 to 076ef75 Compare February 2, 2025 23:10
@@ -32,6 +32,7 @@ gem "net-pop" # needed for ruby upgrade to 3.1.0 https://www.ruby-lang.org/en/ne
gem "net-smtp", require: false # needed for ruby upgrade to 3.1.0 for some dang reason
gem "noticed" # Notifications
gem "oj" # faster JSON parsing 🍊
gem "pagy" # pagination
Copy link
Collaborator

Choose a reason for hiding this comment

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

@compwron
Copy link
Collaborator

compwron commented Feb 3, 2025

This looks very promising! Please fix the tests in CI and then we will merge! :)

@Kerman07 Kerman07 force-pushed the improve-case-contacts-index-performance-with-pagination branch 3 times, most recently from 542533b to db0ce5c Compare February 3, 2025 22:02
@Kerman07 Kerman07 force-pushed the improve-case-contacts-index-performance-with-pagination branch from db0ce5c to bfc1d02 Compare February 3, 2025 22:38
@Kerman07
Copy link
Contributor Author

Kerman07 commented Feb 3, 2025

@compwron CI tests are passing now.

Copy link
Collaborator

@compwron compwron left a comment

Choose a reason for hiding this comment

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

nice!

@compwron compwron merged commit b130020 into rubyforgood:main Feb 4, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file erb ruby Pull requests that update Ruby code Tests! 🎉💖👏
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve performance in CaseContactsController#index
2 participants