Skip to content
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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

module Idv
class CaptureDocStatusController < ApplicationController
class LinkSentPollController < ApplicationController
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Note from the filename at the top that this (and the test) are also renamed. GitHub doesn't make this super obvious.

include Idv::AvailabilityConcern

before_action :confirm_two_factor_authenticated
Expand Down
2 changes: 1 addition & 1 deletion app/views/idv/link_sent/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>
Expand Down
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks like there might be at least one reference to the capture_doc_status name that needs to be updated?

status_endpoint: idv_capture_doc_status_url,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ha, I think we found this about simultaneously. This was the only reference.

get '/link_sent/poll' => 'link_sent_poll#show'
get '/ssn' => 'ssn#show'
put '/ssn' => 'ssn#update'
get '/verify_info' => 'verify_info#show'
Expand Down
Original file line number Diff line number Diff line change
@@ -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(
Expand Down