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-567] - Refactor address validation flow for parentHome, parentMailing, providerResponseService, providerMailing addresses #1236

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

Conversation

analoo
Copy link
Contributor

@analoo analoo commented Mar 3, 2025

🔗 Jira ticket

CCAP-567

✍️ Description

Family Flow |

  • Home address is validated if the inputted address and the suggested address are not the same.
  • Mailing address is validated when different than the home address if the inputted address and the suggested address are not the same.

Provider Flow

  • Service address should be validated if the inputted address and the suggested address are not the same.

  • Mailing address should be validated when different than the service address if the inputted address and the suggested address are not the same.

  • Once a user validates an address, the inputted address will be updated to equal the validated value.

  • Code logic no longer references _validated address fields

  • If first and second addresses are the same, then only the first one will appear in the PDF.


  • Screens match designs
  • refactors (confirmed address flows) to reduce code complexity
  • adds tests for address validation

📷 Design reference

✅ Completion tasks

  • Added relevant tests
  • Meets acceptance criteria

@analoo analoo added Open to feedback This PR isn't ready to be merged into `main` but feedback is welcome Work in Progress labels Mar 3, 2025
@enyia21 enyia21 temporarily deployed to il-gcc-ccap-567-validat-up9pmw March 3, 2025 19:01 Inactive
@enyia21 enyia21 temporarily deployed to il-gcc-ccap-567-validat-up9pmw March 4, 2025 00:02 Inactive
@enyia21 enyia21 temporarily deployed to il-gcc-ccap-567-validat-up9pmw March 4, 2025 00:27 Inactive
@analoo analoo changed the title Ccap 567 validate home address [CCAP-567] - validate home address Mar 4, 2025
@@ -28,22 +28,20 @@ public class SetOrganizationIdAndCCRRName implements Action {
CCMSDataServiceImpl ccmsDataServiceImpl;

private static final String ORGANIZATION_ID_INPUT = "organizationId";
private static final String UNVALIDATED_ZIPCODE_INPUT_NAME = "parentHomeZipCode";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

renamed because the same input will hold validated and unvalidated zip code data.

@enyia21 enyia21 temporarily deployed to il-gcc-ccap-567-validat-up9pmw March 5, 2025 20:06 Inactive
@enyia21 enyia21 temporarily deployed to il-gcc-ccap-567-validat-up9pmw March 5, 2025 23:26 Inactive
@analoo analoo force-pushed the CCAP-567-validate-home-address branch from 6fe45b6 to 8241a4b Compare March 6, 2025 16:59
@enyia21 enyia21 temporarily deployed to il-gcc-ccap-567-validat-up9pmw March 6, 2025 16:59 Inactive
@analoo analoo force-pushed the CCAP-567-validate-home-address branch from 8241a4b to 7cf68fa Compare March 6, 2025 21:32
@enyia21 enyia21 temporarily deployed to il-gcc-ccap-567-validat-up9pmw March 6, 2025 21:32 Inactive
@enyia21 enyia21 temporarily deployed to il-gcc-ccap-567-validat-up9pmw March 6, 2025 21:37 Inactive
@enyia21 enyia21 temporarily deployed to il-gcc-ccap-567-validat-up9pmw March 6, 2025 23:56 Inactive
@@ -641,7 +651,8 @@ flow:
nextScreens:
- name: registration-confirm-mailing-address
registration-confirm-mailing-address:
condition: EnableProviderRegistration
condition: ShowProviderResponseMailingAddressConfirmationScreen
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can incorporate Enable Provider Registration into the condition but you can't come to this place any reasonable way

Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed, not a big deal.

@enyia21 enyia21 temporarily deployed to il-gcc-ccap-567-validat-up9pmw March 7, 2025 18:51 Inactive
@enyia21 enyia21 temporarily deployed to il-gcc-ccap-567-validat-up9pmw March 7, 2025 18:56 Inactive
@enyia21 enyia21 temporarily deployed to il-gcc-ccap-567-validat-up9pmw March 7, 2025 19:50 Inactive
@analoo analoo removed Open to feedback This PR isn't ready to be merged into `main` but feedback is welcome Work in Progress labels Mar 7, 2025
analoo added 20 commits March 7, 2025 13:43
…p confirmation screen when addresses pretty much match
…ymore and update isHomelessMethod to accept input name
Copy link
Contributor

@cram-cfa cram-cfa left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for those changes!

@analoo analoo changed the title [CCAP-567] - validate home address [CCAP-567] - Refactor address validation flow for parentHome, parentMailing, providerResponseService, providerMailing addresses Mar 8, 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.

4 participants