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
Namerequest UI / Namex API: continuation in NR contains wrong entity type code #25937
Entities TeamA label to filter on the tickets for the Entities based team that takes care of front end featuresName RequestNameXNameX and related services proxied via namexNames TeamName Request Name Examination TeambugSomething isn't working
If I create a continuation in NR, the "PUT namerequest" network call contains an entity type code of "CR" (corporation) instead of the expected "C" (continued in BC Limited company). Example:
This NR creation needs to work in coordination with Namex API. It may be that "CR" is correct at this stage and then Namex API need to set the legalType to "C". However, Namex is failing to se the legalType property. Example:
In the above NR object, there should be a legalType property, and it should be set to "C".
The end result is that a continuation in NR cannot be used to create a continuation in filing in LEAR. (Unknown if this works in COLIN.)
It's related to the raw_nr_to_action_mapping structure in Namex API. This table maps a NR type to a Legal Type and other info using "get_actions()". However, it is not finding the correct entry for a continuation in NR, because the entity_type_cd is incorrect. And so, no legalType property is returned, and both Namerequest UI and BRD UI cannot create a draft filing using the NR.
In the Namex db, the code was "CR". I changed it to "C":
With the data fixed, this NR was tested again and can successfully create a draft continuation in filing (in LEAR) from Namerequest UI and the BRD UI.
Now some investigation needs to be done to determined why the entity_type_cd is incorrect for a continuation in NR.
One potential solution is to update Namerequest UI to provide the right Entity Type Code in the first place (ie, C instead of CR, and the other entity types).
Another potential solution is to update Namex API to map request_type_cd="CT" and entity_type_cd="CR" to legalType="C" (and the other entity types).
Entities TeamA label to filter on the tickets for the Entities based team that takes care of front end featuresName RequestNameXNameX and related services proxied via namexNames TeamName Request Name Examination TeambugSomething isn't working
Activity
severinbeauvais commentedon Feb 11, 2025
See also #25939.
severinbeauvais commentedon Feb 13, 2025
Please let @jacqueline-williams-549 know when this ticket is resolved.
severinbeauvais commentedon Feb 13, 2025
@ozamani9gh @EPortman , this ticket (and 25939) are blocking continuation in filings. Can you prioritize this, please?
severinbeauvais commentedon Feb 13, 2025
I think I found the root cause.
It's related to the
raw_nr_to_action_mappingstructure in Namex API. This table maps a NR type to a Legal Type and other info using "get_actions()". However, it is not finding the correct entry for a continuation in NR, because theentity_type_cdis incorrect. And so, nolegalTypeproperty is returned, and both Namerequest UI and BRD UI cannot create a draft filing using the NR.In the Namex db, the code was "CR". I changed it to "C":
With the data fixed, this NR was tested again and can successfully create a draft continuation in filing (in LEAR) from Namerequest UI and the BRD UI.
Now some investigation needs to be done to determined why the entity_type_cd is incorrect for a continuation in NR.
severinbeauvais commentedon Feb 13, 2025
One potential solution is to update Namerequest UI to provide the right Entity Type Code in the first place (ie, C instead of CR, and the other entity types).
Another potential solution is to update Namex API to map request_type_cd="CT" and entity_type_cd="CR" to legalType="C" (and the other entity types).
severinbeauvais commentedon Feb 14, 2025
Here's the initial payload when creating a NEW NR:
Here's the initial payload when creating a MVE NR:
Notice that the entity_type_cd is "CR" in both cases. This affects the actions lookup (in name_request_filing_actions.py).
severinbeauvais commentedon Feb 19, 2025
Test Notes
Note: Change of Name / Restoration / Alteration NRs for continued in BC Limited / Benefit Company / CCC / ULC should continue to work correctly.
severinbeauvais commentedon Feb 20, 2025
I verified this in Dev by creating a CHG NR for a continued in Benefit Company and confirming that the legalType = CBEN.
I also created a MVE NR for a continued in BC Limited Company and confirmed that the legalType = C.