-
Notifications
You must be signed in to change notification settings - Fork 82
Removed EVSS:PPIU Specs #25456
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
base: master
Are you sure you want to change the base?
Removed EVSS:PPIU Specs #25456
Conversation
|
Error: A file (or its parent directories) was deleted but its reference still exists in CODEOWNERS. Please update the .github/CODEOWNERS file and delete the entry for the Offending file: spec/lib/evss/ppiu |
|
Error: A file (or its parent directories) does not have a CODEOWNERS entry. Please update the .github/CODEOWNERS file and add the entry for the Offending file: app/models/form_profiles/va_0994.rb |
|
Error: A file (or its parent directories) was deleted but its reference still exists in CODEOWNERS. Please update the .github/CODEOWNERS file and delete the entry for the Offending file: spec/lib/evss/ppiu |
|
Error: A file (or its parent directories) was deleted but its reference still exists in CODEOWNERS. Please update the .github/CODEOWNERS file and delete the entry for the Offending file: spec/lib/evss/ppiu |
|
Error: A file (or its parent directories) does not have a CODEOWNERS entry. Please update the .github/CODEOWNERS file and add the entry for the Offending file: app/models/form_profiles/va_0994.rb |
|
Error: A file (or its parent directories) does not have a CODEOWNERS entry. Please update the .github/CODEOWNERS file and add the entry for the Offending file: app/models/form_profiles/va_0994.rb |
|
Error: A file (or its parent directories) was deleted but its reference still exists in CODEOWNERS. Please update the .github/CODEOWNERS file and delete the entry for the Offending file: spec/lib/evss/ppiu |
|
Error: A file (or its parent directories) was deleted but its reference still exists in CODEOWNERS. Please update the .github/CODEOWNERS file and delete the entry for the Offending file: spec/lib/evss/ppiu |
|
Error: A file (or its parent directories) does not have a CODEOWNERS entry. Please update the .github/CODEOWNERS file and add the entry for the Offending file: app/models/form_profiles/va_0994.rb |
|
Error: A file (or its parent directories) does not have a CODEOWNERS entry. Please update the .github/CODEOWNERS file and add the entry for the Offending file: app/models/form_profiles/va_526ez.rb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR removes deprecated EVSS::PPIU testing infrastructure as part of the phased deprecation of the EVSS PPIU service. The changes remove VCR cassettes, test specs, factories, and update production code that referenced the deprecated service.
Key changes:
- Removed all EVSS::PPIU-related VCR test cassettes for both EVSS and mobile endpoints
- Deleted test specifications for EVSS::PPIU service, payment information, and payment account models
- Removed FactoryBot factories for PPIU payment data
- Updated form profile code to remove EVSS::PPIU service dependencies
Reviewed changes
Copilot reviewed 24 out of 24 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| spec/support/vcr_cassettes/mobile/payment_information/*.yml | Removed mobile payment information VCR cassettes (4 files) |
| spec/support/vcr_cassettes/evss/ppiu/*.yml | Removed EVSS PPIU VCR cassettes (6 files) |
| spec/lib/evss/ppiu/service_spec.rb | Deleted EVSS::PPIU service test file |
| spec/lib/evss/ppiu/payment_information_spec.rb | Deleted payment information model test file |
| spec/lib/evss/ppiu/payment_account_spec.rb | Deleted payment account model test file |
| spec/lib/disability_compensation/providers/ppiu_direct_deposit/ppiu_provider_spec.rb | Deleted PPIU provider base test file |
| spec/lib/sentry/event_scrubber_spec.rb | Removed PPIU-specific PII filtering test case |
| spec/factories/ppiu_payment_information_responses.rb | Deleted PPIU response factory definitions |
| spec/factories/ppiu_payment_account.rb | Deleted PPIU payment account factory |
| spec/models/form_profile_spec.rb | Removed PPIU VCR cassette and expected bank account assertions from form 0994 test |
| modules/mobile/spec/requests/mobile/v1/user_spec.rb | Removed PPIU VCR cassette wrappers from 8 test contexts |
| modules/mobile/spec/requests/mobile/v0/user_spec.rb | Removed PPIU VCR cassette wrappers from 9 test contexts |
| app/models/form_profiles/va_0994.rb | Removed EVSS::PPIU service calls but left broken code referencing undefined variable |
| app/models/form_profiles/va_526ez.rb | Removed unused EVSS::PPIU require statement |
| config/initializers/inflections.rb | Removed PPIU acronym definition |
| .github/CODEOWNERS | Removed CODEOWNERS entries for deleted PPIU test files and cassettes |
app/models/form_profiles/va_0994.rb
Outdated
| VA0994::FormPaymentAccountInformation.new( | ||
| account_type: raw_account&.account_type&.capitalize, | ||
| account_number: mask(raw_account&.account_number), | ||
| routing_number: mask(raw_account&.financial_institution_routing_number), | ||
| bank_name: raw_account&.financial_institution_name | ||
| ) |
Copilot
AI
Dec 8, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable raw_account is used but never defined. The previous code retrieved this data from EVSS::PPIU::Service, but after removing those lines, the variable is referenced without being set. This will cause a NameError when this method executes.
Looking at similar form profiles like va_10297.rb and va_526ez.rb, this should likely be updated to use the Lighthouse API provider instead, following the pattern:
provider = ApiProviderFactory.call(
type: ApiProviderFactory::FACTORIES[:ppiu],
provider: ApiProviderFactory::API_PROVIDER[:lighthouse],
current_user: user,
feature_toggle: nil
)
response = provider.get_payment_information
raw_account = response.responses.first&.payment_accountOr if payment information is no longer needed for this form, the entire method should return {} early after the authorization check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you removed raw_account's definition on line 42
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rjohnson2011 I removed the payment code. This form is no longer used in prod. slack thread with team
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The team has plans to remove the deprecated 0994 form in the next few sprints.
Co-authored-by: Jennica Stiehl <25069483+stiehlrod@users.noreply.github.com>
…om/department-of-veterans-affairs/vets-api into rcassity-deprecate-evss-ppiu-tests
…fairs/vets-api into rcassity-deprecate-evss-ppiu-tests
Keep your PR as a Draft until it's ready for Platform review. A PR is ready for Platform review when it has a teammate approval and tests, linting, and settings checks pass CI. See these tips on how to avoid common delays in getting your PR merged.
Summary
This PR removes deprecated testing infrastructure for the EVSS (External Veteran-facing Services) PPIU (Payment Information Update) service. The change involves cleaning up test files, factories, VCR cassettes, and related code that's no longer needed.
EVSS::PPIU configuration will be removed after this pull request is merged.
Related issue(s)
Testing done
Screenshots
Note: Optional
What areas of the site does it impact?
(Describe what parts of the site are impacted andifcode touched other areas)
Acceptance criteria
Requested Feedback
(OPTIONAL)What should the reviewers know in addition to the above. Is there anything specific you wish the reviewer to assist with. Do you have any concerns with this PR, why?