Skip to content

[SPIKE] Handle empty mailing address for accounts created via BAR feature #31869

Closed

Description

@OlgaPotiagalova

In BAR functionality, the mailing address is not a mandatory field. This was implemented intentionally (to be clarified).

In business registration filings, the completing party information is mandatory and is populated using the mailing address from the account. If the mailing address is missing, the user does not have an option to enter it during the filing, and the filing cannot be completed.

We need to encourage users who created an account via BAR and whose affiliated businesses were migrated to BR to complete their accounts by adding a mailing address.

Tasks:

  • To outline options with pros and cons;
  • Estimate each option
  • Recommend a solution

Note:
OCM will have to inform those users that their account is incomplete in the BR, and they need to update it next time they login.

Activity

  1. added
    Entities Team
    on Jan 6, 2026
  2. severinbeauvais commented on Jan 6, 2026

    @severinbeauvais
    Collaborator

    Background

    (This was updated on Jan 8 by SB.)

    Before a recent change, some UIs would display an error dialog on load if account mailing address was empty. Refs:

    Presently, Edit UI loads when there is no account mailling address. (The address is initialized to empty.) However, a number of filings may use this address internally and may fail on submission. See Updated Analysis comment (dated Jan 8) below.

    Presently, Create UI can fail to load when there is no account mailing address. This is due to a check on loading. If this check is bypassed -- for example if the current user is allowed a blank completing party, ie. staff -- then the UI loads. See Updated Analysis comment (dated Jan 8) below.

    Options

    1. Remove requirement for account mailing address

    • auth/business/legislative requirements?
    • UI/UX updates
    • schema updates
    • API validation updates
    • output updates
    • other changes down the line?

    2. Flag missing mailing address at point of consumption

    For example, when Create UI loads, if there is no account mailing address then display an error dialog with instructions on what's needed and perhaps a link to the account address change page.

    Alternately, display an error dialog if the account mailing address is missing but is required for the subject filing. (Ie, don't show for all filings.)

    3. Flag missing mailing address in business dashboard

    When Business Dashboard UI loads, if there is no account mailling address then display an alert and block (all?) filings until this is resolved.

    • UI code to display new alert
    • API code to trigger new alert
    • this alert displays on the business page but it's an account issue -- a different account (with a mailing address) wouldn't see this issue -- so it's weird
  3. janisrogers commented on Jan 6, 2026

    @janisrogers
    Collaborator

    Option 1 makes the most sense to me. If the mailing address is not available from the account we could allow the user to fill it in. Colin has always required that the completing party fill in their mailing address when registering a business, so I don't think there would be any legal/business objections to this. The question (for me) is if we should update the account settings with this address, and if so, how we let the user know.

  4. severinbeauvais commented on Jan 6, 2026

    @severinbeauvais
    Collaborator

    Recommendation

    Option 1 is the most work, and may cause future issues (as we'd leave account mailing address empty).

    Option 2 is direct and helpful. This is my choice.

    Option 3 is also direct and helpful but displays an account-specific issue on the business dashboard, which is why I don't like this one.

  5. severinbeauvais commented on Jan 6, 2026

    @severinbeauvais
    Collaborator

    Option 4 - Fix specific filings (Janis' suggestion)

    We could allow users into filings without an account email mailing address, but let them enter/edit the Completing Party address in the filing so it doesn't fail.

    • this doesn't back-fill in the account email mailing address, so we're not fixing the root cause
      • I think it would be better to redirect the user to the account address change page
    • this "patches" filings one by one instead of having a global fix/mitigation
      • there may be other issues later or down the line
    • this could be a lot of UI and testing work if it touches many filings

    I don't recommend this option. See my updated opinion in comments below.

  6. severinbeauvais commented on Jan 6, 2026

    @severinbeauvais
    Collaborator

    @OlgaPotiagalova @TVWerdal Please review and let me know if you want to discuss. Thanks.

  7. janisrogers commented on Jan 6, 2026

    @janisrogers
    Collaborator

    My problem with 2 and 3 is that they both imply the user has done something wrong when they haven't. I am also wondering if we actually need the mailing address of the completing party. Do we ever send mail to them? Perhaps we should just stop collecting that information.

    If we do need the mailing address, couldn't we have them fill in the mailing address on the page and ask if they want to save the mailing address in their account

    @severinbeauvais I am a little confused by your comment about the email address. Isn't this ticket about an empty mailing address?

  8. janisrogers commented on Jan 6, 2026

    @janisrogers
    Collaborator

    If we let other products know that the account information may or may not contain the mailing address, they could then adopt a similar solution (ie let the user enter the information and save it to the account if desired).

  9. severinbeauvais commented on Jan 6, 2026

    @severinbeauvais
    Collaborator

    they both imply the user has done something wrong when they haven't

    I'd argue they have, since their account setup is incomplete.

    @severinbeauvais I am a little confused by your comment about the email address. Isn't this ticket about an empty mailing address?

    Oops, fixed!

  10. severinbeauvais commented on Jan 6, 2026

    @severinbeauvais
    Collaborator

    If we continue to record the Completing Party then it must satisfy the party schema -- or we need to change a lot of things to record and store it differently.

    I'm warming up to Option 4. I'm not sure how many filings are affected but it might not be that bad to just prompt the user for the Completing Party mailing address when needed.

    As for setting the account mailing address when they enter it in a filing, that's getting complicated as it's an extra call to Auth API and independent of the subject filing. However, we could handle this similarly to account email and phone (eg, in an alteration).

    The Auth API call to update the account mailing address:
    Image

    Do we know which filings fail when the account has no mailing address? (From looking through code, I think only Firm Dissolution uses account mailing address without giving the user a change to update it as part of the Completing Party record.)

  11. severinbeauvais commented on Jan 8, 2026

    @severinbeauvais
    Collaborator

    Updated analysis

    Note that I looked through the Create UI code and Edit UI code to see which filings use the account mailing address. I didn't test all the filings to confirm my findings. It's also possible that the Business API accepts empty mailing addresses in some cases.

    Create UI

    As mentioned above, Create UI throws a startup error when there is no account mailing address and the user doesn't have permission to skip it. Otherwise, the following will happen.

    1. The account mailing address is fetched from Auth API.

    2. The account mailing address is stored as the "user address", which is used to pre-populate the Completing Party for all filings that require the user to enter a Completing Party (Amalgamation, Continuation In, Incorporation, Registration, Restoration).

      • I think this will succeed if the user address is empty because the user has to manually enter the Completing Party, including mailing address if not pre-populated
    3. The account mailing address is stored for the "completing party", which is automatically added to a firm dissolution's JSON.

      • I think this WILL FAIL if the completing party address is empty because the API validation will fail
      • it should be straightforward (3 pts) to prompt the user for the completing party info instead (consistent with the other filings)

    Edit UI

    1. The account mailing address is fetched from Auth API.

    2. The account mailing address is stored for the "completing party".

    3. The Completing Party is displayed for the following filings (and editable if the user has permission):

      • Change
      • Conversion
      • Special Resolution
      • Correction - User (Coop, Corp and Firm)
    4. The Completing Party is automatically added to the following filings' JSON (whether it was editable or not in step 3):

      • Correction
      • Change
      • Conversion
      • it appears that Alteration doesn't save completing party (or any party) even though it was displayed and possibly editable ***
      • it appears that Special Resolution doesn't save completing party (or any party) even though it was displayed and possibly editable ***
      • it appears that Restoration doesn't save completing party (though it saves other parties)

    Hence, I expect the following:

    • Change filings (as regular user, hence cannot edit the Completing Party) WILL FAIL on submit if the account mailing address is empty
    • Change filings (as staff, where Completing Party is editable) will succeed on submit
    • Conversion filings (staff-only, hence CP is editable) will succeed on submit
    • Correction-User filings (staff-ony, hence CP is editable) will succeed on submit
    • Alteration filings will succeed because CP is not part of filing JSON
    • Special Resolution filings will succeed because CP is not part of filing JSON
    • Restoration filings will succeed because CP is not part of filing JSON
    • Alteration filings will succeed because CP is not displayed or part of filing JSON
  12. OlgaPotiagalova commented on Jan 8, 2026

    @OlgaPotiagalova
    CollaboratorAuthor

    In some products/components mailing address from user account is mandatory (Entities, Pay, originally STRR, newly simplified account creation flow) where in others is not (BAR, STRR - lifted the requirement). It looks like decisions are driven by the product specific requirements rather than by the system and process requirements. However the address might be needed for other purposes, such as cheque refunds, etc.

    We are parking it until the decision is reached for mailing address a mandatory or optional requirement across the system and processes. RAID ticket https://github.com/bcgov-registries/raid/issues/753

  13. thorwolpert commented on Jan 9, 2026

    @thorwolpert
    Collaborator

    There is a current RAID discussion underway on Addresses in Accounts. My guess/hope is that it would lean towards what @janisrogers is saying. The address in the accounts probably gets stale and might not be correct (in some cases we know for sure that it is incorrect).

  14. severinbeauvais commented on Jan 9, 2026

    @severinbeauvais
    Collaborator

    deleted obsolete comment

  15. mstanton1 commented on Jan 22, 2026

    @mstanton1
    Collaborator

    Decision made:

    • update completing party and applicant components throughout filings to allow entry of the completing party address if it is not prepopulated from the account address.
  16. mstanton1 commented on Jan 22, 2026

    @mstanton1
    Collaborator

    @severinbeauvais with the decision above, can this be closed?

  17. severinbeauvais commented on Jan 22, 2026

    @severinbeauvais
    Collaborator

    Yes, this SPIKE can be closed.

    I will review the epic tickets and determine which ones we need to move forward with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Entities Team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions