The laa-apply-for-legal-aid system is a web service by use for solicitors providing legal aid services to enter applications for legal aid on-line. It asks for details of applicant means (income and assets), and the merits of a case, and gives a decision on whether legal aid can be granted or not, and if so, will push the application through to back-end processes for payment.
This PR allows for submission of SCA cases to CCMS
It includes a new, SCA, state machine, case_add_requestor and attribute_block list.
This allows us to test the SCA submissions in isolation without having to write a lot of if SCA...else tests in the generators
It also refactors some of the SCA reporting methods, as very similar ones are needed here. Where possible the legal_aid_application model is the source of truth with alias_method used to provide the same code with a different inflection for the two calling methods
Checklist
Before you ask people to review this PR:
Tests and rubocop should be passing: bundle exec rake
Github should not be reporting conflicts; you should have recently run git rebase main.
What
Link to story
This PR allows for submission of SCA cases to CCMS
It includes a new, SCA, state machine, case_add_requestor and attribute_block list.
This allows us to test the SCA submissions in isolation without having to write a lot of
if SCA...else
tests in the generatorsIt also refactors some of the SCA reporting methods, as very similar ones are needed here. Where possible the legal_aid_application model is the source of truth with alias_method used to provide the same code with a different inflection for the two calling methods
Checklist
Before you ask people to review this PR:
bundle exec rake
git rebase main
.