-
Notifications
You must be signed in to change notification settings - Fork 7
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
Ap 4503 correction to ineligible result #5982
Conversation
24844b3
to
7bd3889
Compare
result | ||
end | ||
|
||
# This result has has been faked, to cover an example where CFE returns 'ineligible' |
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.
Is this approach best/correct?
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.
looking good, some comments as we discussed.
6b535a1
to
d132944
Compare
spec/requests/providers/capital_income_assessment_results_controller_spec.rb
Outdated
Show resolved
Hide resolved
spec/requests/providers/capital_income_assessment_results_controller_spec.rb
Outdated
Show resolved
Hide resolved
spec/requests/providers/capital_assessment_results_controller_spec.rb
Outdated
Show resolved
Hide resolved
# for more than one proceeding category, which it appears is currently not possible. | ||
# Currently if an applicant is ineligible for disposable income and capital, | ||
# CFE returns the disposable income result for proceedings as 'ineligible', | ||
# but the capital result for proceedings as 'pending'. |
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.
You could add that this is due to a current "shortcut" in CFE that may be removed in the future - see LEP-349
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.
👍 A couple of test nits which I personally have been trying to address whenever i see them, plus you could add reference https://dsdmoj.atlassian.net/browse/LEP-349 in the code comment you added on the fake result payload.
ac1de22
to
92a2518
Compare
…tal_results to CFE::V6::Result
…and ineligible_disposable_capital? from helper to model also, refactor these methods to make them clearer as per suggestion
92a2518
to
5ca265a
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
What
Link to story
I have added code to handle the scenario where CFE returns 'ineligible' for multiple categories out of gross income, disposable income and capital and added a 'fake' CFE result to test this scenario, however, in practice this is not currently happening, see https://dsdmoj.atlassian.net/browse/AP-4503?focusedCommentId=342986 and https://github.com/ministryofjustice/laa-apply-for-legal-aid/pull/5982/files#r1392418804. This has been added as it is the desired way for CFE to work that is shown in the designs for this ticket but I am not sure if it is the best/correct approach?
Checklist
Before you ask people to review this PR:
bundle exec rake
git rebase main
.