Skip to content

The Search API in the new MBR dashboard retrieves proprietor information for affiliated businesses, whereas the corresponding search call in the old MBR does not include this functionality. #24879

Closed

Description

@riyazuddinsyed

Describe the bug in the current situation
In the new business dashboard, when a user searches for a firm, the search response includes proprietor information. However, this functionality is not available in the search response of the old dashboard.

Steps to reproduce the behavior:

  1. Go to 'https://dev.account.bcregistry.gov.bc.ca/decide-business'
  2. Login with BSCS user
  3. change the URL for the new MBR dashboard.
  4. Search for the affiliated firm to the account and see the Response of the search API in the network call.
  5. Notice that the proprietor info shows up as an addition in Response, while this doesn't happen in the Old dashboard

Screenshots/ Visual Reference/ Source
Screen Shot 2024-12-11 at 11.26.58 AM.png

Screenshot from the Old MBR
Screen Shot 2024-12-11 at 11.59.33 AM.png

Activity

  1. added
    bug
    Entities Team
    on Dec 11, 2024
  2. changed the title [-]The Search API in the new MBR dashboard retrieves proprietor information for affiliated businesses, whereas the corresponding search call in the old MBR does not include this functionality.The Search API in the new MBR dashboard retrieves proprietor information for affiliated businesses, whereas the corresponding search call in the old MBR does not include this functionality.[/-] [+]The Search API in the new MBR dashboard retrieves proprietor information for affiliated businesses, whereas the corresponding search call in the old MBR does not include this functionality.[/+] on Dec 11, 2024
  3. severinbeauvais commented on Dec 12, 2024

    @severinbeauvais
    Collaborator

    The old MBR has a search that looks like this:
    https://bcregistry-dev.apigee.net/registry-search/api/v1/businesses/search/facets?start=0&rows=20&categories=legalType:A,BC,BEN,C,CBEN,CC,CCC,CP,CUL,FI,GP,LL,LLC,LP,PA,S,SP,ULC,XCP,XL,XP,XS&query=value:fm1082499

    The new BRD has a search that looks like this:
    https://bcregistry-dev.apigee.net/registry-search/api/v2/search/businesses

    This difference will account for the different response JSON that Riyaz saw.

    The new BRD may be displaying invalid search results.

    WAIT - in fact, the new BRD uses the V2 version of business search, which accepts a payload (instead of URL parameters) for search criteria, ie:

    image.png

    So, this is probably fine.

  4. severinbeauvais commented on Dec 12, 2024

    @severinbeauvais
    Collaborator

    The only difference that I can see between the old and new search parameters is that the new search only looks for ACTIVE businesses while the old search also returned HISTORICAL businesses.

    Do we need the ability to search for and affiliate historical businesses? I think so, otherwise it will be more difficult to restore businesses.

    cc @JazzarKarim @Mihai-QuickSilverDev Are you aware of a different requirement?

  5. JazzarKarim commented on Dec 12, 2024

    @JazzarKarim
    Collaborator

    cc @JazzarKarim @Mihai-QuickSilverDev Are you aware of a different requirement?

    I'm not aware of a different requirement. This was implemented by the sbc-connect team this way. Maybe they had something in mind when using that different endpoint?

  6. severinbeauvais commented on Dec 12, 2024

    @severinbeauvais
    Collaborator

    Since the SBC Connect team is in absentia at the moment, I suggest the new BRD provided like-for-like functionality with the old MBR. Thoughts?

  7. OlgaPotiagalova commented on Dec 12, 2024

    @OlgaPotiagalova
    Collaborator

    @sandragornall, we identified a difference in behavior between the old BRD and the newly rewritten BRD and questioning if it was intentional or not. It seems that in the old BRD, the Search feature returned both active and historical companies, whereas in the new BRD, only active companies are returned. When your team worked on the BRD, was the decision made to remove historical businesses from the search? Please let us know. Thank you.

    Thank you.

  8. sandragornall commented on Dec 13, 2024

    @sandragornall

    We did not identify any new requirements. The dashboard was a work in progress and may have been incomplete or set up a certain way for testing. You should go ahead and develop it as needed.

  9. OlgaPotiagalova commented on Dec 13, 2024

    @OlgaPotiagalova
    Collaborator

    Thank you @sandragornall

  10. JazzarKarim commented on Jan 6, 2025

    @JazzarKarim
    Collaborator

    I spoke to Kial about this endpoint. Apparently, they are aware of this security issue and hence why the parties that are being returned, are only the public parties (proprietors / partners). This endpoint will ONLY ever return public parties which are all available to everyone. He said there are no security/privacy issues at all.

    So, this ticket will have no changes and I'll be moving it to Done.

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

Metadata

Metadata

Assignees

Labels

Entities TeamPriority2bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions