Repository navigation
fix: keep claim and tracker filters when paginating - #401
Draft
Justin Hammond (Justintime50) wants to merge 3 commits into
Draft
Justin Hammond (Justintime50) wants to merge 3 commits into
Justin Hammond (Justintime50) wants to merge 3 commits into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes next-page bugs:
get_next_pagefor claims, events, insurances, pickups, refunds, scan forms, shipments and trackers dropped thestart_datetimeandend_datetimefilters of the originalallcall. They are now saved with the other filters and re-sent.claim.get_next_pagedropped thetypeandstatusfilters of the originalallcall. They are now re-sent too.tracker.get_next_pagedropped thetracking_codesfilter of the originalallcall. It is now re-sent liketracking_codeandcarrier.Addresses, child users, referral customers and reports are left alone because the API ignores those date filters after the first page.
Testing
test_claim_get_next_page_keeps_filtersandtest_tracker_get_next_page_keeps_tracking_codes, which mock the requests liketest_get_next_page_collects_all_pagesand check the next-page params.just lintandjust mypypass.Pull Request Type