Open ArwenQin opened 4 days ago
deleted obsolete comment
@ArwenQin Does a name change work correctly for this continued-in BC Limited Company? What does the NR for that look like?
@severinbeauvais Name change doesn't work for continued-in BC either.
The bug is in Namex API.
Here's what Namerequest UI posts to Namex API. The entity_type_cd
is correct (C in this case).
Here's what Namex API responds with. The legalType
is incorrect (BC in this case; should be C).
@ArwenQin , thanks for the investigation. This bug ticket needs to be triaged and prioritized along with other Continuation In tickets.
I just tested a change business type NR, the same bug exists:
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, BCProtectedNameEntityTypes
needs 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
Directly link to PR: https://github.com/bcgov/namex/pull/1619
Create a Restoration Name Request for a C company example: https://dev.business.bcregistry.gov.bc.ca/C9900778 The NR 7906911 is created for C9900778, but in the restoration process, it shows:
This NR has legal Type BC, but it should be C. This may be a bug with names. Other Continued in type may have the same bug