Skip to content

Commit 6e767b1

Browse files
kristinmerbachsri49
authored andcommitted
manual verification required feature (#6111)
* manual verification required feature * system file * forgot to push spec files
1 parent b6443da commit 6e767b1

19 files changed

Lines changed: 217 additions & 57 deletions

File tree

app/controllers/application_controller.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,4 +561,13 @@ def set_flash_by_announcement
561561
{ is_announcement: true, announcement: announcement }
562562
end
563563
end
564+
565+
# This is a method to redirect the user to the upload ridp document page if they have an out of state address or are homeless
566+
def manual_verification_of_oos_addresses
567+
return unless EnrollRegistry.feature_enabled?(:manual_verification_of_oos_addresses)
568+
set_current_person unless @person.present?
569+
return unless @person.must_be_verified_manually?
570+
571+
redirect_to upload_ridp_document_insured_consumer_role_index_path
572+
end
564573
end

app/controllers/insured/consumer_roles_controller.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class Insured::ConsumerRolesController < ApplicationController
1919
before_action :sanitize_contact_method, only: EnrollRegistry.feature_enabled?(:enroll_sms_notifications) ? [:create_contact_preferences] : [:update]
2020
before_action :validate_person_match, only: [:update]
2121
before_action :redirect_to_contact_preferences_if_invalid, only: [:edit]
22+
before_action :manual_verification_of_oos_addresses, only: [:ridp_agreement]
2223

2324
FIELDS_TO_ENCRYPT = [:ssn,:dob,:first_name,:middle_name,:last_name,:gender,:user_id].freeze
2425

@@ -311,6 +312,7 @@ def upload_ridp_document
311312
set_consumer_bookmark_url
312313
set_current_person
313314
@person.consumer_role.move_identity_documents_to_outstanding
315+
@manual_verification_only = @person.must_be_verified_manually?
314316
respond_to :html
315317
end
316318

app/controllers/insured/fdsh_ridp_verifications_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class FdshRidpVerificationsController < ApplicationController
99
before_action :set_current_person
1010
before_action :set_cache_headers, only: [:failed_validation]
1111
before_action :set_consumer_bookmark_url, only: [:service_unavailable, :failed_validation]
12+
before_action :manual_verification_of_oos_addresses
1213

1314
def new
1415
authorize @person, :complete_ridp?

app/controllers/insured/interactive_identity_verifications_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ class InteractiveIdentityVerificationsController < ApplicationController
66

77
before_action :enable_bs4_layout
88
before_action :set_current_person
9+
before_action :manual_verification_of_oos_addresses
910
before_action :set_consumer_bookmark_url, only: [:service_unavailable, :failed_validation]
1011

1112
layout :determine_layout

app/models/person.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1627,6 +1627,14 @@ def all_active_role_names
16271627
@all_active_role_names = role_names_based_on_status_of_roles
16281628
end
16291629

1630+
# for use in must manually verify case
1631+
# what justifies manual override may change in the future
1632+
def must_be_verified_manually?
1633+
return true if is_homeless?
1634+
return true if home_address.blank?
1635+
home_address.state != aca_state_abbreviation
1636+
end
1637+
16301638
private
16311639

16321640
def changed_address_attributes
Lines changed: 11 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,13 @@
1-
<% if @bs4 %>
2-
<%= render partial: 'shared/progress_side_nav', locals: {nav: sign_up_nav_options(1)} %>
3-
<h1><%= l10n("verify_identity") %></h1>
4-
<% if EnrollRegistry.feature_enabled?(:ridp_h139) %>
5-
<p><%= l10n("insured.consumer_roles.upload_ridp_documents.ridp_h139_info") %></p>
6-
<%= render partial: 'insured/fdsh_ridp_verifications/options_to_verify_identity' %>
7-
<%= render partial: 'shared/application_types_list' %>
8-
<div class="outstanding-ridp-documents">
9-
<%= render partial: 'insured/fdsh_ridp_verifications/outstanding_ridp_documents' %>
10-
</div>
11-
<% else %>
12-
<p><%= l10n("insured.consumer_roles.upload_ridp_documents.non_ridp_h139_info") %></p>
13-
<%= render partial: 'insured/interactive_identity_verifications/options_to_verify_identity' %>
14-
<%= render partial: 'shared/application_types_list' %>
15-
<br>
16-
<div class="outstanding-ridp-documents">
17-
<%= render partial: 'insured/interactive_identity_verifications/outstanding_ridp_documents' %>
18-
</div>
19-
<% end %>
20-
<%= render partial: "shared/progress_navigation_buttons", locals: {next_link: ridp_redirection_link(@person), disable_link: ridp_step_2_disabled(@person, @person.consumer_role.application_verified?, @person.consumer_role.identity_verified?)} %>
1+
<%= render partial: 'shared/progress_side_nav', locals: {nav: sign_up_nav_options(1)} %>
2+
<h1><%= l10n("verify_identity") %></h1>
3+
<% if @manual_verification_only %>
4+
<p><%= l10n("insured.consumer_roles.upload_ridp_documents.manual_verification_only_info", site_long_name: site_long_name) %></p>
215
<% else %>
22-
<div class="content">
23-
<div class="container">
24-
<div class="row">
25-
<div class="col-lg-7 col-md-7 col-sm-8 col-xs-12">
26-
<% if EnrollRegistry.feature_enabled?(:ridp_h139) %>
27-
<h4>Allowing Experian to verify your identity is the fastest way to continue your application. If you change your mind and want to use Experian, go back to the previous page.</h4>
28-
<%= render partial: 'insured/fdsh_ridp_verifications/options_to_verify_identity' %>
29-
<%= render partial: 'shared/application_types_list' %>
30-
<br>
31-
<div class="outstanding-ridp-documents">
32-
<%= render partial: 'insured/fdsh_ridp_verifications/outstanding_ridp_documents' %>
33-
</div>
34-
<% else %>
35-
<h4>Allowing Experian to verify your identity is the fastest way to continue your application. If you change your mind, go back to the previous page.</h4>
36-
<%= render partial: 'insured/interactive_identity_verifications/options_to_verify_identity' %>
37-
<%= render partial: 'shared/application_types_list' %>
38-
<br>
39-
<div class="outstanding-ridp-documents">
40-
<%= render partial: 'insured/interactive_identity_verifications/outstanding_ridp_documents' %>
41-
</div>
42-
<% end %>
43-
</div>
44-
45-
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-12 col-md-offset-2 col-sm-offset-1 right-section">
46-
<%= render partial: 'shared/individual_progress', locals: {step: '2', next_link: ridp_redirection_link(@person), identity_verified: @person.consumer_role.identity_verified?, application_verified: @person.consumer_role.application_verified?} %>
47-
</div>
48-
</div>
49-
</div>
50-
</div>
6+
<p><%= l10n("insured.consumer_roles.upload_ridp_documents.ridp_h139_info") %></p>
517
<% end %>
8+
<%= render partial: 'insured/fdsh_ridp_verifications/options_to_verify_identity' %>
9+
<%= render partial: 'shared/application_types_list' %>
10+
<div class="outstanding-ridp-documents">
11+
<%= render partial: 'insured/fdsh_ridp_verifications/outstanding_ridp_documents' %>
12+
</div>
13+
<%= render partial: "shared/progress_navigation_buttons", locals: {next_link: ridp_redirection_link(@person), disable_link: ridp_step_2_disabled(@person, @person.consumer_role.application_verified?, @person.consumer_role.identity_verified?), dont_show_prev_button: @manual_verification_only} %>

app/views/insured/fdsh_ridp_verifications/_options_to_verify_identity.html.erb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<p><%= l10n("insured.consumer_roles.upload_ridp_documents.ridp_options_to_verify", site_long_name: site_long_name) %>
1+
<% unless @manual_verification_only %>
2+
<p><%= l10n("insured.consumer_roles.upload_ridp_documents.ridp_options_to_verify", site_long_name: site_long_name) %>
3+
<% end %>
24
<p></p>
35
<% if EnrollRegistry.feature_enabled?(:paper_application_verification)%>
46
<ul>

config/client_config/dc/system/config/templates/features/enroll_app/enroll_app.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,9 @@ registry:
399399
- key: :taro_rebranding
400400
item: :taro_rebranding
401401
is_enabled: <%= ENV['TARO_REBRANDING_IS_ENABLED'] || false %>
402+
- key: :manual_verification_of_oos_addresses
403+
item: :manual_verification_of_oos_addresses
404+
is_enabled: <%= ENV['MANUAL_VERIFICATION_OF_OOS_ADDRESSES_IS_ENABLED'] || false %>
402405
- namespace:
403406
- :bootstrap_4
404407
features:

config/client_config/me/system/config/templates/features/enroll_app/enroll_app.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,9 @@ registry:
418418
- key: :taro_rebranding
419419
item: :taro_rebranding
420420
is_enabled: <%= ENV['TARO_REBRANDING_IS_ENABLED'] || false %>
421+
- key: :manual_verification_of_oos_addresses
422+
item: :manual_verification_of_oos_addresses
423+
is_enabled: <%= ENV['MANUAL_VERIFICATION_OF_OOS_ADDRESSES_IS_ENABLED'] || false %>
421424
- namespace:
422425
- :bootstrap_4
423426
features:

db/seedfiles/translations/en/me/insured.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
:'en.insured.consumer_roles.ridp_agreement.requirement_link_text' => "here",
9494
:'en.insured.consumer_roles.ridp_agreement.ridp_agreement_alert_msg' => "Please contact %{site_short_name} at %{contact_center_phone_number} for more info",
9595
:'en.insured.consumer_roles.upload_ridp_documents.header' => "Verify Identity",
96+
:'en.insured.consumer_roles.upload_ridp_documents.manual_verification_only_info' => "The %{site_long_name} team will need to review and approve what you upload before you can continue. This can take 3-5 business days.",
9697
:'en.insured.consumer_roles.upload_ridp_documents.ridp_h139_info' => "Allowing Experian to verify your identity is the fastest way to continue your application. If you change your mind and want to use Experian, go back to the previous page.",
9798
:'en.insured.consumer_roles.upload_ridp_documents.ridp_options_to_verify' => "If you cannot or do not want to verify your identity online using Experian, you need to upload document(s) proving your identity. The %{site_long_name} team will need to review and approve what you upload before you can continue. This can take 3-5 business days.",
9899
:'en.insured.consumer_roles.upload_ridp_documents.in_person' => "Apply in person",

0 commit comments

Comments
 (0)