Skip to content

Common address validation: UI/API Street Address streetAddressAdditional Max Length mismatch #33417

Closed

Description

@loneil

As a API consumer I want to be restricted to the same validations as UI users, so I can't put data into the registry that BC Registries is not expecting (or other way around).


streetAddressAdditional restricts to

As part of this ticket determine affected filings and what the character length should be.

Activity

  1. added
    Entities Team
    on May 13, 2026
  2. assigned and unassigned on May 13, 2026
  3. changed the title [-]Continuation In: API Street Address streetAddressAdditional Max Length mismatch[/-] [+]Continuation In Step 2: API Street Address streetAddressAdditional Max Length mismatch[/+] on May 13, 2026
  4. loneil commented on May 13, 2026

    @loneil
    CollaboratorAuthor

    I think this is broader than just this filing or incorp application. Can investigate as part of this ticket

  5. self-assigned this
    on May 14, 2026
  6. kialj876 commented on May 14, 2026

    @kialj876
    Collaborator

    @mstanton1 @vikas-gov Are we sure we want to reduce the max length on the api side? 50 chars is not very long and we have 547 addresses currently that contain a longer 'streetAddressAdditional' so this could break them for subsequent filings that pull and submit address information.

    Can we increase the character limit on the UI validation for this field to match the API instead?

  7. mstanton1 commented on May 14, 2026

    @mstanton1
    Collaborator

    @kialj876 thanks for pulling that metric. With the 547 addresses containing a longer 'streetAddressAdditional' is there a way to pull what those addresses are. I'd like to review to determine if they are valid and worth accommodating in the UI, or perhaps bad data that we are okay to hinder entry of.

  8. kialj876 commented on May 14, 2026

    @kialj876
    Collaborator

    yeah sure thing - I'll message you directly

  9. loneil commented on May 14, 2026

    @loneil
    CollaboratorAuthor

    @mstanton1 @vikas-gov Are we sure we want to reduce the max length on the api side? 50 chars is not very long and we have 547 addresses currently that contain a longer 'streetAddressAdditional' so this could break them for subsequent filings that pull and submit address information.

    Can we increase the character limit on the UI validation for this field to match the API instead?

    Oh yeah I'd assumed we'd widen the UI for this case (bad wording in title/description) but can investigate when looking at the ticket. As well it's affecting more than Continuation In, so adjusting title.

  10. changed the title [-]Continuation In Step 2: API Street Address streetAddressAdditional Max Length mismatch[/-] [+]Common address validation: UI/API Street Address streetAddressAdditional Max Length mismatch[/+] on May 14, 2026
  11. mstanton1 commented on May 14, 2026

    @mstanton1
    Collaborator

    Based upon discussion with Kial and his review of past changes, there was an intentional change to increase size on the back-end to support data migration (#28475). This ticket will switch to update the UI instead. I will close the previous ticket to update the UI which was never tackled (https://app.zenhub.com/workspaces/entities---data-migration-65af11a89e89f5043c2911f6/issues/gh/bcgov/entity/29045).

  12. kialj876 commented on May 20, 2026

    @kialj876
    Collaborator

    In Test

    • create-ui v5.18.9
    • edit-ui v4.17.8
    • filings-ui v8.3.10
  13. self-assigned this
    on May 20, 2026
  14. self-assigned this
    on May 22, 2026
  15. gunanagar commented on May 25, 2026

    @gunanagar
    Collaborator

    Tested in both UI and API - streetAddressAdditional Max Length - Create UI - aligned as per requirements.

    Screenshot 2026-05-24 at 9.35.16 PM.png

    Screenshot 2026-05-24 at 9.34.21 PM.png

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

Metadata

Metadata

Labels

Entities Team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions