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(appellate): Avoid uploading case summary with the wrong case_id #315

Merged
merged 5 commits into from
Jan 26, 2023

Conversation

ERosendo
Copy link
Contributor

@ERosendo ERosendo commented Jan 26, 2023

This PR fixes freelawproject/recap#330.

This PR introduces the following changes:

  • This commit adds a new helper function called getDocketNumber. This new helper uses different approaches to get the docket number from the appellate pages.

  • A new URL query parameter is added to the anchor's href attribute. This new query parameter is called recapCaseNum. This new parameter will be used as the last resource to get the docket number from an appellate page.

  • This PR updates the methods handleCaseSelectionPage, handleCaseQueryPage, attachRecapLinksToEligibleDocs, handleDocketDisplayPage and handleSingleDocumentPageView from the AppellateDelegate class to save the docket number to the tab storage.

  • Update the helper method called getCaseId to check the docket number of the appellate page before using the pacer_case_id saved in the local storage.

- This commit adds a new helper function called getDocketNumber. This new helper uses different approaches to get the docket number from the appellate pages.
- The method called findDocLinksFromAnchors is updated to add a new query parameter in the anchor's URL  called recapCaseNum
@ERosendo ERosendo self-assigned this Jan 26, 2023
@mlissner mlissner merged commit f75db24 into main Jan 26, 2023
@mlissner mlissner deleted the 330-fix-upload-with-wrong-id branch January 26, 2023 20:40
@mlissner
Copy link
Member

Looks good, I think. We'll see if it causes any trouble!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

The extension uploads Case Summaries using the wrong pacer_case_id
2 participants