Skip to content
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

[CCAP-651] - applications should only route to active SDAs #1199

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

analoo
Copy link
Contributor

@analoo analoo commented Feb 24, 2025

🔗 Jira ticket

CCAP-651

✍️ Description

  • Routes applications to currently active SDAs
  • Maps applicantAddressCounty based on the parent home address, regardless of what SDA is in scope
    • If there is no parent home zip code, there will be no applicant address county
    • If there is a parent home zip code but it's not in our data base, there will be no applicant address county
    • If there is a parent home zip code and it's in the DB, it will mape to an applicant address county

📷 Design reference

Steps to reproduce the bug

  • Create a family application
  • Choose a valid zip code or county in the onboarding flow in SDA 2 or SDA 15.
  • Enter a home address that is in SDA 6 (Cook County), e.g. the IAFC address: 401 S Damen Ave, Chicago, IL 60612
  • The organization id and CCR&R name will be set to IAFC

Expected behavior
Until we launch in SDA 6, no applications should be routed there. Applications with an SDA 6 home address for the applicant should fall back to routing by the County or zip selected in onboarding in the same way that out of state zip codes do.

✅ Completion tasks

  • Added relevant tests
  • Meets acceptance criteria

@analoo analoo changed the title Ccap 651 applications routing sda6 bug [CCAP-651] applications routing sda6 bug Feb 24, 2025
@@ -47,11 +44,12 @@ public void run(Submission submission) {

if (!experiencingHomelessness && hasValidValue(inputData, UNVALIDATED_ZIPCODE_INPUT_NAME)) {
final String unvalidatedZip = (String) submission.getInputData().get(UNVALIDATED_ZIPCODE_INPUT_NAME);
saveCountyFromZip(submission, unvalidatedZip);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

only saves county from home zip code address

@@ -11,7 +11,7 @@

@Service
public class ApplicationRoutingServiceImpl implements ApplicationRouterService{

private final List<String> activeCaseLoadCodes = List.of("BB", "QQ");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Limits resources orgs to those that are included in this list.

@enyia21 enyia21 temporarily deployed to il-gcc-ccap-651-applica-cranyr February 24, 2025 22:34 Inactive
@@ -106,28 +107,6 @@ void fullGccFlow() throws IOException {
// parent-info-disability
assertThat(testPage.getTitle()).isEqualTo(getEnMessage("parent-info-disability.title"));
testPage.clickYes();
// parent-home-address
Copy link
Contributor Author

Choose a reason for hiding this comment

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

had to change order because otherwise we submit an unhoused application which means we cannot test county

// Click it twice so it populates the mailing address fields
testPage.clickElementById("parentMailingAddressSameAsHomeAddress-yes");
// Check that JS is correct populating fields when selecting same as home address
assertThat(testPage.getInputValue("parentMailingStreetAddress1")).isEqualTo("123 Main St");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

changes to an Illinois sounding address for testing

@analoo analoo force-pushed the CCAP-651-applications-routing-sda6-bug branch from 992f75f to e418a41 Compare February 24, 2025 22:40
@analoo analoo changed the title [CCAP-651] applications routing sda6 bug [CCAP-651] - applications should only route to active SDAs Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants