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
Namex API: Name Request unable to create Name Change for Continued In company #23382
DependencyTo highlight the dependency(intra team, external, third parties)Entities TeamA label to filter on the tickets for the Entities based team that takes care of front end featuresNRONRO ReplacementNameXNameX and related services proxied via namexNames TeamName Request Name Examination Team
We’ve had another look and, as far as the legacy NAMES database is concerned, there is only one type of Restoration NR for BC companies, as below:
Therefore, COLIN is still expecting a BC Company – Restore NR (REQUEST_TYPE_CD=RCR) whether the filing is a Limited Restoration Application, a Full Restoration Application, or a Convert Limited to Full Restoration Application.
As a result, I’m afraid that I have to advise you that I believe Name Request needs a change: further to your last screenshot, when Name Request is searching for valid companies, it needs to include companies in Limited Restoration for the purpose of being able to change a company’s name in a Convert Limited to Full Restoration.
Darci also just did some extra research and found an NR that was consumed for this purpose in January, as below:
Test in DEV: input the corp_num='C0181655'. I got the following error in namex-api log:
2024-10-11 15:33:37,939 - namex - ERROR in api_resource:api_resource.py:14 - handle_exception: Error: MapRequestAttributesError("Error setting request attributes.\r\n\r\n'NoneType' object is not subscriptable")
The error caused by failure to find a request type by the input entity_type='C' (continued in) and request_action='CHG'. For example, entity_type='CR', request_action='NEW', the request_type_cd = 'CR'.
@eve-git We support 4 types of Continued In companies:
C - Continued In BC Ltd
CCC - Continued In Community Contribution Company
CUL - Continued In Unlimited Liability Company
CBEN - Continued In Benefit Company @severinbeauvais could help with a mapping of company types used inside Name Request UI vs. company types used outside Name Request UI
@Mihai-QuickSilverDev , I think that changing Namerequest UI to search for historical and limited-resto businesses should be a separate ticket, since that code is in a different repo (and hence, can be reviewed and deployed separately). But we need to think about this a bit. Currently, the business search for a restoration NR looks for historical businesses only. This is why limited-resto businesses are not found -- they are actually active. Should we open up this search to find historical and active businesses? Or should we look at a different design for searching limited-resto businesses?
Everything applicable to a BC Ltd. company is applicable to a Continued In company, according to their genom. So C follows BC Ltd., CUL follows ULC, CCC follows CC.
Also, for above, there need to be entries for CNV (conversion/alteration). Again, please look up the legacy codes. The following conversions are valid:
changed the title [-]Name Request unable to create Name Change for Continued In company [/-][+]Namex API: Name Request unable to create Name Change for Continued In company [/+]on Nov 8, 2024
@severinbeauvais NAMEX API will not be deployed to PROD, until NRO Decommission gets signed off (our hope is by end of November). Please complete whatever work needs to be done, and let us know if you need us to test anything before we push this ticket to prod with NRO decommission.
DependencyTo highlight the dependency(intra team, external, third parties)Entities TeamA label to filter on the tickets for the Entities based team that takes care of front end featuresNRONRO ReplacementNameXNameX and related services proxied via namexNames TeamName Request Name Examination Team
Activity
Mihai-QuickSilverDev commentedon Sep 18, 2024
@ozamani9gh @fodiley
Mihai-QuickSilverDev commentedon Sep 20, 2024
We’ve had another look and, as far as the legacy NAMES database is concerned, there is only one type of Restoration NR for BC companies, as below:

Therefore, COLIN is still expecting a BC Company – Restore NR (REQUEST_TYPE_CD=RCR) whether the filing is a Limited Restoration Application, a Full Restoration Application, or a Convert Limited to Full Restoration Application.
As a result, I’m afraid that I have to advise you that I believe Name Request needs a change: further to your last screenshot, when Name Request is searching for valid companies, it needs to include companies in Limited Restoration for the purpose of being able to change a company’s name in a Convert Limited to Full Restoration.
Darci also just did some extra research and found an NR that was consumed for this purpose in January, as below:
eve-git commentedon Oct 11, 2024
Test in DEV: input the corp_num='C0181655'. I got the following error in namex-api log:
The error caused by failure to find a request type by the input entity_type='C' (continued in) and request_action='CHG'. For example, entity_type='CR', request_action='NEW', the request_type_cd = 'CR'.
eve-git commentedon Oct 11, 2024
The following corp_types are continue in corp types in legacy system:

Here are the request type cd corresponding to continue-in in legacy system:

based on the info above, I added a new request_type_mapping row as heightlighted below (the column are request_type_cd, corp_type, request_action):

The above code change is for BC company continue-in. @Mihai-QuickSilverDev please let me know if we support other types of continue in
Mihai-QuickSilverDev commentedon Oct 16, 2024
@eve-git We support 4 types of Continued In companies:
@severinbeauvais could help with a mapping of company types used inside Name Request UI vs. company types used outside Name Request UI
eve-git commentedon Oct 16, 2024
I added the following entries to namex based on the request type in legacy namex:
severinbeauvais commentedon Oct 29, 2024
@Mihai-QuickSilverDev , I think that changing Namerequest UI to search for historical and limited-resto businesses should be a separate ticket, since that code is in a different repo (and hence, can be reviewed and deployed separately). But we need to think about this a bit. Currently, the business search for a restoration NR looks for historical businesses only. This is why limited-resto businesses are not found -- they are actually active. Should we open up this search to find historical and active businesses? Or should we look at a different design for searching limited-resto businesses?
severinbeauvais commentedon Oct 29, 2024
@Mihai-QuickSilverDev What alterations (CNV) are allowed for C, CBEN, CCC and CUL?
Mihai-QuickSilverDev commentedon Oct 30, 2024
severinbeauvais commentedon Oct 30, 2024
@eve-git @Mihai-QuickSilverDev
Yes, 4 new entity types are needed. Please add these to the EntityTypes enum:
Please add these descriptions:
Please look up the legacy codes and add these to "request_type_mapping". (Replace "xxx" with the appropriate legacy code.)
Also, for above, there need to be entries for CNV (conversion/alteration). Again, please look up the legacy codes. The following conversions are valid:
Please update "raw_nr_to_action_mapping" as well.
eve-git commentedon Oct 30, 2024
@severinbeauvais I am not clear what to update for Conversion and raw_nr_to_aciton_mapping. Please advise. Thanks
21 remaining items
[-]Name Request unable to create Name Change for Continued In company [/-][+]Namex API: Name Request unable to create Name Change for Continued In company [/+]severinbeauvais commentedon Nov 8, 2024
A lot of work was completed by Eve. (Thanks!)
I will take over the remaining work (see outstanding comments in bcgov/namex#1604) and testing using Namerequest UI in Dev.
cc: @OlgaPotiagalova @ozamani9gh
From PR:
ozamani9gh commentedon Nov 15, 2024
@severinbeauvais NAMEX API will not be deployed to PROD, until NRO Decommission gets signed off (our hope is by end of November). Please complete whatever work needs to be done, and let us know if you need us to test anything before we push this ticket to prod with NRO decommission.
severinbeauvais commentedon Nov 15, 2024
See also #24193.
severinbeauvais commentedon Nov 21, 2024
Test Notes
I recommend testing this ticket along with #24193.
Please verify that creating all types of NRs for regular companies (BC, BEN, CCC, ULC) still functions correctly.
Then,
To "create" a NR, follow these steps:
Sample Businesses
gunanagar commentedon Dec 3, 2024
Home team tested, moving to ready to release