Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2024 Transfer assessment #848

Merged
merged 30 commits into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
5903d9c
CAS version of the transfer assessment
eanders Aug 16, 2024
6e19610
Merge branch 'release-72' into ea/transfer-2024
eanders Jan 2, 2025
f381bd9
Q5 for transfer assessment, rule and sync logic
eanders Jan 2, 2025
b9edcf1
Ignore erb files in rubocop check
eanders Jan 2, 2025
1f5486c
Expose PSH required on client dashboard
eanders Jan 2, 2025
7743427
Merge branch 'release-72' into ea/transfer-2024
eanders Jan 6, 2025
7bceb04
Merge branch 'release-72' into ea/transfer-2024
eanders Jan 8, 2025
50c5f1c
Merge branch 'release-72' into ea/transfer-2024
eanders Jan 8, 2025
1a67dac
Merge branch 'release-73' into ea/transfer-2024
eanders Jan 14, 2025
a65f24d
Merge branch 'release-72' into ea/transfer-2024
eanders Jan 14, 2025
829ec85
Family pathways 2024 (#899)
eanders Jan 15, 2025
07d74b2
Merge branch 'release-72' into ea/transfer-2024
eanders Jan 16, 2025
a947ade
Handle empty service needs
eanders Jan 16, 2025
a83119e
Merge branch 'release-72' into ea/transfer-2024
eanders Jan 18, 2025
ea33eb7
Q9 and Q9a updates; Bitly link updates
eanders Jan 18, 2025
4b1ef7d
Merge branch 'release-73' into ea/transfer-2024
eanders Jan 22, 2025
2da30d7
Merge branch 'release-73' into ea/transfer-2024
eanders Jan 22, 2025
1b0b354
Pathways updates
eanders Jan 23, 2025
1263f55
Mark client unavailable if the availability question is skipped
eanders Jan 23, 2025
4bd0c33
Toggles for Q5A, Q5B, Q6
eanders Jan 23, 2025
4a6d76d
Toggle visibility of Q5 dependents
eanders Jan 27, 2025
526a635
Only calculate scores if you say yes or maybe to Q5
eanders Jan 28, 2025
0897659
Hide Family Pathways in production
eanders Jan 31, 2025
9f33c9a
Expose total days homeless on client dashboard, used for family pathways
eanders Feb 5, 2025
28c1a9a
Merge branch 'release-73' into ea/transfer-2024
eanders Feb 5, 2025
4d1eec7
Capture eviction history differently
eanders Feb 6, 2025
75e5762
Differentiate more family pathways from individual pathways
eanders Feb 6, 2025
46d0b73
Missing file
eanders Feb 6, 2025
4ea5ef4
Remove debugging
eanders Feb 8, 2025
6f09248
Review changes
eanders Feb 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
run: |
# Ignore files we don't control the format of
ignore_patterns="db/schema.rb\|bin/rails\|bin/rake\|bin/bundle"
files=`echo "${ALL_CHANGED_FILES}" | tr " " "\n" | grep -v $ignore_patterns | grep "**/*.rb" | tr "\n" " ./"`
files=`echo "${ALL_CHANGED_FILES}" | tr " " "\n" | grep -v $ignore_patterns | grep "**/*\.rb" | tr "\n" " ./"`
num=`echo $files | wc -w`
echo $files
if [ $num -gt 0 ]; then bundle exec rubocop --config ./.rubocop.yml $files; else echo "No changed ruby files"; fi
10 changes: 0 additions & 10 deletions app/controllers/non_hmis_assessments_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ def create
@assessment.update(opts)
@non_hmis_client.update(assessed_at: @assessment.entry_date) if @assessment.entry_date
if @assessment.save
enforce_no_transfer_2024!
redirect_to @non_hmis_client
else
render :new
Expand All @@ -44,21 +43,12 @@ def update
opts = clean_assessment_params(@assessment.assessment_params(params))
if @assessment.update(opts)
@non_hmis_client.update(assessed_at: @assessment.entry_date) if @assessment.entry_date
enforce_no_transfer_2024!
redirect_to @non_hmis_client
else
render :edit
end
end

# TODO: Until we have a Transfer 2024 assessment, just convert all transfer assessments to 2021 assessments
private def enforce_no_transfer_2024!
NonHmisAssessment.where(assessment_name: :DeidentifiedPathwaysVersionFourTransfer).
update_all(assessment_name: :DeidentifiedPathwaysVersionThreeTransfer, type: :DeidentifiedPathwaysVersionThree)
NonHmisAssessment.where(assessment_name: :IdentifiedPathwaysVersionFourTransfer).
update_all(assessment_name: :IdentifiedPathwaysVersionThreeTransfer, type: :IdentifiedPathwaysVersionThree)
end

def destroy
@assessment.destroy
flash[:notice] = 'Assessment successfully deleted.'
Expand Down
3 changes: 3 additions & 0 deletions app/models/cas/update_clients.rb
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,9 @@ def project_client_attributes
:ongoing_es_enrollments,
:ongoing_so_enrollments,
:last_seen_projects,
:household_dv_survivor,
:disqualified_for_state_assistance,
:psh_required, # Transfer V4 Q5
]
end

Expand Down
23 changes: 23 additions & 0 deletions app/models/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,15 @@ def need_daily_assistance_for_export
bool_for_export(need_daily_assistance)
end

def psh_required_for_export
case psh_required
when 'yes', 'no'
psh_required.capitalize
else
'Unknown'
end
end

private def numeric_bool_for_export(value)
return 'Yes' if value.to_s == '1'
return 'No' if value.to_s == '0'
Expand Down Expand Up @@ -1256,6 +1265,20 @@ def self.prioritized_columns_data
description: nil,
type: 'String',
},
household_dv_survivor: {
title: 'Household member experiencing domestic violence',
description: nil,
type: 'Boolean',
},
disqualified_for_state_assistance: {
title: 'Ineligible for state emergency assistance',
description: nil,
type: 'Boolean',
},
psh_required: {
title: 'In need of Permanent Supportive Housing',
type: 'String',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need description: nil here too?

},
}
end

Expand Down
Loading