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

Remove autofill 1 #1734

Merged
merged 4 commits into from
Jul 27, 2024
Merged

Remove autofill 1 #1734

merged 4 commits into from
Jul 27, 2024

Conversation

emko-274
Copy link
Contributor

Removed OSP court autofill and updated tests to reflect changes. This was erroneously listed as a fix in the description of pull request #1733.

Copy link
Contributor

@wittejm wittejm left a comment

Choose a reason for hiding this comment

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

needs a few changes, but after that looks good to merge.

@@ -396,7 +396,8 @@ def extra_mappings(self):
# Is the OSP Form
osp_fields: Dict[str, object] = {}
for i in range(10):
osp_fields[f"(Court {i+1})"] = f"Circuit Court for {s.counties_with_cases_to_expunge[i]} County" if i<len(s.counties_with_cases_to_expunge) else ""
#osp_fields[f"(Court {i+1})"] = f"Circuit Court for {s.counties_with_cases_to_expunge[i]} County" if i<len(s.counties_with_cases_to_expunge) else ""
osp_fields[f"(Court {i+1})"] = ""
if s.has_eligible_convictions:
osp_fields["(Include a Conviction Yes)"] = True
Copy link
Contributor

Choose a reason for hiding this comment

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

This part should also be removed: we don't want to check the box anymore, until the whole thing is fixed.

@@ -39,6 +39,7 @@ def handle_person(output, client, row):
aliases = [alias]
response = client.post("http://localhost:5000/api/search", json={"aliases": aliases})
record = json.loads(response.text)["record"]
print(record)
Copy link
Contributor

Choose a reason for hiding this comment

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

✂️

@@ -705,4 +706,5 @@ def counties_with_cases_to_expunge(all_case_results: List[CaseResults]):
if case_result.case.summary.balance_due_in_cents != 0:
counties_with_balances.append(case_result.case.summary.location)
counties_with_expungements = [county for county in counties_with_eligible_charge if county not in counties_with_balances]
return counties_with_expungements
return []
Copy link
Contributor

Choose a reason for hiding this comment

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

Not a big deal since the result of this function isn't used anymore, but I think this change in particular is confusing since it breaks the functionality. I would either leave it alone or comment out the function.

@emko-274 emko-274 merged commit 0f537d9 into codeforpdx:master Jul 27, 2024
3 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.

3 participants