From 3ba09ef2c14cad28a7b3e2afbef7821597b02a8e Mon Sep 17 00:00:00 2001 From: Elliot Anders Date: Thu, 16 May 2024 12:06:01 -0400 Subject: [PATCH 1/3] Hot fix for empty data --- app/views/clients/_pathways_homelessness.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/clients/_pathways_homelessness.haml b/app/views/clients/_pathways_homelessness.haml index 9663c42ea..3f603e7d1 100644 --- a/app/views/clients/_pathways_homelessness.haml +++ b/app/views/clients/_pathways_homelessness.haml @@ -33,7 +33,7 @@ %li.c-detailed-list__item %span.c-detailed-list__label Last Seen Locations %span.c-detailed-list__value.text-right - - @client.last_seen_projects.each do |project| + - @client.last_seen_projects&.each do |project| .contact= project %li.c-detailed-list__item %span.c-detailed-list__label= @column_data[:chronic_homeless][:title] From dd1daed94396c2f15f2d1ae4ab93aba4bd2df71d Mon Sep 17 00:00:00 2001 From: Elliot Anders Date: Tue, 28 May 2024 13:40:28 -0400 Subject: [PATCH 2/3] Use new gender columns for non-HMIS export --- app/models/deidentified_client.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/app/models/deidentified_client.rb b/app/models/deidentified_client.rb index 23b03a1d3..7c931d9cf 100644 --- a/app/models/deidentified_client.rb +++ b/app/models/deidentified_client.rb @@ -76,7 +76,11 @@ def download_headers 'Requires elevator access', Translation.translate('Part of a family'), Translation.translate('Chronically homeless family'), - 'Gender', + 'Woman (Girl, if child)', + 'Man (Boy, if child)', + 'Non-Binary', + 'Transgender', + 'Questioning', Translation.translate('Date days homeless verified'), 'Who verified days homeless', 'Total monthly income', @@ -129,7 +133,11 @@ def download_data current_assessment.requires_elevator_access, current_assessment.family_member, current_assessment.calculated_chronic_homelessness, - gender, + female, + male, + no_single_gender, + transgender, + questioning, current_assessment.date_days_homeless_verified, current_assessment.who_verified_days_homeless, current_assessment.income_total_monthly, From f80316b3b9b534a9fb1c05686f66ffa3d24dc209 Mon Sep 17 00:00:00 2001 From: Elliot Anders Date: Tue, 28 May 2024 13:44:29 -0400 Subject: [PATCH 3/3] Gem Security update --- Gemfile.lock | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 911b9d7b3..5056effd2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -543,7 +543,8 @@ GEM responders (3.1.1) actionpack (>= 5.2) railties (>= 5.2) - rexml (3.2.6) + rexml (3.2.8) + strscan (>= 3.0.9) roo (2.10.1) nokogiri (~> 1) rubyzip (>= 1.3.0, < 3.0.0) @@ -654,6 +655,7 @@ GEM net-sftp (>= 2.1.2) net-ssh (>= 2.8.0) ssrf_filter (1.1.2) + strscan (3.1.0) temple (0.10.3) terser (1.2.2) execjs (>= 0.3.0, < 3)