Skip to content

32960 business emailer - special resolution updates#4557

Open
kialj876 wants to merge 1 commit into
bcgov:mainfrom
kialj876:32960-email-updates-special-res
Open

32960 business emailer - special resolution updates#4557
kialj876 wants to merge 1 commit into
bcgov:mainfrom
kialj876:32960-email-updates-special-res

Conversation

@kialj876

@kialj876 kialj876 commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Issue #: /bcgov/entity#32960

Description of changes:

  • moved special resolution into refactored filing_notification
  • Coop AR email is skipped (more clear now)
  • low chance email bug fix where get_user_email_from_auth doesn't have contacts on 404 return (happens for staff username sometimes in dev during alteration)
  • updated tests

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>

elif not is_coop:
# only add business email recipient for non-coop
else:

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.

the only case this was effecting for coops was annualReport which is now skipped earlier

@sonarqubecloud

sonarqubecloud Bot commented Jul 7, 2026

Copy link
Copy Markdown

if filing.filing_type in submitter_recipient_filings:
optional_email = filing.filing_json["filing"]["header"].get("documentOptionalEmail")
if filing.submitter_roles and UserRoles.staff in filing.submitter_roles and optional_email:
if filing.submitter_roles and UserRoles.staff in filing.submitter_roles:

@kialj876 kialj876 Jul 7, 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.

if this is true and theres no optional email we don't actually want it to add the staff user email (reason for the change)

@kialj876 kialj876 requested review from meawong and mruff-aeq July 7, 2026 18:53
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.

1 participant