Skip to content

Filings UI: update director schemas to make postal code optional for specific countries #31954

Closed

Description

@severinbeauvais

(See custom validator work already done in #31953 / Create UI.)

  • Create a custom validator to make postal code optional for the following countries:
    NO_POSTAL_CODE_COUNTRY_CODES = {
    "AO", "AG", "AW", "BS", "BZ", "BJ", "BM", "BO", "BQ", "BW", "BF", "BI",
    "CM", "CF", "TD", "KM", "CG", "CD", "CK", "CI", "CW", "DJ", "DM", "GQ",
    "ER", "FJ", "TF", "GA", "GM", "GH", "GD", "GY", "HM", "HK",
    "KI", "KP", "LY", "MO", "MW", "ML", "MR", "NR",
    "AN", "NU", "QA", "RW", "KN", "ST", "SC", "SL", "SX", "SB", "SO", "SR", "SY",
    "TL", "TG", "TK", "TO", "TT", "TV", "UG", "AE", "VU", "YE", "ZW"
    }
  • Apply the custom validator to the address schema declared in Directors.vue. (link)
  • Identify and test all affected filings (list them below).
    • Change of Director
    • Change of Address (no director behavior change, regression)
    • Annual Report (no director behavior change, regression)
  • Add unit tests if it makes sense.

QA Notes

  • For a Change of Directors filing in the UI, ensure:
    -- You can select from one of the countries above and the postal code is not validated as required
    -- You use a different country and the postal code is required
    -- Try toggling back and forth between them, saving and exiting the filing and coming back, etc
    -- For Canadian and US addresses the custom validation and field help text works as before
  • For Office Address in Annual Report and Change of Address just regression test that postal code validation works as before

Activity

  1. added
    Entities Team
    on Jan 7, 2026
  2. self-assigned this
    on Feb 11, 2026
  3. gunanagar commented on Feb 17, 2026

    @gunanagar
    Collaborator

    Tested this and also did regession testing as well..

    For a Change of Directors filing in the UI, ensure:
    -- You can select from one of the countries above and the postal code is not validated as required - PASS
    -- You use a different country and the postal code is required - PASS
    -- Try toggling back and forth between them, saving and exiting the filing and coming back, etc. - PASS
    -- For Canadian and US addresses the custom validation and field help text works as before - PASS
    For Office Address in Annual Report and Change of Address just regression test that postal code validation works as before - PSS

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

Metadata

Metadata

Labels

Entities Team

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions