Skip to content

Separate freely-associated states & US territories #1828

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 21, 2023

Conversation

DavidCain
Copy link
Contributor

There are three sovereign states that are members of the Compact of Free Association. These states are not US territories, and having state_abbr() include them by default can cause problems with other tooling.

For the purposes of a valid deliverable address, it's useful to include these freely-associated states by default. But it's also helpful to be able to dynamically exclude them. (Furthermore, there's good reason to simply be correct about how these sovereign states are referred to).


What does this change

Exposes a custom boolean (no change in default behavior) which allows
exclusion of freely-associated states from US states & territories.

What was wrong

We'd categorized these sovereign states as US territories.

How this fixes it

An optional param to state_abbr() allows exclusion of these freely-associated
states while still preserving existing functionality.

There are three sovereign states that are members of the Compact of Free
Association. These states are not US territories, and having
`state_abbr()` include them by default can cause problems with other
tooling.

For the purposes of a valid deliverable address, it's useful to include
these freely-associated states by default. But it's also helpful to be
able to dynamically exclude them. (Furthermore, there's good reason to
simply be correct about how these sovereign states are referred to).
@fcurella
Copy link
Collaborator

cc @johnekent

Copy link
Collaborator

@fcurella fcurella left a comment

Choose a reason for hiding this comment

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

Thank you!

@DavidCain
Copy link
Contributor Author

Wow, thank you for the speedy review, @fcurella ! Will push a quick commit to fix black.

@fcurella fcurella merged commit 7ec64dd into joke2k:master Mar 21, 2023
@DavidCain DavidCain deleted the dcain-freely-associated-states branch March 21, 2023 21:16
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.

2 participants