Skip to content

[SPIKE] Corrections - Company Name Change API #35352

Closed

Description

@TVWerdal

Investigate the backend changes required to:

  • Remove NR validations for correction fillings.
  • Check for anything leftover relating NRs to correction filings.
  • Ensure validations are properly in place to not allow a correction filing to perform:
    • Named to numbered (handled by conversion filings)
    • Legal type change (handled by alteration filings)
  • Corrections should not affect previous name requests or require new ones
  • Anything useful to assist in frontend corporate designation validation in the free-form text input

Activity

  1. self-assigned this
    on Oct 22, 2026
  2. changed the title [-][SPIKE] - Company Name Change API[/-] [+][SPIKE] Corrections - Company Name Change API[/+] on Oct 22, 2026
  3. leodube-aot commented on Oct 26, 2026

    @leodube-aot
    Collaborator

    @deetz99 @eve-git Placing this ticket in review. Please take a look at the analysis when you get a chance and let me know your thoughts and if I missed something.

    Backend ticket placeholder created: #35397

    Analysis

    Background: There was already some frontend work done in April to allow staff to correct just a company's name without requiring an NR number: link. This work did not encompass any backend changes as far as I can tell.

    There's 2 potential approaches I see:

    1. Update the backend validations to accept a nameRequest object with just the legalName (and without an nrNumber) for correction filings done by STAFF.
    2. Remove the nameRequest object entirely from correction filings and replace it with a simple legalName attribute for updating the business name.

    Option 1

    Fairly minimal changes, low potential impact on other correction related logic. We would essentially continue to use the nameRequest object in API calls, but it would be valid without an nrNumber.

    correction_payload:  {
      // ...
    
      nameRequest?: {
        legalName: string
        nrNumber?: string
      }
    

    Business Schemas

    • Shouldn't require changes

    Legal API

    File: <...>/validations/correction.py

    • Update the _validate_name_request corrections validation to accept a legal name (with no NR number) for corrections done by staff.
    • Verify if calls to common_validations.validate_name_request in the file need to also be updated.

    Business Filer

    • Shouldn't require changes

    Option 2

    Broader changes, higher potential impact on other correction related logic. This would entirely remove nameRequest from the API payload (replacing it with legalName), and update the backend to handle it.

    correction_payload:  {
      // ...
    
      legalName?: string
    }
    

    Business Schemas

    File: <...>/schemas/correction.json

    • Remove nameRequest object (2 locations) and replace with legalName string attribute

    File: <...>/example_data/schema_data.json

    • Update the following sample schemas that use nameRequest:
      - CORRECTION_INCORPORATION
      - CORRECTION_REGISTRATION
      - CORRECTION_CHANGE_OF_REGISTRATION
      - CORRECTION_CP_SPECIAL_RESOLUTION

    Legal API

    File: <...>/validations/correction.py

    • Remove _validate_name_request validation.
    • Remove calls to common_validations.validate_name_request.
    • Add validation to verify the added legal_name

    Business Filer

    File: <...>/filing_components/correction.py

    • Either remove or replace CORRECTION_NAME_REQUEST_PATH
    • Update logic for updating business legal name in:
      • correct_coop_data
      • correct_corp_data

    Conclusion

    I think my preference is to go with Option 1 due to it's lower potential impact. However, if we want to divorce name request related logic entirely from corrections then Option 2 is the better course of action.

    In either case, part of the requirements is that "corrections should not affect previous name requests or require new ones". Either option would satisfy this requirement.

  4. deetz99 commented on Oct 26, 2026

    @deetz99
    Collaborator

    @leodube-aot

    I agree with option 1, I can see a possibility of them wanting to add the NR option in the future and ripping it out entirely would add extra work in this case.

    Would this then return a validation error if nameRequest.nrNumber was included?

    Also I'm just realizing this may need to be updated as well elif new_legal_type:, since we determined correcting the legal type is not allowed during corrections.

    Definition of Done

    Screenshot 2026-10-26 at 12.20.38 PM.png

    Might need a separate ticket for the legal type stuff but I'll leave that up to you (would also need a schema update).

    It would be good to touch base with the Entities team before we go ahead with this though as this could break their current stuff.

  5. leodube-aot commented on Oct 26, 2026

    @leodube-aot
    Collaborator

    @deetz99

    Would this then return a validation error if nameRequest.nrNumber was included?

    I think since we are already going to be changing correction._validate_name_request, we might as well return a validation error in this case. I'm not sure if we'll have a UI path that would actually would trigger it, but probably better to be explicit.

    Also I'm just realizing this may need to be updated as well elif new_legal_type:, since we determined correcting the legal type is not allowed during corrections.

    Yeah that makes sense, the changes are related but the legal type stuff will be more involved. I'll create it as a separate ticket. I've also updated the placeholder ticket for the name change.

    Allow Name Change: #35397
    Remove Legal Type: #35398

  6. deetz99 commented on Oct 27, 2026

    @deetz99
    Collaborator

    @leodube-aot

    This looks good to me. The only thing I would add to #35397 is that a business designation should not be corrected.

    https://bcgov.sharepoint.com/:x:/r/teams/07717/_layouts/15/Doc.aspx?sourcedoc=%7B7B629286-81CB-475E-8E34-03647C1E23DB%7D&file=Book.xlsx&action=default&mobileredirect=true&wdwpf=doclib-c

    I have this for the UI if you'd like to reference it (Might still need some tweaks to handle different punctuations.): https://github.com/bcgov/business-ui/blob/main/packages/layers/base/app/utils/schemas/your-company/legal-name-refinement.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions