Skip to content

Conversation

@meawong
Copy link
Collaborator

@meawong meawong commented Feb 11, 2026

Issue #: /bcgov/entity#31865

Description of changes:

Multiple resolution dates:
image

Resolution date in the future:
image

Resolution date before business founding date:
image

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

@meawong meawong self-assigned this Feb 11, 2026
@meawong meawong marked this pull request as draft February 11, 2026 17:10
@meawong meawong marked this pull request as ready for review February 11, 2026 18:44
@loneil loneil requested a review from Copilot February 11, 2026 19:18
Copy link
Collaborator

@loneil loneil left a comment

Choose a reason for hiding this comment

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

Makes sense to me. I'm not to knowledgeable on the update parts in the filer but just code-wise appears good. Tagged copilot just for fun too

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates share structure resolution-date validation rules (primarily in legal-api) and aligns business-filer correction behavior/tests with preserving historical resolution dates.

Changes:

  • Added/expanded resolution date validation in share structures (required when rights/restrictions exist, single date only, not future-dated, not before founding date).
  • Wired the new validation into Alteration and Correction (corps) filing validation flows and added/updated unit tests for these scenarios.
  • Adjusted business-filer correction processing/tests to preserve historical resolution dates; updated registry_schemas dependency version.

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
queue_services/business-filer/tests/unit/test_filer/test_correction_bcia.py Updates expectations around correction behavior for resolution dates (history preservation).
queue_services/business-filer/src/business_filer/filing_processors/filing_components/shares.py Refactors resolution-date updating and reuses it for corrections.
legal-api/tests/unit/services/filings/validations/test_correction_ia.py Adds deterministic tests for correction resolution-date validation rules.
legal-api/tests/unit/services/filings/validations/test_alteration.py Extends alteration tests to cover new resolution-date validation rules.
legal-api/src/legal_api/services/filings/validations/correction.py Passes business into corp correction validation and invokes share-structure resolution-date validation.
legal-api/src/legal_api/services/filings/validations/common_validations.py Implements expanded resolution-date validation rules (count/date bounds) with business founding-date comparison.
legal-api/src/legal_api/services/filings/validations/alteration.py Updates call site for the new validation signature and aggregates multiple errors.
legal-api/pyproject.toml Bumps registry_schemas git ref.
legal-api/poetry.lock Locks updated registry_schemas version/reference.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Collaborator

@vysakh-menon-aot vysakh-menon-aot left a comment

Choose a reason for hiding this comment

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

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