Skip to content

Business Dashboard UI - business with missing address fails to load #30174

Closed

Description

@Mihai-QuickSilverDev

Example (https://business-dashboard.bcregistry.gov.bc.ca/FM0360774):
image.png

Network error:
image.png

The root cause is that the API GW is changing the error response, which the code uses to properly handle missing addresses. The new error response looks like this:
image.png

This is the line of code that needs to be updated:
https://github.com/bcgov/business-dashboard-ui/blob/d67d956f33a490a71d35bcba71491cfd1c95895f/src/stores/business.ts#L126

To do:

  • Rebase to hotfix-1.1.11 branch
  • Fix function getBusinessAddress()
  • Fix other Business API GW calls that reference error.value?.data?.message
  • Change app version to 1.1.11a
  • Create a PR
  • Rebase to main branch
  • Fix other API GW references to error.value?.data?.message
  • Create a PR
  • Filings UI, Create UI and Edit UI should also be checked for a similar issue. there is a separate ticket for these

Activity

  1. added
    Entities Team
    bug
    on Aug 14, 2025
  2. changed the title [-]Record of firm in Conversion cannot be loaded in BRD[/-] [+]Business Dashboard: Firm with missing address fails to load[/+] on Aug 14, 2025
  3. changed the title [-]Business Dashboard: Firm with missing address fails to load[/-] [+]Business Dashboard: Business with missing address fails to load[/+] on Aug 14, 2025
  4. changed the title [-]Business Dashboard: Business with missing address fails to load[/-] [+]Business Dashboard UI - business with missing address fails to load[/+] on Aug 14, 2025
  5. severinbeauvais commented on Aug 14, 2025

    @severinbeauvais
    Collaborator

    Per Mihai, this is Priority 2.

  6. Mihai-QuickSilverDev commented on Aug 15, 2025

    @Mihai-QuickSilverDev
    CollaboratorAuthor
  7. riyazuddinsyed commented on Aug 15, 2025

    @riyazuddinsyed
    Contributor

    Verified in test.BRD loads up for firms with missing addresses for BSCS users.

  8. severinbeauvais commented on Aug 15, 2025

    @severinbeauvais
    Collaborator

    ^^ That was verification of the hotfix (hotfix branch).

    I moved this back to Ready for QA so that the fix on main branch (normal release process) can be verified.

  9. severinbeauvais commented on Aug 15, 2025

    @severinbeauvais
    Collaborator

    @Mihai-QuickSilverDev The hotfix for this issue has been released to Prod.

    IMPORTANT NOTE: Staff should affiliate any businesses with missing addresses and navigate to them from the BRD. Looking them up from the Staff Dashboard and navigating from there won't work (wrong URL -- Filings UI instead of Business Dashboard UI). New ticket is #30238. What priority do you think that should be?

  10. severinbeauvais commented on Aug 19, 2025

    @severinbeauvais
    Collaborator

    @riyazuddinsyed Why did you move this ticket back to In Progress? What didn't work, or what else needs to be implemented? Thanks.

  11. severinbeauvais commented on Aug 19, 2025

    @severinbeauvais
    Collaborator

    This fix was tested on the hotfix branch.

    Now, this needs to be tested on main branch (ie, current release -- main branch is in Test already).

  12. riyazuddinsyed commented on Aug 19, 2025

    @riyazuddinsyed
    Contributor

    @severinbeauvais This has been tested but we were waiting on the other ticket that is #30238 to test it completely.This ticket on its own has been tested on the Main branch, either we can move it to done and create a test ticket separately to verify the work is complete with or without affiliation on the staff dashboard

  13. severinbeauvais commented on Aug 19, 2025

    @severinbeauvais
    Collaborator

    Let's keep this ticket and 30238 separate. I'd like to see THIS ticket moved to Done, and I will add a comment to 30238 as a reminder to retest THIS test. OK?

  14. riyazuddinsyed commented on Aug 19, 2025

    @riyazuddinsyed
    Contributor

    Yes this sound good will move this to Done..

  15. Mihai-QuickSilverDev commented on Aug 20, 2025

    @Mihai-QuickSilverDev
    CollaboratorAuthor

    @severinbeauvais @riyazuddinsyed As of August 19, 2025, 11:09 PM:
    Firm affiliated to Staff dashboard:
    image.png
    Result of clicking on Manage my Business:
    image.png

    And the other route is broken as usual.

    We kindly need both of these tickets fixed ASAP.

  16. severinbeauvais commented on Aug 20, 2025

    @severinbeauvais
    Collaborator

    After investigation, I found an "environmental" difference in the missing addresses response from the API. The response looks one way in Dev and Test (which we fixed to accomodate and verified), and it looks different in Prod (causing THIS ticket to continue to fail).

    Dev/Test example:
    Image

    Prod example:
    Image

    I have contacted the API Gateway folks to ask if Prod can be updated to look like Dev and Test. I will provide updates here.

  17. severinbeauvais commented on Aug 21, 2025

    @severinbeauvais
    Collaborator
  18. severinbeauvais commented on Aug 22, 2025

    @severinbeauvais
    Collaborator

    ^^ Thanks to Doug for updating the API GW, FM0116965 now loads in Prod.

    This ticket is complete and can be closed.

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

Metadata

Metadata

Assignees

Labels

Entities TeamPriority1bugprod defect

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions