Skip to content

35806 - COD validation: require a valid party id for existing directors - #5020

Merged
benjamin-bc-gov merged 3 commits into
bcgov:mainfrom
benjamin-bc-gov:35806-cod-director-id-validation
Dec 3, 2026
Merged

benjamin-bc-gov merged 3 commits into
bcgov:mainfrom
benjamin-bc-gov:35806-cod-director-id-validation

Conversation

@benjamin-bc-gov

@benjamin-bc-gov benjamin-bc-gov commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Issue #: /bcgov/entity#35806

Description of changes:

When a Change of Directors edits or ceases an existing director, the filer finds that director by officer.id. The API never checked that id, so a missing, wrong or string id passed validation and the filing got stuck in the filer after payment. The API now rejects it up front with a 400 pointing at the director.

  • Legacy directors shape: every director being changed or ceased must carry officer.id, as an integer or a numeric string, matching an active director of the business. New directors and directors with no actions are not checked. COLIN-sourced filings are exempt because the filer matches those by name.
  • Relationships shape: the identifier check was already there. The one gap, a relationship with no actions and no identifier that only carries a cessation date, is now rejected too.
  • New parametrized tests, existing fixtures now use a real director, version bumped to 3.1.81.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the lear license (Apache 2.0).

@kialj876 kialj876 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking pretty good, just a couple small comments below

@mruff-aeq

Copy link
Copy Markdown
Collaborator

fix sonar issue

@benjamin-bc-gov
benjamin-bc-gov force-pushed the 35806-cod-director-id-validation branch from b11bdec to 774c10d Compare December 3, 2026 18:12
@sonarqubecloud

sonarqubecloud Bot commented Dec 3, 2026

Copy link
Copy Markdown

@benjamin-bc-gov
benjamin-bc-gov merged commit 2d917bb into bcgov:main Dec 3, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants