Skip to content

Namex API: Name Request unable to create Name Change for Continued In company  #23382

Closed

Description

@Mihai-QuickSilverDev

Work on this ticket at the same time as #24193.

Steps to reproduce the issue:

  • Launch Name Request
  • Select a name change for an existing company
  • When you search for the company type Cxxxxxxx
  • Try to complete the NR
  • You will get this error below

image.png

See also #23380.

Activity

  1. added
    Names Team
    on Sep 18, 2024
  2. Mihai-QuickSilverDev commented on Sep 18, 2024

    @Mihai-QuickSilverDev
    CollaboratorAuthor
  3. Mihai-QuickSilverDev commented on Sep 20, 2024

    @Mihai-QuickSilverDev
    CollaboratorAuthor

    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:
    image.png

    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:

  4. self-assigned this
    on Oct 10, 2024
  5. eve-git commented on Oct 11, 2024

    @eve-git
    Collaborator

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

  6. eve-git commented on Oct 11, 2024

    @eve-git
    Collaborator

    The following corp_types are continue in corp types in legacy system:
    image.png

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

    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):
    image.png

    The above code change is for BC company continue-in. @Mihai-QuickSilverDev please let me know if we support other types of continue in

  7. Mihai-QuickSilverDev commented on Oct 16, 2024

    @Mihai-QuickSilverDev
    CollaboratorAuthor

    @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
  8. eve-git commented on Oct 16, 2024

    @eve-git
    Collaborator

    I added the following entries to namex based on the request type in legacy namex:

    REQUEST_TYPE     ENTIRY_TYPE_CD     REQUEST_ACTION
    CT                     C                    CHG
    CCCT                  CCC                   CHG
    ULCT                  CUL                   CHG
    BECT                  CBEN                  CHG
    
  9. severinbeauvais commented on Oct 29, 2024

    @severinbeauvais
    Collaborator

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

  10. severinbeauvais commented on Oct 29, 2024

    @severinbeauvais
    Collaborator

    @Mihai-QuickSilverDev What alterations (CNV) are allowed for C, CBEN, CCC and CUL?

  11. Mihai-QuickSilverDev commented on Oct 30, 2024

    @Mihai-QuickSilverDev
    CollaboratorAuthor
    • 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.
  12. severinbeauvais commented on Oct 30, 2024

    @severinbeauvais
    Collaborator

    @eve-git @Mihai-QuickSilverDev

    Yes, 4 new entity types are needed. Please add these to the EntityTypes enum:

    CONTINUE_IN = 'C'
    BEN_CONTINUE_IN = 'CBEN'
    CCC_CONTINUE_IN = 'CCC'
    ULC_CONTINUE_IN = 'CUL'
    

    Please add these descriptions:

    EntityTypes.CONTINUE_IN = 'Corporation',
    EntityTypes.BEN_CONTINUE_IN = 'Benefit Company',
    EntityTypes.CCC_CONTINUE_IN = 'Community Contribution Company',
    EntityTypes.ULC_CONTINUE_IN = 'Unlimited Liability Company',
    

    Please look up the legacy codes and add these to "request_type_mapping". (Replace "xxx" with the appropriate legacy code.)

    ('CT', EntityTypes.CONTINUE_IN .value, RequestAction.CHG.value, True),
    ('CT', EntityTypes.CONTINUE_IN .value, RequestAction.RESUBMIT.value, True),
    ('xxx', EntityTypes.CONTINUE_IN .value, RequestAction.REST.value, True), // SB says: see also RCR
    ('xxx', EntityTypes.CONTINUE_IN .value, RequestAction.REH.value),
    ('xxx', EntityTypes.CONTINUE_IN .value, RequestAction.REN.value),
    ('xxx', EntityTypes.CONTINUE_IN .value, RequestAction.RESUBMIT.value),
    
    ('CCCT', EntityTypes.CCC_CONTINUE_IN .value, RequestAction.CHG.value, True),
    ('CCCT', EntityTypes.CCC_CONTINUE_IN .value, RequestAction.RESUBMIT.value),
    ('xxx', EntityTypes.CCC_CONTINUE_IN .value, RequestAction.REST.value, True), // SB says: see also RCC
    ('xxx', EntityTypes.CCC_CONTINUE_IN .value, RequestAction.REH.value),
    ('xxx', EntityTypes.CCC_CONTINUE_IN .value, RequestAction.REN.value),
    ('xxx', EntityTypes.CCC_CONTINUE_IN .value, RequestAction.RESUBMIT.value),
    
    ('ULCT', EntityTypes.ULC_CONTINUE_IN .value, RequestAction.CHG.value, True),
    ('ULCT', EntityTypes.ULC_CONTINUE_IN .value, RequestAction.RESUBMIT.value),
    ('xxx', EntityTypes.ULC_CONTINUE_IN .value, RequestAction.REST.value, True), // SB says: see also RUL
    ('xxx', EntityTypes.ULC_CONTINUE_IN .value, RequestAction.REH.value),
    ('xxx', EntityTypes.ULC_CONTINUE_IN .value, RequestAction.REN.value),
    ('xxx', EntityTypes.ULC_CONTINUE_IN .value, RequestAction.RESUBMIT.value),
    
    ('BECT', EntityTypes.BEN_CONTINUE_IN .value, RequestAction.CHG.value, True),
    ('BECT', EntityTypes.BEN_CONTINUE_IN .value, RequestAction.RESUBMIT.value),
    ('xxx', EntityTypes.BEN_CONTINUE_IN .value, RequestAction.REST.value, True), // SB says: see also BERE
    ('xxx', EntityTypes.BEN_CONTINUE_IN .value, RequestAction.REH.value),
    ('xxx', EntityTypes.BEN_CONTINUE_IN .value, RequestAction.REN.value),
    ('xxx', EntityTypes.BEN_CONTINUE_IN .value, RequestAction.RESUBMIT.value),
    

    Also, for above, there need to be entries for CNV (conversion/alteration). Again, please look up the legacy codes. The following conversions are valid:

    • C -> CBEN (see also BECV)
    • C -> CCC (see also CCV)
    • C -> CUL (see also UC)
    • CBEN -> C (see also BECR)
    • CUL -> C (see also ULCB)
    • CUL -> CBEN (see also ULBE)

    Please update "raw_nr_to_action_mapping" as well.

  13. eve-git commented on Oct 30, 2024

    @eve-git
    Collaborator

    @severinbeauvais I am not clear what to update for Conversion and raw_nr_to_aciton_mapping. Please advise. Thanks

  14. 21 remaining items

  15. 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
  16. added
    NameX
    on Nov 8, 2024
  17. severinbeauvais commented on Nov 8, 2024

    @severinbeauvais
    Collaborator

    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:

    image.png

    image.png

  18. ozamani9gh commented on Nov 15, 2024

    @ozamani9gh
    Collaborator

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

  19. severinbeauvais commented on Nov 15, 2024

    @severinbeauvais
    Collaborator

    See also #24193.

  20. severinbeauvais commented on Nov 21, 2024

    @severinbeauvais
    Collaborator

    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,

    1. create a Name Change NR for a continued-in BC Limited Company
    2. create a Name Change NR for a continued-in Benefit Company
    3. create a Name Change NR for a continued-in CCC
    4. create a Name Change NR for a continued-in ULC
    5. create a Restoration NR for a continued-in BC Limited Company
    6. create a Restoration NR for a continued-in Benefit Company
    7. create a Restoration NR for a continued-in CCC
    8. create a Restoration NR for a continued-in ULC
    9. resubmit a Name Change NR for a regular ULC (this is a fix for an existing bug not related to continuation in)

    To "create" a NR, follow these steps:

    1. login to Dev
    2. go to Namerequest UI
    3. fill in all the fields for the type of NR, then submit and pay for it
      • need active continued-in business of each type for Name Change NR - see below
      • need historical continued-in business of each type for Restoration NR - see below
    4. go to Name Examination
    5. approve the NR
    6. reopen the NR in Namerequest UI and verify the displayed data

    Sample Businesses

    1. active continued-in BC Limited Company = C9900828
    2. active continued-in Benefit Company = C9900829
    3. active continued-in CCC = C9900830
    4. active continued-in ULC = C9900831
    5. historical continued-in BC Limited Company = C9900735
    6. historical continued-in Benefit Company = C9900734
    7. historical continued-in CCC = C9900777
    8. historical continued-in ULC = C9900788
    9. NR to resubmit for a regular ULC = https://dev.namex.bcregistry.gov.bc.ca/examine?nr=5396226 (need to wait for this NR to expire on Nov 6, 2024 at 11:59 pm before you can try to resubmit it)
  21. gunanagar commented on Dec 3, 2024

    @gunanagar
    Collaborator

    Home team tested, moving to ready to release

  22. added
    NRO
    on Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

DependencyEntities TeamNRONameXNames Team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions