VACMS-20193: Re-adds Germany and South Korea as states#23705
Conversation
|
Checking composer.lock changes... |
There was a problem hiding this comment.
Pull request overview
Expands the va_gov_address customization of Drupal Address subdivisions so that additional countries can be selected/saved via the US “State” dropdown (intended to include Germany and South Korea in addition to the Philippines).
Changes:
- Renames/updates the address subdivisions event subscriber to support adding multiple countries as US subdivisions.
- Updates the service definition to register the renamed subscriber.
- Updates unit tests to validate the additional subdivisions.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| docroot/modules/custom/va_gov_address/src/EventSubscriber/AddCountriesAsStatesSubscriber.php | Adds additional subdivisions (Germany, South Korea) to the US subdivisions list and sorts by name. |
| docroot/modules/custom/va_gov_address/va_gov_address.services.yml | Registers the renamed event subscriber service. |
| tests/phpunit/va_gov_address/unit/EventSubscriber/AddCountriesAsStatesSubscriberTest.php | Updates unit coverage to reflect the renamed subscriber and expanded subdivision set. |
Comments suppressed due to low confidence (1)
docroot/modules/custom/va_gov_address/src/EventSubscriber/AddCountriesAsStatesSubscriber.php:51
- Germany is being added under subdivision key/code 'DEU' (ISO alpha-3), but the expected value for saving in the Address widget is typically ISO alpha-2 ('DE') (and the updated unit test/acceptance criteria expect 'DE|Germany'). Using 'DEU' here will both fail the unit test and likely produce the wrong stored subdivision value. Switch the subdivision key/code/id to 'DE'.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Checking composer.lock changes... |
…AsStatesSubscriberTest.php Co-authored-by: Bryan Thompson <18094023+bryan-thompsoncodes@users.noreply.github.com>
|
Checking composer.lock changes... |
|
Tugboat has finished building the preview for this pull request! Links:
Dashboard: |
Cypress Accessibility Violations
|
Description
Relates to #20193 and #23432.
Generated description
This pull request expands the functionality of the address module by allowing multiple countries to be added as US states, rather than just the Philippines. It also updates the service and test files to reflect this broader scope. The most important changes are grouped below by theme:
Feature Expansion:
AddPhilippinesAsStateSubscribertoAddCountriesAsStatesSubscriber, and its logic was updated to add Germany (DEU) and South Korea (KR) as US subdivisions alongside the Philippines (PH). The subdivisions are now sorted by name for consistency. [1] [2]Service Registration:
va_gov_address.services.ymlwas updated to reference the new class name, ensuring the correct event subscriber is registered.Testing Updates:
Testing done
Screenshots
QA steps
As an admin
Definition of Done
Select Team for PR review
CMS TeamPublic websitesFacilitiesUser supportAccelerated PublishingIs this PR blocked by another PR?
DO NOT MERGEDoes this PR need review from a Product Owner
Needs PO reviewCMS user-facing announcement
Is an announcement needed to let editors know of this change?