Skip to content

34788 - updated legal api to support tramways - #4791

Merged
JazzarKarim merged 3 commits into
bcgov:mainfrom
JazzarKarim:34788-tramways-migration
Sep 18, 2026
Merged

JazzarKarim merged 3 commits into
bcgov:mainfrom
JazzarKarim:34788-tramways-migration

Conversation

@JazzarKarim

@JazzarKarim JazzarKarim commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Issue #: /bcgov/entity#34788

Description of changes:
Updates temporary business number checks in legal-api so real tramway businesses (TMY + 7 digits, for example TMY0000008) are not treated as temp bootstrap IDs.

Temp registrations also start with T, and some random temps can even start with TMY (although super low probability), so a plain startswith("T") / startswith("TMY") check is too broad.

The endpoints now treat an identifier as temporary only when it starts with T and does not match ^TMY\d{7}$

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

@JazzarKarim JazzarKarim self-assigned this Sep 17, 2026
@JazzarKarim
JazzarKarim marked this pull request as ready for review September 17, 2026 21:32

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

Worth having a test too I think

@sonarqubecloud

Copy link
Copy Markdown

@JazzarKarim
JazzarKarim merged commit 5bfdc03 into bcgov:main Sep 18, 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