Stéphane Meny
f31c2be851
CLDC-1118: Implement data export structure (CDS) ( #587 )
...
Co-authored-by: Dushan Despotovic <dushan@madetech.com>
3 years ago
Dushan
41757a8998
remove letting_in_sheltered_accomodation field ( #577 )
...
* remove letting_in_sheltered_accomodation field
This field is now duplicated by the shelteredaccom field
* lint fixes
* fix all failing specs
3 years ago
Ted-U
970c9afcf7
Cldc 1217 retirement soft validation ( #570 )
...
* Interruption screen refactor
* Add test for retirement_age_for_person
Co-authored-by: Stéphane Meny <smeny@users.noreply.github.com>
* Rubocop
* update 22-23 form
* fix failures
* lint fixes
* remove whitespace
* remove commented code
* make spec file use translations instead of content
* update content
* lint fixes
* fix typo
* fix question wording
* fix failing spec
* add full stop
Co-authored-by: Stéphane Meny <smeny@users.noreply.github.com>
Co-authored-by: Dushan Despotovic <dushan@madetech.com>
3 years ago
baarkerlounger
e6f1672fe4
Add sheltered accom field ( #568 )
3 years ago
baarkerlounger
a6d9370972
Map joint tenancy field ( #565 )
3 years ago
baarkerlounger
501fcd91e0
Inactive users ( #564 )
...
* Allow users to be marked as inactive
* Import inactive users
3 years ago
baarkerlounger
85b4ae81e3
Make tshortfall optional based on hidden tshortfall_known question ( #563 )
...
* Make tshortfall optional based on hidden tshortfall_known question
* Add test for optional
* Add test for JSON derived and dependent on false options
* Test routing
* Fix optionality
3 years ago
baarkerlounger
233f54997b
Allow illness type to be refused ( #553 )
3 years ago
kosiakkatrina
4c4f52f021
Save correct la if postcode is invalid ( #551 )
3 years ago
kosiakkatrina
1ead78462b
Set tshortfall to 0 if it should exists but is not provided ( #550 )
...
* Set tshortfall to 0 if it should exists but is not provided
* check if tshortfall is overridden
3 years ago
baarkerlounger
0383e27821
Enable dynamically dependent answer options
3 years ago
Dushan
f4401869de
Age known believe import fixes ( #545 )
...
* amend fixture to make test fail
* fix failing test
* lint fixes
3 years ago
kosiakkatrina
1637661314
don't route to hbrentshortfall if hb is 7 ( #544 )
3 years ago
baarkerlounger
21eac97e31
Fix complete case log fixture
3 years ago
kosiakkatrina
df3b8371ef
map tshortfall value ( #543 )
3 years ago
kosiakkatrina
641d849ea2
Set hhmemb to totadult and tchild sum if hhmemb is not given ( #540 )
...
* Set hhmemb to totadult and tchild sum if hhmemb is not given
Co-authored-by: Ted <tedbooton@gmail.com>
Co-authored-by: Dushan <dushan@madetech.com>
* lint
* update method
* calculate hhmemb from details provided
Co-authored-by: Ted <tedbooton@gmail.com>
Co-authored-by: Dushan <dushan@madetech.com>
3 years ago
Ted
d762f4ac05
derive if ethnic has been refused from ethnic group
3 years ago
Ted-U
06bb64d20e
fixed total charge bug ( #529 )
...
* fixed total charge bug, when maximum value is exceeded the total will now continue to work
* Remove binding.pry left accidentally
3 years ago
Dushan Despotovic
6818a51180
Fix all failing specs
...
This commit fixes the tests that failed as a result of the introduction
of the created_by column in the case log table. The tests were failing as
it is now necessary to have a created_by for a case log
3 years ago
kosiakkatrina
e70627bcf4
make previous_la_known dynamically optional ( #527 )
3 years ago
baarkerlounger
bf4733679a
Reset checkbox answer option answers when the question has been invalidated by other answers
3 years ago
Stéphane Meny
2643e707ae
Update hbrentshortfall values and import corrections ( #514 )
3 years ago
Stéphane Meny
beedcf2d56
Fix errors during import process ( #507 )
3 years ago
kosiakkatrina
06adfbaf6d
remove la_known ( #505 )
...
* remove la_known
* lint
3 years ago
Stéphane Meny
bf972143a1
Import fixes and add update capabilities ( #500 )
3 years ago
baarkerlounger
e212612ee6
Add table
3 years ago
baarkerlounger
f8d16bf098
Import data
3 years ago
baarkerlounger
80363d3c19
Add spec fixture
3 years ago
Stéphane Meny
b8d60a86ea
Import changes ( #470 )
3 years ago
Dushan
33aa4a226f
Fix check answers bugs ( #474 )
...
* fix issues with check answers
* lint fixes
3 years ago
kosiakkatrina
2b9cb6f257
Fix financial validation ( #465 )
3 years ago
baarkerlounger
00ebde0401
CLDC-1074: Derive landlord value from owning organisation provider type ( #447 )
...
* Derive landlord from owning org provider type
* Use valid charge values
3 years ago
baarkerlounger
9dc7e574bf
CLDC-1116: Don't route to ecstat if age is under 16 ( #446 )
...
* Ecstat dependent on age
* Derive ecstat if age is under 16
* Test value label derivation
* Ensure derived option is still shown in check answers
3 years ago
baarkerlounger
f1a0931b9f
Time bombing your own specs is a bad time
3 years ago
baarkerlounger
be1417307c
CLDC-649: Export provider type from owning organisation ( #436 )
...
* Export provider type from owning org
* Export DB value rather than string
3 years ago
baarkerlounger
2776c061b6
CLDC-1063: Key Contacts ( #435 )
...
* Add data field
* Add field to views
* Only data coordinators can change role, dpo, keycontact
* Import key contact field
* Rubocop
* Import data accessors
* Handle non-unqiue email imports
3 years ago
kosiakkatrina
6c5391ad1c
Cldc 1065 soft validations ( #434 )
...
* change get_question form method to prioritise the routed to questions
* Add soft validation and interruption screen for basic rent
* get previous page that was routed to and display the same error for both soft validations
* Separate max and min error screens
* add a test for getting the previous page
* Update content and add more tests for previous page
3 years ago
kosiakkatrina
c43e730254
Cldc 657 full postcodes ( #421 )
...
* Rename full postcode columns
* Normalise the postcodes
* Fix test
3 years ago
baarkerlounger
41d6822606
Data protection confirmations import ( #412 )
...
* Failing test
* Import
* Cop fixes
* Preserve created at date
* Rubocop
* Time zones are hard
3 years ago
Dushan
b72eb9f3fc
CLDC-667 newprop derived variable ( #426 )
...
* Update keys of rsnvac for first lets
Making it match with what is in the data dictionary. It was a wuick enough
fix to be included in this branch since it pairs well with the newprop derived
variable implementation
* add newprop derived variable and tests
* fixes
* use ternary statement for newprop derivation
3 years ago
baarkerlounger
dec350e6f1
Relat data type ( #423 )
3 years ago
baarkerlounger
910f13d507
Household member validations ( #420 )
...
* Add missing ecstat validation
* Add compound validation errors to all involved fields
* Update ecstat values
* Update values in validations and tests
* Update rent rant values
* Add some helper methods for readability
3 years ago
Dushan
a23ddc6070
CLDC-651 refused derived variable ( #396 )
...
* refused derived variable
* add helper methods
* update schema
* fix failing spec
3 years ago
kosiakkatrina
e850ff06fd
Fix invalid page clearing ( #416 )
...
* Need to check text/numeric questions separately
* add a test for not clearing text fields
Co-authored-by: baarkerlounger <db@slothlife.xyz>
3 years ago
kosiakkatrina
612b29122b
Cldc 491 rent and charges validations ( #411 )
...
* Add rent ranges table and basic hard range validation
Co-authored-by: baarkerlounger <baarkerlounger@users.noreply.github.com>
* Add import rent ranges rake task
Co-authored-by: baarkerlounger <baarkerlounger@users.noreply.github.com>
* Update the rent range validation to validate all related fields and check for the correct collection year
* Add ranges data
* add error messages
* Add readme step
* extract get collection year method
* rename method
* create instead of find and create laRentRange record
Co-authored-by: baarkerlounger <baarkerlounger@users.noreply.github.com>
3 years ago
Dushan
3882461017
add wchchrg derived variable ( #413 )
3 years ago
Dushan
994f45fb96
add vday, vmonth and vyear fields ( #403 )
3 years ago
Dushan
719f43de2e
CLDC-656 housing needs derived variable ( #398 )
...
* add housing needs derived variable
* increase clarity
3 years ago
kosiakkatrina
c2c49924a3
Cldc 491 rent and charges validations (part 1) ( #388 )
...
* move age validation tests to shared validation spec
* Add brent/tshortfall validation
* update period mappings
* Add scharge validation
* update num of weeks from period mapping
* fix test
* change period mappings in test
* Add tests for floats
* change error message content
* add supported housing scharge validation
* add other landlord validations
* refactor
* refactor validation and tests
* Add supcharg validations and refactor
* add total charge calculations
* move constants
* Fix tests and add missing validation messages
3 years ago
Dushan
e56830cb9c
CLDC-815-long-term-vision-validation ( #387 )
...
* add validation for condition_effects
* fixes
* review changes
* lint fixes
* update wrapper method
3 years ago