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: Restoration Name Request Wrong Legal Type Bug #24564
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 TeambugSomething isn't working
Or it might be related to some other conversion or lookup from the "namex entity type" to the "lear entity type" (example: BC means Benefit Company in Namex but BC Limited Company in LEAR).
@ozamani9gh , please add this Namex API ticket to your next release. No rush as it's for restoration and continuation in support, which are not part of Directed Launch.
In this ticket, the name request filing actions lookup was fixed, so that the correct codes are returned, which should allow the NRs to have the correct legal type. This fix should allow the following NRs to be correctly created for continued-in companies:
restoration
name change
Severin's Results - Restoration NR
Legal Type is "C" (correct).
Request Type Code is "RCR" (correct) ref.
Severin's Results - Name Change NR
Legal Type is "CCC" (correct).
Request Type Code is "CCC" (correct) ref
changed the title [-]NameX: Restoration Name Request Wrong Legal Type Bug[/-][+]NameX API: Restoration Name Request Wrong Legal Type Bug[/+]on Jan 24, 2025
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 TeambugSomething isn't working
Activity
severinbeauvais commentedon Nov 25, 2024
deleted obsolete comment
severinbeauvais commentedon Nov 25, 2024
@ArwenQin Does a name change work correctly for this continued-in BC Limited Company? What does the NR for that look like?
ArwenQin commentedon Nov 25, 2024
@severinbeauvais Name change doesn't work for continued-in BC either.

severinbeauvais commentedon Nov 25, 2024
The bug is in Namex API.
Here's what Namerequest UI posts to Namex API. The
entity_type_cdis correct (C in this case).Here's what Namex API responds with. The
legalTypeis incorrect (BC in this case; should be C).severinbeauvais commentedon Nov 25, 2024
@ArwenQin , thanks for the investigation. This bug ticket needs to be triaged and prioritized along with other Continuation In tickets.
ArwenQin commentedon Nov 26, 2024
I just tested a change business type NR, the same bug exists:

severinbeauvais commentedon Nov 27, 2024
Quick Analysis
Namex is incorrectly assigning the "legalType" property, eg, why is it assigning BC instead of C?
It might be related to this structure or how it's used. For example, if code looks for the first "RCR" then it will find a match for "BC" and not "C".
https://github.com/bcgov/namex/blob/44c360c4c5728c510529c595b987473b95903632/api/namex/services/lookup/name_request_filing_actions.py#L48
Or it might be related to some other conversion or lookup from the "namex entity type" to the "lear entity type" (example: BC means Benefit Company in Namex but BC Limited Company in LEAR).
I also noticed that some enums are incomplete. For example,
BCProtectedNameEntityTypesneeds the addition of the 4 continued-in company types. (There may be other incomplete enums.)https://github.com/bcgov/namex/blob/44c360c4c5728c510529c595b987473b95903632/api/namex/constants/__init__.py#L161
severinbeauvais commentedon Nov 29, 2024
Directly link to PR: bcgov/namex#1619
severinbeauvais commentedon Dec 3, 2024
@ozamani9gh , please add this Namex API ticket to your next release. No rush as it's for restoration and continuation in support, which are not part of Directed Launch.
severinbeauvais commentedon Dec 3, 2024
Test Notes
In this ticket, the name request filing actions lookup was fixed, so that the correct codes are returned, which should allow the NRs to have the correct legal type. This fix should allow the following NRs to be correctly created for continued-in companies:
Severin's Results - Restoration NR
Legal Type is "C" (correct).
Request Type Code is "RCR" (correct) ref.
Severin's Results - Name Change NR
Legal Type is "CCC" (correct).
Request Type Code is "CCC" (correct) ref
[-]NameX: Restoration Name Request Wrong Legal Type Bug[/-][+]NameX API: Restoration Name Request Wrong Legal Type Bug[/+]