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

clean up unused match decision reasons #872

Merged
merged 2 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
30 changes: 0 additions & 30 deletions app/models/match_decision_reasons/administrative_cancel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,36 +6,6 @@

module MatchDecisionReasons
class AdministrativeCancel < Base
def self.available(include_other: true, route: nil) # rubocop:disable Lint/UnusedMethodArgument
other = MatchDecisionReasons::Base.other.first
# none = OpenStruct.new(name: 'None', id: nil)
av = active.to_a
# av << none
if route.present?
av.reject! { |reason| route.removed_admin_reasons.include?(reason.name) } if route.removed_admin_reasons.any?
av += limited.where(name: route.additional_admin_reasons).to_a if route.additional_admin_reasons.any?
end
av << other

av
end

def self.available_for_provider_only(include_other: true, route: nil) # rubocop:disable Lint/UnusedMethodArgument
other = MatchDecisionReasons::Base.other.first
# none = OpenStruct.new(name: 'None', id: nil)
av = active.where(name: provider_only_options).to_a
av << other if include_other

av
end

def self.provider_only_options
[
'Vacancy should not have been entered',
'Vacancy filled by other client',
]
end

def title
Translation.translate('Administrative Cancelation')
end
Expand Down

This file was deleted.

13 changes: 0 additions & 13 deletions app/models/match_decision_reasons/dnd_staff_decline.rb

This file was deleted.

27 changes: 0 additions & 27 deletions app/models/match_decision_reasons/housing_subsidy_admin_decline.rb

This file was deleted.

This file was deleted.

13 changes: 0 additions & 13 deletions app/models/match_decision_reasons/mitigation_decline.rb

This file was deleted.

This file was deleted.

This file was deleted.

13 changes: 0 additions & 13 deletions app/models/match_decision_reasons/other.rb

This file was deleted.

13 changes: 0 additions & 13 deletions app/models/match_decision_reasons/shelter_agency_decline.rb

This file was deleted.

This file was deleted.

This file was deleted.

Loading