From b32c6eb6cca97c146247005899555b4218a98963 Mon Sep 17 00:00:00 2001 From: Matt Wagner Date: Mon, 13 May 2024 16:31:56 -0400 Subject: [PATCH 1/2] LG-12086 | Renames CaptureDocStatusController changelog: Internal, Tech Debt, Renames CaptureDocStatusController to LinkSentPollController --- ...re_doc_status_controller.rb => link_sent_poll_controller.rb} | 2 +- config/routes.rb | 2 +- ...tus_controller_spec.rb => link_sent_poll_controller_spec.rb} | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename app/controllers/idv/{capture_doc_status_controller.rb => link_sent_poll_controller.rb} (98%) rename spec/controllers/idv/{capture_doc_status_controller_spec.rb => link_sent_poll_controller_spec.rb} (99%) diff --git a/app/controllers/idv/capture_doc_status_controller.rb b/app/controllers/idv/link_sent_poll_controller.rb similarity index 98% rename from app/controllers/idv/capture_doc_status_controller.rb rename to app/controllers/idv/link_sent_poll_controller.rb index bcc8907d953..159d14d881b 100644 --- a/app/controllers/idv/capture_doc_status_controller.rb +++ b/app/controllers/idv/link_sent_poll_controller.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Idv - class CaptureDocStatusController < ApplicationController + class LinkSentPollController < ApplicationController include Idv::AvailabilityConcern before_action :confirm_two_factor_authenticated diff --git a/config/routes.rb b/config/routes.rb index d35856e3b40..0cf832da440 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -351,7 +351,7 @@ put '/hybrid_handoff' => 'hybrid_handoff#update' get '/link_sent' => 'link_sent#show' put '/link_sent' => 'link_sent#update' - get '/link_sent/poll' => 'capture_doc_status#show', as: :capture_doc_status + get '/link_sent/poll' => 'link_sent_poll#show' get '/ssn' => 'ssn#show' put '/ssn' => 'ssn#update' get '/verify_info' => 'verify_info#show' diff --git a/spec/controllers/idv/capture_doc_status_controller_spec.rb b/spec/controllers/idv/link_sent_poll_controller_spec.rb similarity index 99% rename from spec/controllers/idv/capture_doc_status_controller_spec.rb rename to spec/controllers/idv/link_sent_poll_controller_spec.rb index 9638ce86b28..69d97c6a15b 100644 --- a/spec/controllers/idv/capture_doc_status_controller_spec.rb +++ b/spec/controllers/idv/link_sent_poll_controller_spec.rb @@ -1,6 +1,6 @@ require 'rails_helper' -RSpec.describe Idv::CaptureDocStatusController do +RSpec.describe Idv::LinkSentPollController do let(:user) { build(:user) } let(:doc_auth_response) do DocAuth::Response.new( From 30822ef58f80796896adec638ee3b7c186a1e9a9 Mon Sep 17 00:00:00 2001 From: Matt Wagner Date: Mon, 13 May 2024 16:38:26 -0400 Subject: [PATCH 2/2] Fixes broken link. D'oh! --- app/views/idv/link_sent/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/idv/link_sent/show.html.erb b/app/views/idv/link_sent/show.html.erb index d36dae75700..b3bb506b4ef 100644 --- a/app/views/idv/link_sent/show.html.erb +++ b/app/views/idv/link_sent/show.html.erb @@ -42,7 +42,7 @@ <% if FeatureManagement.doc_capture_polling_enabled? %> <%= content_tag 'script', '', data: { - status_endpoint: idv_capture_doc_status_url, + status_endpoint: idv_link_sent_poll_url, } %> <%= javascript_packs_tag_once 'doc-capture-polling' %> <% end %>