Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
f8d0bb5
Add columns to duplicate SSN reporting (LG-9191) (#7995)
zachmargolis Mar 15, 2023
51b4210
LG-9138: Allow state ID address fields in user PII (#7961)
Mar 15, 2023
2307d05
Update brakeman gem (#7998)
Mar 15, 2023
1335a87
Clean up `ResolutionProofingJob` tests (#7996)
jmhooper Mar 15, 2023
999a623
Reduce device/event transactions by wrapping multiple writes in one t…
Mar 15, 2023
d2784f5
Don't make a request to AAMVA if verification is guaranteed to fail (…
jmhooper Mar 15, 2023
ea8e163
Disable primary database prepared statements if using database socket…
Mar 15, 2023
3a53b78
Change the regular expression we use to determine if get to yes is vi…
jmhooper Mar 16, 2023
8629fb6
Disable advisory locks when using pgbouncer socket (#8003)
pauldoomgov Mar 16, 2023
099cf20
Remove `skip_legacy_state` method (#7991)
jmhooper Mar 16, 2023
a6b6ced
Add additional prompts to UUID lookup and review rake tasks (#8001)
stephencshelton Mar 16, 2023
3998362
LG-9020 update ssn content (#8004)
svalexander Mar 16, 2023
9662978
Update have_description accessibility matcher for feature spec compat…
aduth Mar 16, 2023
8340d0a
Remove send link step (#7929)
Mar 16, 2023
85ffbe7
LG-9050: Add password error handling (#7989)
jc-gsa Mar 16, 2023
ff5fe49
LG-9023: Remove phone helper text (#7917)
jc-gsa Mar 16, 2023
c0055b1
LG-9206 | Analytics logs irs_session_id (#8007)
n1zyy Mar 16, 2023
2bc0cf5
Lg 9089 user data ack (#7974)
ThatSpaceGuy Mar 16, 2023
6409bf6
Remove arcgis_search_enabled feature flag (#8006)
aduth Mar 17, 2023
7d6e6b9
LG-8887: Update Ready to Verify language to be simpler, more branded …
allthesignals Mar 17, 2023
a7b67a1
Remove custom initializers from GoodJob classes (#8015)
zachmargolis Mar 17, 2023
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 Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ GEM
debug_inspector (>= 0.0.1)
bootsnap (1.15.0)
msgpack (~> 1.2)
brakeman (5.4.0)
brakeman (5.4.1)
browser (5.3.1)
builder (3.2.4)
bullet (7.0.7)
Expand Down
6 changes: 0 additions & 6 deletions app/components/phone_input_component.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@
:phone,
class: 'usa-label',
) { t('two_factor_authentication.phone_label') } %>
<div class="js">
<%= f.hint(capture do %>
<%= t('forms.example') %>
<span class="phone-input__example"></span>
<% end) %>
</div>
<%= render ValidatedFieldComponent.new(
form: f,
name: :phone,
Expand Down
1 change: 1 addition & 0 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def analytics
sp: current_sp&.issuer,
session: session,
ahoy: ahoy,
irs_session_id: irs_attempts_api_session_id,
)
end

Expand Down
30 changes: 8 additions & 22 deletions app/controllers/concerns/idv/verify_info_concern.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,23 +97,23 @@ def async_state_done(current_async_state)
extra: {
address_edited: !!flow_session['address_edited'],
address_line2_present: !pii[:address2].blank?,
pii_like_keypaths: [[:errors, :ssn], [:response_body, :first_name]],
pii_like_keypaths: [[:errors, :ssn], [:response_body, :first_name],
[:state_id, :state_id_jurisdiction]],
},
)
log_idv_verification_submitted_event(
success: form_response.success?,
failure_reason: irs_attempts_api_tracker.parse_failure_reason(form_response),
)

if form_response.success?
response = check_ssn
form_response = form_response.merge(response)
end
form_response = form_response.merge(check_ssn) if form_response.success?
summarize_result_and_throttle_failures(form_response)
delete_async

if form_response.success?
move_applicant_to_idv_session
idv_session.mark_verify_info_step_complete!
idv_session.invalidate_steps_after_verify_info!
redirect_to idv_phone_url
else
idv_session.invalidate_verify_info_step!
Expand Down Expand Up @@ -196,27 +196,13 @@ def log_idv_verification_submitted_event(success: false, failure_reason: nil)
end

def check_ssn
result = Idv::SsnForm.new(current_user).submit(ssn: pii[:ssn])

if result.success?
save_legacy_state
delete_pii
end

result
Idv::SsnForm.new(current_user).submit(ssn: pii[:ssn])
end

def save_legacy_state
skip_legacy_steps
def move_applicant_to_idv_session
idv_session.applicant = pii
idv_session.applicant['uuid'] = current_user.uuid
end

def skip_legacy_steps
idv_session.mark_verify_info_step_complete!
idv_session.vendor_phone_confirmation = false
idv_session.user_phone_confirmation = false
idv_session.address_verification_mechanism = 'phone'
delete_pii
end

def add_proofing_costs(results)
Expand Down
4 changes: 0 additions & 4 deletions app/controllers/idv/in_person/address_search_controller.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
module Idv
module InPerson
class AddressSearchController < ApplicationController
include RenderConditionConcern

check_or_render_not_found -> { IdentityConfig.store.arcgis_search_enabled }

def index
response = addresses(params[:address])
render(**response)
Expand Down
31 changes: 13 additions & 18 deletions app/controllers/idv/in_person/usps_locations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,21 @@ class UspsLocationsController < ApplicationController

# retrieve the list of nearby IPP Post Office locations with a POST request
def index
response = []
if IdentityConfig.store.arcgis_search_enabled
candidate = UspsInPersonProofing::Applicant.new(
address: search_params['street_address'],
city: search_params['city'], state: search_params['state'],
zip_code: search_params['zip_code']
candidate = UspsInPersonProofing::Applicant.new(
address: search_params['street_address'],
city: search_params['city'], state: search_params['state'],
zip_code: search_params['zip_code']
)
response = proofer.request_facilities(candidate)
if response.length > 0
analytics.idv_in_person_locations_searched(
success: true,
result_total: response.length,
)
response = proofer.request_facilities(candidate)
if response.length > 0
analytics.idv_in_person_locations_searched(
success: true,
result_total: response.length,
)
else
analytics.idv_in_person_locations_searched(
success: false, errors: 'No USPS locations found',
)
end
else
response = proofer.request_pilot_facilities
analytics.idv_in_person_locations_searched(
success: false, errors: 'No USPS locations found',
)
end
render json: response.to_json
end
Expand Down
10 changes: 10 additions & 0 deletions app/controllers/redirect/policy_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module Redirect
class PolicyController < RedirectController
def show
redirect_to_and_log(
MarketingSite.security_and_privacy_practices_url,
tracker_method: analytics.method(:policy_redirect),
)
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { getConfigValue } from '@18f/identity-config';
import { UploadFormEntriesError } from '../services/upload';
import DocumentsStep from './documents-step';
import InPersonPrepareStep from './in-person-prepare-step';
import InPersonLocationStep from './in-person-location-step';
import InPersonLocationPostOfficeSearchStep from './in-person-location-post-office-search-step';
import InPersonSwitchBackStep from './in-person-switch-back-step';
import ReviewIssuesStep from './review-issues-step';
Expand Down Expand Up @@ -60,7 +59,7 @@ function DocumentCapture({ isAsyncForm = false, onStepChange = () => {} }: Docum
const { t } = useI18n();
const { flowPath } = useContext(UploadContext);
const { trackSubmitEvent, trackVisitEvent } = useContext(AnalyticsContext);
const { inPersonURL, arcgisSearchEnabled } = useContext(InPersonContext);
const { inPersonURL } = useContext(InPersonContext);
const appName = getConfigValue('appName');

useDidUpdateEffect(onStepChange, [stepName]);
Expand Down Expand Up @@ -114,7 +113,7 @@ function DocumentCapture({ isAsyncForm = false, onStepChange = () => {} }: Docum
: ([
{
name: 'location',
form: arcgisSearchEnabled ? InPersonLocationPostOfficeSearchStep : InPersonLocationStep,
form: InPersonLocationPostOfficeSearchStep,
title: t('in_person_proofing.headings.po_search.location'),
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ import type { SetupServerApi } from 'msw/node';
import { SWRConfig } from 'swr';
import { I18nContext } from '@18f/identity-react-i18n';
import { ComponentType } from 'react';
import { LOCATIONS_URL } from './in-person-location-step';
import { ADDRESS_SEARCH_URL } from './address-search';
import InPersonContext from '../context/in-person';
import { ADDRESS_SEARCH_URL, LOCATIONS_URL } from './address-search';
import InPersonLocationPostOfficeSearchStep from './in-person-location-post-office-search-step';

const DEFAULT_RESPONSE = [
Expand Down Expand Up @@ -58,11 +56,9 @@ const DEFAULT_PROPS = {
registerField() {},
};

describe('InPersonLocationStep', () => {
describe('InPersonPostOfficeSearchStep', () => {
const wrapper: ComponentType = ({ children }) => (
<InPersonContext.Provider value={{ arcgisSearchEnabled: true }}>
<SWRConfig value={{ provider: () => new Map() }}>{children}</SWRConfig>
</InPersonContext.Provider>
<SWRConfig value={{ provider: () => new Map() }}>{children}</SWRConfig>
);

let server: SetupServerApi;
Expand Down Expand Up @@ -90,9 +86,7 @@ describe('InPersonLocationStep', () => {
it('displays a try again error message', async () => {
const { findByText, findByLabelText } = render(
<SWRConfig value={{ provider: () => new Map() }}>
<InPersonContext.Provider value={{ arcgisSearchEnabled: true }}>
<InPersonLocationPostOfficeSearchStep {...DEFAULT_PROPS} />
</InPersonContext.Provider>
<InPersonLocationPostOfficeSearchStep {...DEFAULT_PROPS} />
</SWRConfig>,
);

Expand Down

This file was deleted.

Loading