kosiakkatrina
b038e0a16f
CLDC-2810 Correct addresses from csv ( #1957 )
...
* Updating importing lettings addresses form csv
* Add import_sales_addresses_from_csv rake
* Allow correcting addresses from both templates
* escape .
3 years ago
kosiakkatrina
a8e5bd0444
CLDC-2810 Create all addresses CSV ( #1953 )
...
* Add rake tasks for creating all addresses CSV
* Write headers if logs don't exist, update header names
* Rename method
3 years ago
Kat
c62c97ee54
update emails
3 years ago
Kat
a12339f58d
Add issue explanation to the email
3 years ago
Kat
fa9c299141
Pass in organisations to skip instead of using an env var
3 years ago
Kat
193e7fe1ed
Move constant
3 years ago
Kat
00abcf4713
Add sales csv rake task
3 years ago
Kat
669e76ceb8
Skip uprn issue for specified orgs
3 years ago
Kat
306dd14ce0
Write wrong uprn logs to csv
3 years ago
Kat
5c7640cdbb
Put all log in the same csv
3 years ago
Kat
d9270d1e2c
Add send missing town or city csv rake task
3 years ago
Kat
160f7ebf4b
Add rake task
3 years ago
kosiakkatrina
e7b5d701cd
Reimport postcodes for 2022 ( #1956 )
3 years ago
kosiakkatrina
7a4edeb17c
Reimport lettings log form ID ( #1950 )
3 years ago
kosiakkatrina
fd149de15b
CLDC-2747 Export details not known values ( #1938 )
...
* Adjust xml export to export refused details, update refused to take into account details_unknown
* Recalculate refused values for lettings logs with unknown person details
* Export refused values in the csv
* Update file names
3 years ago
kosiakkatrina
6c88ddda93
CLDC-2795 Only update 2022 and 2023 logs ( #1933 )
...
* Only update 2022 and 2023 logs
* Add tests
3 years ago
kosiakkatrina
de5bfe6597
Reimport childrens social care referral values ( #1926 )
3 years ago
kosiakkatrina
2f67b8a0e9
CLDC-2790 Reimport person details ( #1925 )
...
* Move single person details if person 2 details are missing
* Allow reimporting details for any single missing person
* Reimport multiple missing person details, skip logs with no extra person details
* Skip update if record does not have hhmemb value
* Refactor
* Rebase change
* Extract method
3 years ago
kosiakkatrina
6dc2b2a5d7
CLDC-2729 Reimport referral for general needs PRP ( #1923 )
...
* Reimport referral for general needs PRP
* test
3 years ago
kosiakkatrina
3b575409e1
CLDC-2770 Reimport prefers not to say for gender and relationship ( #1922 )
...
* Update sex and relat for a single person
* Allow updates for multiple people
* Add option to the rake task
3 years ago
kosiakkatrina
44797637fb
CLDC-2769 Reimport unassigned logs ( #1919 )
...
* Reimport logs with created by missing
* Reimport unassigned sales logs
3 years ago
kosiakkatrina
16d2836d08
CLDC-2748 Update min value for age ( #1918 )
...
* Update min value for age
* Update existing 0 age values to 1
3 years ago
kosiakkatrina
f72349f81e
Update homeless values ( #1917 )
3 years ago
kosiakkatrina
6310a48610
CLDC-2795 Confirm scharge, pscharge and supcharge soft validations ( #1915 )
...
* Confirm scharge, pscharge and supcharge soft validations for completed logs
* This test seems flaky, likely because of the order, so reducing #of logs
3 years ago
kosiakkatrina
f59c67b651
Add reimport reason update_field case ( #1896 )
3 years ago
kosiakkatrina
11ca1bbcff
CLDC-2724 Add missing data reporting for imported lettings logs ( #1892 )
...
* Add generate_missing_answers_report task and method
* Create example report
* change task description
* refactor
* Report old form id instead of old id
3 years ago
kosiakkatrina
c3636c1286
CLDC-2696 Add reimport addresses task ( #1891 )
...
* Add update address service for lettings
* Only process collections 2023 onwards
* Update app/services/imports/lettings_logs_field_import_service.rb
Co-authored-by: natdeanlewissoftwire <94526761+natdeanlewissoftwire@users.noreply.github.com>
* Refactor postcode_known
* test
---------
Co-authored-by: natdeanlewissoftwire <94526761+natdeanlewissoftwire@users.noreply.github.com>
3 years ago
kosiakkatrina
c4c93dd4cd
CLDC-2713 Add a rake task to reimport addresses from csv ( #1890 )
...
* Add a rake task to reimport addresses from csv
* Add empty line
* Update postcode known
* Update values updated at column
3 years ago
kosiakkatrina
3c0a644e08
Make sure we pass an integer to export_xml_lettings_logs ( #1880 )
3 years ago
kosiakkatrina
3bd6cab5c5
CLDC-2684 Allow full export per year ( #1875 )
...
* Allow full export for specific year
* Update production manifest
* Call export_xml_lettings_logs with nil if no year is given
* Rename method
3 years ago
Jack
abf9aa07a9
CLDC-2665 Switch lettings ppcodenk ( #1854 )
...
* Switch lettings ppcodenk
* Address Kat's comment
* separate process postcode methods
* tests
* Update row parsers
* Update conditionals
* Add rake task to update ppcodenk
* Bring back value_is_no?
---------
Co-authored-by: Kat <katrina@kosiak.co.uk>
3 years ago
kosiakkatrina
f447939336
CLDC-2663 Import sales form id ( #1851 )
...
* Add old form id column
* Import old for id
* Export old_form_id instead of old_id
* Add old_form_id import task and service
* rename a spec file
3 years ago
kosiakkatrina
5ec33c7938
CLDC-2642 Make other client group mandatory ( #1871 )
...
* Make has_other_client_group a mandatory question
* Add a rake task to update has_other_client_group
* test and lint
* Set has_other_client group on import
3 years ago
kosiakkatrina
63f4599183
Run export service directly ( #1868 )
3 years ago
natdeanlewissoftwire
8448b559a8
Add owning org id to field import task for sales ( #1850 )
...
* feat: add field import service and test
* feat: use old visible org id
* feat: tweak test
* feat: update rake task
* feat: split sales and lettings rake tasks
* feat: update rake task
* feat: PR comment tweaks
* feat: rename and update tests
* refactor: lint
3 years ago
kosiakkatrina
c3b3c6200a
CLDC-2602 Only log errors into the s3 ( #1843 )
...
* Only log errors into the s3
* lint
3 years ago
kosiakkatrina
abe3ef670e
update updated_at column when updating incref ( #1838 )
3 years ago
kosiakkatrina
2369eefd0c
Fix tests after rebase ( #1839 )
3 years ago
kosiakkatrina
b93a6456d4
CLDC-2602 Save import logs to S3 ( #1829 )
...
* Add logger that writes to s3 file
* Add logger for logs import
* remove unused method
* Update organisation import service spec
* Partition log files per org
3 years ago
kosiakkatrina
d9f498912b
Skip validations when updating incref ( #1837 )
3 years ago
Chirag-Bhatti
4083d93e77
CLDC-2539: configure application for PaaS and AWS ( #1822 )
...
* feat: update application to use non paas and paas configuration services, add helper to determine if platform is paas
feat: don't double-instantiate the configuration service
feat: add self. to is_paas? definition, and require module in rack_attack
chore: lint
* test: update suite to work with new paas/env config service logic
test: new PlatformHelper
* fix: update full import tests to check paas and non-paas config services
* fix: update test descriptions and remove unrequired line
---------
Co-authored-by: Sam Seed <sam.seed@softwire.com>
3 years ago
kosiakkatrina
8a3f18d3ac
CLDC-2621 Flag orgs without coordinators ( #1818 )
...
* Add import report service
* Call ImportReportService from rake task
* Move generate_logs_report to import service
* Add organisations without active data coordinators to the report
* pluralize method names
* update suffixes
3 years ago
kosiakkatrina
4693ed58b3
Infer Incref ( #1823 )
3 years ago
kosiakkatrina
9abde36f94
CLDC-2570 Add merge organisations service and rake task ( #1801 )
...
* Create merge_organisations_service
* Refactor tests
* update schemes merge
* rename scope
* merge letings logs
* Merge sales logs
* refactor merge organisations service
* Rollback transaction if there's an error merging orgs
* Add logging
* add merge_organisations rake task
* mark organisations as merged
* update rake task
* Update rake task add tests for multiple merging orgs
* Add more tests for merging relationships
* Update merge logging
* set absorbing organisation relationship
3 years ago
Rachael Booth
b8c01e0caa
CLDC-2591: Rewrite import task ( #1803 )
...
* Rewrite import task
* Fix lettings log import service test
3 years ago
kosiakkatrina
b1f35e7364
Add rake task to remove placeholder deactivation periods ( #1770 )
3 years ago
Jack
a1095f9526
CLDC-2490 Tidy up DSA model ( #1766 )
...
* Remove new_data_protection_confirmation? flag
* Update schema
- drop index
- add org and user data to dpc table
* Persist org and user data at import
* Do not show invalid emails
* Persist user and org data while signing agreement
* Add migration to persist org and user data on DPC
* Rebase fix
* fix typo
3 years ago
natdeanlewissoftwire
e98922511e
Reimport offered ( #1734 )
...
* Add method for importing the 'offered' field into already imported lettings logs
* Add minimal tests
* feat: update tests
* feat: update take task
* feat: update rake task
* feat: update rake task
* feat: update rake task spec
* feat: update rake task and tests
---------
Co-authored-by: Rachael Booth <rachael.booth@softwire.com>
3 years ago
natdeanlewissoftwire
ce0c9d065b
Reimport offered ( #1731 )
...
* Add method for importing the 'offered' field into already imported lettings logs
* Add minimal tests
* feat: update tests
* feat: update take task
* feat: update rake task
* feat: update rake task
* feat: update rake task spec
---------
Co-authored-by: Rachael Booth <rachael.booth@softwire.com>
3 years ago
Jack
677714c336
Fix bug in DPC import script ( #1723 )
...
* Add test as a proof of the bug we have in prod
* Refactor script to create users with unique email
* Add rake task to import missing data protection confirmations
3 years ago