JG
b68695b50f
tenancy_code -> tenant_code
3 years ago
JG
0689b141ca
final lint
3 years ago
JG
70599cdf18
refactored model tests
3 years ago
JG
1b0f120be8
renamed and used geenric search component
3 years ago
JG
d400e19c52
rubocop
3 years ago
JG
f93557ea90
renamed serach to filter and more precise tests
3 years ago
JG
0abd6ca9cb
postcode searching tests
3 years ago
JG
b060fbf17f
#search_by including propcode test
3 years ago
JG
5b9a843bd2
#search_by_propcode failing test
3 years ago
JG
3670a95833
reafctored naming in scope search tests
3 years ago
JG
71cb91facb
added scope for searching by tests using either id or tenancy code
3 years ago
JG
446ceb21fb
scope to search by tenancy code and checking correct instance returned
3 years ago
JG
12132a861f
scope to search by id
3 years ago
Stéphane Meny
90c4ed4eec
Handles unicode characters in postcode ( #612 )
3 years ago
baarkerlounger
c6958aceb0
CLDC-1217: Retirement soft validation ( #586 )
...
* Don't trigger soft validation if tenant prefers not to say
* Update gender content
* Fix spec description
3 years ago
baarkerlounger
488f79a5d3
CLDC-1101: Case log filter by organisation ( #522 )
...
* Rename org filter
* Ensure filters work when ID is passed
* UI init
* Lint
* Fix filter nesting
* Reduce width
* Set checked status of filters correctly
* Test filter presence
* Add filter test
* Rubocop
* Tweak styles for autocomplete within filter
Co-authored-by: Paul Robert Lloyd <me+git@paulrobertlloyd.com>
3 years ago
Ted-U
5a4275abcc
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
fc706ab6a6
Remove needs type question until we support supported housing logs ( #569 )
3 years ago
baarkerlounger
e64cd6f926
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
8f90333a3f
Enable dynamically dependent answer options
3 years ago
Dushan Despotovic
10507fa5a8
lint fixes
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
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
kosiakkatrina
06adfbaf6d
remove la_known ( #505 )
...
* remove la_known
* lint
3 years ago
kosiakkatrina
51a1c2c7e3
Cldc 1163 next incomplete section ( #496 )
...
* Remove Save and go to submit
* Update hidden_in_check_answers
* Add la_known to dynamically not required questions if postcode_known is yes or not filled in
* infer the correct field value and remove irrelevant dynamically not required line
3 years ago
baarkerlounger
e6e2c00abd
Add validation
3 years ago
Stéphane Meny
ed9a32a7fb
Correct weekly income calculation based on a given yearly income ( #483 )
3 years ago
Stéphane Meny
b8d60a86ea
Import changes ( #470 )
3 years ago
kosiakkatrina
b9d8ba7933
Fix saving date ( #472 )
3 years ago
kosiakkatrina
919f25dd74
Add user filter ( #467 )
...
* Add user filter
* Add unit tests for user scope
3 years ago
kosiakkatrina
9a765a6415
Add year filter ( #464 )
...
* add year filter
* update text and filter order
* fix typo
* extract partials
* add tests with 2 filters
* Allow OR filters within scope categories and AND filters across them
* Rubocop
* Remove some of the N+1 query madness by preloading required organisations
* Refactor scopes
* Fix new specs
* unticked checkboxes by deault
* fix test
Co-authored-by: baarkerlounger <db@slothlife.xyz>
Co-authored-by: baarkerlounger <5101747+baarkerlounger@users.noreply.github.com>
3 years ago
kosiakkatrina
868de89234
Update soft rent validations messages ( #453 )
...
* Update soft rent validations messages
* fix suffix and to_s for check_answers symbol
* rubocop
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
kosiakkatrina
c43e730254
Cldc 657 full postcodes ( #421 )
...
* Rename full postcode columns
* Normalise the postcodes
* Fix test
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
de7ab9db1c
Other household members derived ( #425 )
3 years ago
baarkerlounger
dec350e6f1
Relat data type ( #423 )
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
Dushan
3882461017
add wchchrg derived variable ( #413 )
3 years ago
baarkerlounger
0142d476ca
Reset all invalidated page questions ( #409 )
...
* Reset all invalidated page questions
* Spec
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
8d861f4d20
CLDC-812 rent type validation ( #391 )
...
* intermediate_rent_product_name validation
* add wrapper method
* include in case log
* review changes
3 years ago
baarkerlounger
ea6122fe99
CLDC-663: Weekly total shortfall derived variable ( #385 )
...
* Update HB value mappings
* Derive Weekly shortfall value
* Reset weekly total shortfall when not applicable
3 years ago
baarkerlounger
9be4178855
Derived rent and charges variables ( #379 )
...
* Derive weekly rent
* Derive weekly charge fields
* Change method to hash constant
* Unify calculation so we can remove case statement
3 years ago
baarkerlounger
7d3a31d4cd
CLDC-902: London location validation ( #378 )
...
* Also add london borough error message to postcode field
* Rubocop
* Test timeout rescue
3 years ago