Skip to content

32958 Business Emailer - updates for reg and cor#4542

Open
kialj876 wants to merge 7 commits into
bcgov:mainfrom
kialj876:32958-email-update-reg-cor
Open

32958 Business Emailer - updates for reg and cor#4542
kialj876 wants to merge 7 commits into
bcgov:mainfrom
kialj876:32958-email-update-reg-cor

Conversation

@kialj876

Copy link
Copy Markdown
Collaborator

Issue #: /bcgov/entity#32958

Description of changes:

  • moved registration and change of registration into the filing_notification branch and updated their templates to the new markdown design

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the lear license (Apache 2.0).

Signed-off-by: Kial Jinnah <kialj876@gmail.com>
Signed-off-by: Kial Jinnah <kialj876@gmail.com>
Comment thread queue_services/business-emailer/src/business_emailer/email_processors/__init__.py Outdated
Signed-off-by: Kial Jinnah <kialj876@gmail.com>
Comment thread queue_services/business-emailer/src/business_emailer/email_processors/__init__.py Outdated
kialj876 added 2 commits June 30, 2026 09:27
Signed-off-by: Kial Jinnah <kialj876@gmail.com>
Signed-off-by: Kial Jinnah <kialj876@gmail.com>
@kialj876 kialj876 requested a review from mruff-aeq June 30, 2026 15:07
if identifier[:2] != "CP":
# only add recipients if not coop
recipients = get_recipient_from_auth(identifier, token)
identifier = filing_json["filing"]["business"]["identifier"]

@mruff-aeq mruff-aeq Jun 30, 2026

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.

get_recipients reads filing_json["filing"]["business"]["identifier"] directly (line 66), but new business filings like incorporation and registration don't have a business block yet (your own prep_registration_filing deletes it for PAID), so this'll throw a KeyError on something like a future-effective incorporation

can we guard it with .get("business", {})?

@kialj876 kialj876 Jun 30, 2026

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.

This is actually required by the schema so it will always be there. In the case of a bootstrap filing (incorp/amalg/cont in/registration) this would be a temporary identifier (regardless if its future effective or not). I will update the tests so that its realistic / more clear

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.

Okay I adjusted a couple things to make it more clear about the temp reg and made the tests setup more realistic

kialj876 added 2 commits June 30, 2026 14:32
Signed-off-by: Kial Jinnah <kialj876@gmail.com>
Signed-off-by: Kial Jinnah <kialj876@gmail.com>
@sonarqubecloud

sonarqubecloud Bot commented Jun 30, 2026

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

Issues
0 New issues
1 Accepted issue

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

@kialj876 kialj876 requested a review from mruff-aeq June 30, 2026 18:45
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