Matthew Phelan
ba9cdd31a2
Code review updates
3 years ago
baarkerlounger
d240e299bd
Add some test for our validations
3 years ago
baarkerlounger
656c7bda26
Specs passing
3 years ago
Matthew Phelan
c3e1f07797
validate_other_household_members refactor
...
Co-authored-by: Daniel Baark <baarkerlounger@users.noreply.github.com>
3 years ago
Matthew Phelan
bdefe35caa
Merge branch 'main' into CLDC-467/validate_other_household_members
3 years ago
Daniel Baark
fff5da304e
Refactor validations into modules ( #73 )
...
* Refactor validations into modules
* PropertyValidations
* Add financial and tenancy validations
* Shorten comment
* Simplify
3 years ago
Matthew Phelan
971c3909ee
validate_other_household_members
3 years ago
kosiakkatrina
c7cd48c2e8
CLDC-513: Refused income validation ( #71 )
...
* Add net income known field
* only require the income if it is known
* fix a typo
3 years ago
Daniel Baark
f372a4727e
Hard validation ( #69 )
3 years ago
kosiakkatrina
055cbf8fc5
CLDC-464: Other tenancy type validation ( #68 )
...
* Add other_tenancy_type conditional field
* Extract private validdate_other_field_method
* Implement other tenancy type validation
* Add missing migration file and update API doc
3 years ago
baarkerlounger
fba2474747
rubocop
3 years ago
Milo
a78a9a0e13
Merge pull request #64 from communitiesuk/CLDC-469-if-served-did-leave-validation
...
added armed forces active response validation
3 years ago
Milo
f8a460b424
Merge branch 'main' into CLDC-469-if-served-did-leave-validation
3 years ago
Milo
562883495d
Merge pull request #65 from communitiesuk/CLDC-493-OutstandingRentAmount-Validation
...
added simple validation for outstanding rent
3 years ago
magicmilo
073ccfe633
rubocop
3 years ago
Milo
de4d58b711
Merge branch 'main' into CLDC-469-if-served-did-leave-validation
3 years ago
magicmilo
512e3a5a82
added required armed forces fields to example
3 years ago
magicmilo
d3de1f660d
Merge branch 'CLDC-493-OutstandingRentAmount-Validation' of https://github.com/communitiesuk/mhclg-data-collection-beta into CLDC-493-OutstandingRentAmount-Validation
3 years ago
magicmilo
096cb8fae7
replace tenant to person_1 in examples and required of API Json
3 years ago
Milo
3a7935ec5c
Merge branch 'main' into CLDC-493-OutstandingRentAmount-Validation
3 years ago
Daniel Baark
c5e6506e48
Database Cleaner ( #67 )
3 years ago
kosiakkatrina
c39271d486
CLDC-466: Add fixed term tenancy validation ( #66 )
...
* Add fixed term tenancy validation
* refactor validate_fixed_term_tenancy
* add fixed_term_tenancy pattern to api docs and make it dynamically not required
3 years ago
magicmilo
d4497883ae
rubocop
3 years ago
kosiakkatrina
2c1f246350
CLDC-473: Add net income uc proportion validation ( #62 )
...
* Add validate_net_income_uc_proportion validation/
* refactor validation method;
* Update net income options in doc
* rubocop
* refactor validate_net_income_uc_proportion and increase the persons checked to 8
* rename tenant economic status field
3 years ago
Milo
7f76b9c18e
Merge branch 'main' into CLDC-493-OutstandingRentAmount-Validation
3 years ago
magicmilo
3d2699e557
added simple validation for outstanding rent
3 years ago
magicmilo
c1596817d2
fix conflicts
3 years ago
Milo
db346f7cca
Merge pull request #63 from communitiesuk/CLDC-471-pregnancy-validation
...
Cldc 471 pregnancy validation
3 years ago
magicmilo
938c5b9807
updated age and gender field person_1 in docs
3 years ago
magicmilo
c6fb2580df
rubocop
3 years ago
magicmilo
ede51029e9
rubocop
3 years ago
magicmilo
4520b3a1cc
added armed forces active response validation
3 years ago
magicmilo
88043a9386
made validator private method
3 years ago
magicmilo
62ce94d8cc
fix bad migration
3 years ago
magicmilo
248c67bcb3
Renamed tenant to person_1 everywhere
3 years ago
magicmilo
357aea91c7
clean up validation
3 years ago
Milo
8d3e31ee10
Update app/models/case_log.rb
...
Use map rather than indexing
Co-authored-by: Daniel Baark <5101747+baarkerlounger@users.noreply.github.com>
3 years ago
Milo
988b87ac4c
Update app/models/case_log.rb
...
Remove unnecessary if
Co-authored-by: Daniel Baark <5101747+baarkerlounger@users.noreply.github.com>
3 years ago
baarkerlounger
e93e58b853
Rubocop
3 years ago
magicmilo
7d0f207f42
RemoveUnusedLinesInTotalQuestions
3 years ago
magicmilo
12be4612ec
prettier
3 years ago
magicmilo
e2041cec9c
add valid tests
3 years ago
magicmilo
9b4c9ed98e
basic pregnancy validations
3 years ago
Matthew J. Phelan
0527f97a4d
Merge pull request #59 from communitiesuk/CLDC-477/reason-for-leaving-because-of-the-benefit-cap
...
Cldc 477/reason for leaving because of the benefit cap
3 years ago
baarkerlounger
d2623da0ad
Updated Created http code
3 years ago
Matthew Phelan
2b82c56c19
API documentation added
3 years ago
kosiakkatrina
ed2c03c253
Cldc 358 multiple conditions routing ( #61 )
...
* Change condition format in json
* Add test for multiple conditions
* Check multiple conditions
* nearly better
* check the condition for route without checcking the question type
* remove a comment and an unused variable
Co-authored-by: magicmilo <milobascombe@gmail.com>
3 years ago
Matthew Phelan
b430ad0cb5
Merge branch 'main' into CLDC-477/reason-for-leaving-because-of-the-benefit-cap
3 years ago
Matthew Phelan
b724c99985
CLDC/477 Code review updates
3 years ago
Dushan
31ee34a976
Merge pull request #60 from communitiesuk/CLDC-470-armed-forces-injured-validation
...
CLDC-470 Add armed forces injured validation
3 years ago