Skip to content

fix: keep claim and tracker filters when paginating - #391

Draft
Justin Hammond (Justintime50) wants to merge 4 commits into
masterfrom
fix_next_page_filters
Draft

Justin Hammond (Justintime50) wants to merge 4 commits into
masterfrom
fix_next_page_filters

Conversation

@Justintime50

@Justintime50 Justin Hammond (Justintime50) commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Description

Fixes next-page bugs:

  • ClaimService.all stored the status filter into type, so claim.getNextPage sent the status as the type and dropped the status. It also called params.remove(type)/params.remove(status) with the values instead of keys, which did nothing; those lines are removed so type and status keep going out as query filters.
  • ReportService.all called params.remove(type) with the value, so type was sent as a query param. It now removes the type key from a copy of the params, which also stops it mutating the caller's map.
  • getNextPage for claims, events, insurances, pickups, refunds, scan forms, shipments and trackers now re-sends the start_datetime and end_datetime filters of the original all call (only when given, stored as passed so non-String dates keep working).
  • tracker.getNextPage now re-sends the tracking_codes filter of the original all call when it's a list; TrackerCollection already had the field, but TrackerService.all never set it.

Addresses, child users, referral customers and reports are left alone because the API ignores those date filters after the first page.

Testing

  • The full test suite passes. The report cassettes had type=shipment in the recorded query, so I removed it from those URIs to match the corrected request.
  • Checkstyle passes.

Pull Request Type

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

@Justintime50 Justin Hammond (Justintime50) changed the title fix: keep claim and report filters when paginating fix: keep claim and tracker filters when paginating Nov 30, 2026

This branch has not been deployed

No deployments
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.

1 participant