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

CAPT 2083/slc upload audit #3507

Merged
merged 2 commits into from
Jan 22, 2025
Merged

CAPT 2083/slc upload audit #3507

merged 2 commits into from
Jan 22, 2025

Conversation

rjlynch
Copy link
Contributor

@rjlynch rjlynch commented Jan 13, 2025

Create audit trail when SLC upload runs

When the SLC data upload runs we want to use the existing amendments
mechanism to record any changes to the claim. As amending a claim
requires a user to be associated with the amendment we need to pass who
triggered the SLC upload down to the ClaimStudentLoanDetailsUpdater.

We've had to slightly change the validation on
StudentLoans::Eligibility to check if the repayment amount has changed
as there's one test (spec/features/admin/upload_slc_data_spec.rb)
where:

  • No SLC data is found for a claim
  • The claim has a student_loan_repayment_amount of 0
  • The claim's plan is expected to change from not_applicable to nil
  • The claim's has_student_loan is expected to change from false to
    nil
    Without changing the validation on the eligibility we can't pass this
    test as amending the claim errors due to the 0 student loan repayment
    amount.
Screenshot 2025-01-13 at 14 51 59

@rjlynch rjlynch force-pushed the CAPT-2083/slc-upload-audit branch 6 times, most recently from 4cc448b to 5385820 Compare January 13, 2025 13:59
@rjlynch rjlynch added the deploy Deploy a review app for this PR label Jan 13, 2025
@rjlynch rjlynch marked this pull request as ready for review January 13, 2025 15:38
@rjlynch rjlynch force-pushed the CAPT-2083/slc-upload-audit branch from 5385820 to 2638e42 Compare January 15, 2025 12:14
@rjlynch rjlynch force-pushed the CAPT-2083/slc-upload-audit branch from 2638e42 to 44b0238 Compare January 15, 2025 12:24
@rjlynch rjlynch force-pushed the CAPT-2083/slc-upload-audit branch from 44b0238 to 651af99 Compare January 16, 2025 09:56
Claims can no longer be "unsubmitted" so we don't need to test those
scenarios in this spec.
When the SLC data upload runs we want to use the existing amendments
mechanism to record any changes to the claim. As amending a claim
requires a user to be associated with the amendment we need to pass who
triggered the SLC upload down to the `ClaimStudentLoanDetailsUpdater`.

We've had to slightly change the validation on
`StudentLoans::Eligibility` to check if the repayment amount has changed
as there's one test (`spec/features/admin/upload_slc_data_spec.rb`)
where:
* No SLC data is found for a claim
* The claim has a student_loan_repayment_amount of `0`
* The claim's plan is expected to change from `not_applicable` to `nil`
* The claim's `has_student_loan` is expected to change from `false` to
  `nil`
Without changing the validation on the eligibility we can't pass this
test as amending the claim errors due to the `0` student loan repayment
amount.
@rjlynch rjlynch force-pushed the CAPT-2083/slc-upload-audit branch from 651af99 to 7d5e0ad Compare January 22, 2025 09:27
@rjlynch rjlynch merged commit 318928a into master Jan 22, 2025
15 checks passed
@rjlynch rjlynch deleted the CAPT-2083/slc-upload-audit branch January 22, 2025 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deploy Deploy a review app for this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants