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
[SPIKE] Corrections - Company Name Change API #35352
@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.
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:
Update the backend validations to accept a nameRequest object with just the legalName (and without an nrNumber) for correction filings done by STAFF.
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.
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.
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.
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
Activity
[-][SPIKE] - Company Name Change API[/-][+][SPIKE] Corrections - Company Name Change API[/+]leodube-aot commentedon Oct 26, 2026
@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:
nameRequestobject with just thelegalName(and without annrNumber) for correction filings done by STAFF.nameRequestobject entirely from correction filings and replace it with a simplelegalNameattribute 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
nameRequestobject in API calls, but it would be valid without annrNumber.Business Schemas
Legal API
File:
<...>/validations/correction.py_validate_name_requestcorrections validation to accept a legal name (with no NR number) for corrections done by staff.common_validations.validate_name_requestin the file need to also be updated.Business Filer
Option 2
Broader changes, higher potential impact on other correction related logic. This would entirely remove
nameRequestfrom the API payload (replacing it withlegalName), and update the backend to handle it.Business Schemas
File:
<...>/schemas/correction.jsonnameRequestobject (2 locations) and replace withlegalNamestring attributeFile:
<...>/example_data/schema_data.jsonnameRequest:-
CORRECTION_INCORPORATION-
CORRECTION_REGISTRATION-
CORRECTION_CHANGE_OF_REGISTRATION-
CORRECTION_CP_SPECIAL_RESOLUTIONLegal API
File:
<...>/validations/correction.py_validate_name_requestvalidation.common_validations.validate_name_request.legal_nameBusiness Filer
File:
<...>/filing_components/correction.pyCORRECTION_NAME_REQUEST_PATHcorrect_coop_datacorrect_corp_dataConclusion
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.
deetz99 commentedon Oct 26, 2026
@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
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.
leodube-aot commentedon Oct 26, 2026
@deetz99
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.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
deetz99 commentedon Oct 27, 2026
@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