Skip to content

34585 - corps missing address warnings + reviewImportedData to-do - #4867

Merged
mruff-aeq merged 4 commits into
bcgov:mainfrom
mruff-aeq:34585-review-imported-data-todo
Oct 15, 2026
Merged

mruff-aeq merged 4 commits into
bcgov:mainfrom
mruff-aeq:34585-review-imported-data-todo

Conversation

@mruff-aeq

Copy link
Copy Markdown
Collaborator

*Issue:*bcgov/entity#34585
Description of changes: Corps now emit MISSING_REQUIRED_BUSINESS_INFO warnings (with officeType / partyId data) for registered/records office and active director addresses, and GET /tasks adds a reviewImportedData to-do when they exist and no draft is pending.

@mruff-aeq
mruff-aeq requested review from kialj876 and meawong and removed request for meawong October 14, 2026 18:54
@mruff-aeq
mruff-aeq requested a review from meawong October 14, 2026 18:59

@kialj876 kialj876 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good to me, just one minor comment below to confirm

Comment thread legal-api/src/legal_api/resources/v2/business/business_tasks.py
@mruff-aeq
mruff-aeq requested a review from kialj876 October 14, 2026 22:00
party = party_role.party
data = {"partyId": party.id}
result.extend(_with_data(
check_address(party.mailing_address, Address.MAILING, BusinessWarningReferers.DIRECTOR), data))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I noticed that this check seems to flag a missing postal code unconditionally, whereas postal-code requirements for director addresses are country-specific. Is this accounted for in the new corporation warning logic? Same applies for delivery address check below.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Good catch, it wasn't. check_address flagged a missing postal code regardless of country. Now it goes through the same NO_POSTAL_CODE_COUNTRY_CODES exemption as _validate_postal_code (moved the constant to services/utils.py so the warnings package can share it without importing the filing validators). Since the check is shared, firm party/office warnings get the same fix. Added cases for CA/US/HK/AE/unresolvable country on both the firms and corps side.

@sonarqubecloud

Copy link
Copy Markdown

@mruff-aeq
mruff-aeq merged commit fb08ff0 into bcgov:main Oct 15, 2026
8 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