Skip to content

Update dependencies and refactor ActiveAdmin filters for clarity#75

Merged
rsmoke merged 17 commits intomainfrom
staging
Mar 11, 2026
Merged

Update dependencies and refactor ActiveAdmin filters for clarity#75
rsmoke merged 17 commits intomainfrom
staging

Conversation

@rsmoke
Copy link
Copy Markdown
Member

@rsmoke rsmoke commented Mar 11, 2026

This pull request updates the admin filters for both Applications and Payments to improve searchability and disambiguate certain fields when filtering across associations. It also cleans up some legacy code and clarifies parameter handling in the admin interface. The most important changes are grouped below:

Improved Filtering in Admin Interfaces

  • Replaced the user_id filter in app/admin/applications.rb with separate filters for user_email, last_name, and first_name, making it easier to search applications by user details.
  • Updated filters in app/admin/payments.rb to allow filtering by payer_identity (user email), associated application last_name and first_name, and payment conference year (payments_conf_year). This provides more granular and user-friendly filtering options in the Payments admin.

Disambiguation and Ransack Customization

  • Added a custom Ransack ransacker for payments_conf_year in Payment, ensuring that filters on conference year are properly scoped to the payments table even when joining with associated tables.
  • Updated the list of ransackable attributes and corresponding test to include payments_conf_year.

Code Cleanup and Parameter Handling

  • Cleaned up commented-out code and clarified parameter usage in admin forms and filter definitions, improving maintainability and readability.

Minor Bug Fix

  • Fixed a bug in the manual payment link in app/admin/applications.rb to correctly pass user_id instead of the application object.

dependabot bot and others added 16 commits February 17, 2026 16:41
Bumps the bundler group with 1 update in the / directory: [rack](https://github.com/rack/rack).


Updates `rack` from 3.1.18 to 3.1.20
- [Release notes](https://github.com/rack/rack/releases)
- [Changelog](https://github.com/rack/rack/blob/main/CHANGELOG.md)
- [Commits](rack/rack@v3.1.18...v3.1.20)

---
updated-dependencies:
- dependency-name: rack
  dependency-version: 3.1.20
  dependency-type: indirect
  dependency-group: bundler
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps the npm_and_yarn group with 1 update in the / directory: [minimatch](https://github.com/isaacs/minimatch).


Updates `minimatch` from 3.1.2 to 3.1.4
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](isaacs/minimatch@v3.1.2...v3.1.4)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-version: 3.1.4
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
…9e58

Bump rack from 3.1.18 to 3.1.20 in the bundler group across 1 directory
…arn-c7796958eb

Bump minimatch from 3.1.2 to 3.1.4 in the npm_and_yarn group across 1 directory
Bumps the bundler group with 1 update in the / directory: [nokogiri](https://github.com/sparklemotion/nokogiri).


Updates `nokogiri` from 1.18.9 to 1.19.1
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md)
- [Commits](sparklemotion/nokogiri@v1.18.9...v1.19.1)

---
updated-dependencies:
- dependency-name: nokogiri
  dependency-version: 1.19.1
  dependency-type: indirect
  dependency-group: bundler
...

Signed-off-by: dependabot[bot] <support@github.com>
…44a8

Bump nokogiri from 1.18.9 to 1.19.1 in the bundler group across 1 directory
Bumps the npm_and_yarn group with 1 update in the / directory: [immutable](https://github.com/immutable-js/immutable-js).


Updates `immutable` from 4.3.5 to 4.3.8
- [Release notes](https://github.com/immutable-js/immutable-js/releases)
- [Changelog](https://github.com/immutable-js/immutable-js/blob/main/CHANGELOG.md)
- [Commits](immutable-js/immutable-js@v4.3.5...v4.3.8)

---
updated-dependencies:
- dependency-name: immutable
  dependency-version: 4.3.8
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
…istency. Updated manual payment link to use user_id directly from application object.
…ity. Removed commented-out code and streamlined user selection logic.
…ers for payer identity and payment conference year, while updating existing filters for user email, first name, and last name to ensure distinct values. Updated ransackable attributes in Payment model to include payments_conf_year.
…arn-e407d56523

Bump immutable from 4.3.5 to 4.3.8 in the npm_and_yarn group across 1 directory
…r user email, first name, and last name, ensuring distinct values are retrieved.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves ActiveAdmin filtering for Applications and Payments by replacing ambiguous/less-usable filters with more specific user- and application-attribute filters, and by adding a Ransack ransacker to disambiguate conf_year filtering on Payments when associations are joined.

Changes:

  • Refactors ActiveAdmin filters for Application and Payment to support filtering by user email and applicant name fields.
  • Adds a payments_conf_year Ransack ransacker and allows it via ransackable_attributes, updating the corresponding model spec.
  • Updates dependency lockfiles (Ruby gems and Yarn packages).

Reviewed changes

Copilot reviewed 4 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
app/admin/applications.rb Replaces user_id filter with user_email, first_name, last_name; fixes manual payment link param.
app/admin/payments.rb Replaces user_id/conf_year filters with payer_identity, applicant name filters across associations, and payments_conf_year.
app/models/payment.rb Adds payments_conf_year ransacker and whitelists it for Ransack.
spec/models/payment_spec.rb Updates Ransack whitelist spec to include payments_conf_year.
Gemfile.lock Bumps locked gem versions (e.g., nokogiri, rack).
yarn.lock Bumps locked package versions (e.g., immutable, minimatch).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

spelling fix

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@rsmoke rsmoke merged commit 3c96535 into main Mar 11, 2026
5 checks passed
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