You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
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
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.
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
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.
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?
@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.
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.
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.
Activity
[-]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.[/+]severinbeauvais commentedon Dec 12, 2024
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:
So, this is probably fine.
severinbeauvais commentedon Dec 12, 2024
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?
JazzarKarim commentedon Dec 12, 2024
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?
severinbeauvais commentedon Dec 12, 2024
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?
OlgaPotiagalova commentedon Dec 12, 2024
@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.
sandragornall commentedon Dec 13, 2024
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.
OlgaPotiagalova commentedon Dec 13, 2024
Thank you @sandragornall
JazzarKarim commentedon Jan 6, 2025
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.