Skip to content

AB#32455 update intake applicant electoral district handling and add corrective scripts#2220

Merged
JamesPasta merged 2 commits into
devfrom
bugfix/AB#32455-applicant-electoral-district-fix
Apr 7, 2026
Merged

AB#32455 update intake applicant electoral district handling and add corrective scripts#2220
JamesPasta merged 2 commits into
devfrom
bugfix/AB#32455-applicant-electoral-district-fix

Conversation

@AndreGAot
Copy link
Copy Markdown
Contributor

@AndreGAot AndreGAot commented Apr 2, 2026

update intake applicant electoral district handling and add corrective scripts

@AndreGAot AndreGAot requested a review from Copilot April 2, 2026 20:18
@AndreGAot AndreGAot marked this pull request as draft April 2, 2026 20:18
@AndreGAot AndreGAot changed the title AB#32455 update intake applicant electoral district handling and add … AB#32455 update intake applicant electoral district handling and add corrective scripts Apr 2, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 2, 2026

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

Result Count
✅ Passed 573
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

  • Merged Tests (HTML): Included in artifacts
    Generated automatically by CI.

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

Updates how the intake pipeline derives an applicant’s electoral district by refining the geocoding search address, adding more diagnostic logging and confidence handling, and introducing PowerShell utilities to validate and generate corrective SQL scripts for existing data.

Changes:

  • Replaced full formatted address usage with a geocoding-focused search address (Street, Street2, City).
  • Enhanced electoral district determination logging and added a low geocoder-score cutoff path.
  • Added scripts to (1) validate electoral districts via BC Geocoder + WFS and (2) generate PostgreSQL UPDATE statements for mismatches.

Reviewed changes

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

File Description
applications/Unity.GrantManager/src/Unity.GrantManager.Domain/Applications/ApplicantAddress.cs Renames/changes address composition to a geocoding “search address” (Street, Street2, City).
applications/Unity.GrantManager/src/Unity.GrantManager.Application/Intakes/Handlers/DetermineElectoralDistrictHandler.cs Uses the search address for geocoding; adds score-based handling and expanded logs.
applications/Unity.GrantManager/scripts/Validate-ElectoralDistricts.ps1 New script to audit electoral districts by geocoding unique addresses and querying WFS.
applications/Unity.GrantManager/scripts/Generate-ElectoralDistrictFixes.ps1 New script to generate SQL updates/nullifications based on validated CSV results and score threshold.

Comment thread applications/Unity.GrantManager/scripts/Validate-ElectoralDistricts.ps1 Outdated
Comment thread applications/Unity.GrantManager/scripts/Validate-ElectoralDistricts.ps1 Outdated
Comment thread applications/Unity.GrantManager/scripts/Generate-ElectoralDistrictFixes.ps1 Outdated
Comment thread applications/Unity.GrantManager/scripts/Generate-ElectoralDistrictFixes.ps1 Outdated
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 2, 2026

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

Result Count
✅ Passed 573
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

  • Merged Tests (HTML): Included in artifacts
    Generated automatically by CI.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 7, 2026

🧪 Unit Test Results (Parallel Execution)

Tests

📊 Summary

Result Count
✅ Passed 575
❌ Failed 0
⚠️ Skipped 0

📄 HTML Reports

  • Merged Tests (HTML): Included in artifacts
    Generated automatically by CI.

@AndreGAot AndreGAot requested a review from JamesPasta April 7, 2026 19:25
@AndreGAot AndreGAot marked this pull request as ready for review April 7, 2026 19:25
@JamesPasta JamesPasta merged commit f4b4caa into dev Apr 7, 2026
22 checks passed
@JamesPasta JamesPasta deleted the bugfix/AB#32455-applicant-electoral-district-fix branch April 7, 2026 23:01
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.

4 participants