Skip to content

LG-16507: refactor agreements routing to next step#12410

Merged
amirbey merged 9 commits intomainfrom
amirbey/refactor-argreements-redirects
Aug 21, 2025
Merged

LG-16507: refactor agreements routing to next step#12410
amirbey merged 9 commits intomainfrom
amirbey/refactor-argreements-redirects

Conversation

@amirbey
Copy link
Contributor

@amirbey amirbey commented Aug 8, 2025

🎫 Ticket

LG-16507

🛠 Summary of changes

Consolidate routing logic from the agreements controller in the #confirm_hybrid_handoff filter already used by HybridHandoff for routing.

@amirbey amirbey force-pushed the amirbey/refactor-argreements-redirects branch from fbc176d to 7b2ff94 Compare August 19, 2025 23:20
@amirbey amirbey changed the title refactor agreements routing to next step LG-16507: refactor agreements routing to next step Aug 20, 2025
@amirbey amirbey marked this pull request as ready for review August 20, 2025 00:28
@amirbey amirbey self-assigned this Aug 20, 2025
Copy link
Contributor

@AShukla-GSA AShukla-GSA left a comment

Choose a reason for hiding this comment

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

Reviewed LGTM

@amirbey amirbey force-pushed the amirbey/refactor-argreements-redirects branch from 44fa897 to 6ef16f7 Compare August 21, 2025 17:29
@amirbey amirbey merged commit 23c01ae into main Aug 21, 2025
1 check passed
@amirbey amirbey deleted the amirbey/refactor-argreements-redirects branch August 21, 2025 18:02
Copy link
Contributor

@solipet solipet left a comment

Choose a reason for hiding this comment

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

One suggestion in the spec, but otherwise looks good.

Comment on lines +120 to +135
context 'when IPP proofing route is enabled' do
before do
allow(IdentityConfig.store).to receive(:in_person_proofing_enabled).and_return(true)
allow(IdentityConfig.store).to receive(:in_person_proofing_opt_in_enabled)
.and_return(true)
allow(IdentityConfig.store).to receive(:in_person_doc_auth_button_enabled)
.and_return(true)
allow(Idv::InPersonConfig).to receive(:enabled_for_issuer?).and_return(true)
end

it 'redirects to how to verify' do
get :show

expect(response).to redirect_to(idv_how_to_verify_url)
end
end
Copy link
Contributor

Choose a reason for hiding this comment

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

If, instead, you had a sub-context with passport allowed under IPP is enabled, you would only have one repeated before action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants