Skip to content

NameX API: Restoration Name Request Wrong Legal Type Bug #24564

Closed

Description

@ArwenQin
  1. Create a Restoration Name Request for a C company (eg, C9900778).
  2. Start a restoration filing, using the NR (eg, NR 7906911).
  3. Observe error:

image.png

This NR has legal Type BC, but it should be C. Other Continued in types (CBEN, CCC, CUL) may have the same bug.

image.png

Activity

  1. added
    Entities Team
    on Nov 25, 2024
  2. severinbeauvais commented on Nov 25, 2024

    @severinbeauvais
    Collaborator

    deleted obsolete comment

  3. severinbeauvais commented on Nov 25, 2024

    @severinbeauvais
    Collaborator

    @ArwenQin Does a name change work correctly for this continued-in BC Limited Company? What does the NR for that look like?

  4. ArwenQin commented on Nov 25, 2024

    @ArwenQin
    Author

    @severinbeauvais Name change doesn't work for continued-in BC either.
    Image

  5. severinbeauvais commented on Nov 25, 2024

    @severinbeauvais
    Collaborator

    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).

    Image

    Here's what Namex API responds with. The legalType is incorrect (BC in this case; should be C).

    Image

  6. severinbeauvais commented on Nov 25, 2024

    @severinbeauvais
    Collaborator

    @ArwenQin , thanks for the investigation. This bug ticket needs to be triaged and prioritized along with other Continuation In tickets.

  7. added
    bug
    NameX
    Dependency
    Names Team
    on Nov 25, 2024
  8. ArwenQin commented on Nov 26, 2024

    @ArwenQin
    Author

    I just tested a change business type NR, the same bug exists:
    Image

  9. severinbeauvais commented on Nov 27, 2024

    @severinbeauvais
    Collaborator

    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, 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

  10. severinbeauvais commented on Nov 29, 2024

    @severinbeauvais
    Collaborator

    Directly link to PR: bcgov/namex#1619

  11. severinbeauvais commented on Dec 3, 2024

    @severinbeauvais
    Collaborator

    @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.

  12. severinbeauvais commented on Dec 3, 2024

    @severinbeauvais
    Collaborator

    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:

    • restoration
    • name change

    Severin's Results - Restoration NR

    Legal Type is "C" (correct).
    Request Type Code is "RCR" (correct) ref.

    image.png

    image.png

    image.png

    Severin's Results - Name Change NR

    Legal Type is "CCC" (correct).
    Request Type Code is "CCC" (correct) ref

    image.png

    image.png

    image.png

  13. added
    NRO
    on Dec 24, 2024
  14. changed the title [-]NameX: Restoration Name Request Wrong Legal Type Bug[/-] [+]NameX API: Restoration Name Request Wrong Legal Type Bug[/+] on Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

DependencyEntities TeamNRONameXNames Teambug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions