Skip to content

Commit

Permalink
LG-13007: clean up exit survey related. (#10572)
Browse files Browse the repository at this point in the history
* LG-13007: clean up further.

changelog: Internal, Doc Auth, Clean up exit survey

* LG-13007: remove commented out part
  • Loading branch information
dawei-nava committed May 10, 2024
1 parent 8cdb4ec commit 37afb7e
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 23 deletions.
10 changes: 0 additions & 10 deletions app/controllers/idv/cancellations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,6 @@ def destroy
end
end

def exit
analytics.idv_cancellation_confirmed(step: params[:step])
cancel_session
if hybrid_session?
render :destroy
else
redirect_to cancelled_redirect_path
end
end

private

def barcode_step?
Expand Down
1 change: 0 additions & 1 deletion app/javascript/packages/verify-flow/cancel.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ describe('Cancel', () => {
value={{
accountURL: 'http://example.test/account',
cancelURL: 'http://example.test/cancel',
exitURL: 'http://example.test/exit',
currentStep: 'one',
}}
>
Expand Down
7 changes: 0 additions & 7 deletions app/javascript/packages/verify-flow/context/flow-context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ export interface FlowContextValue {
* URL to path for session cancel.
*/
cancelURL: string;

/**
* URL to exit session without confirmation
*/
exitURL: string;

/**
* Current step name.
*/
Expand All @@ -24,7 +18,6 @@ export interface FlowContextValue {
const FlowContext = createContext<FlowContextValue>({
accountURL: '',
cancelURL: '',
exitURL: '',
currentStep: '',
});

Expand Down
3 changes: 0 additions & 3 deletions app/javascript/packs/document-capture.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ interface AppRootData {
acuantVersion: string;
flowPath: FlowPath;
cancelUrl: string;
exitUrl: string;
idvInPersonUrl?: string;
optedInToInPersonProofing: string;
securityAndPrivacyHowItWorksUrl: string;
Expand Down Expand Up @@ -95,7 +94,6 @@ const {
acuantVersion,
flowPath,
cancelUrl: cancelURL,
exitUrl: exitURL,
accountUrl: accountURL,
idvInPersonUrl: inPersonURL,
securityAndPrivacyHowItWorksUrl: securityAndPrivacyHowItWorksURL,
Expand Down Expand Up @@ -171,7 +169,6 @@ const App = composeComponents(
value: {
accountURL,
cancelURL,
exitURL,
currentStep: 'document_capture',
},
},
Expand Down
1 change: 0 additions & 1 deletion app/views/idv/shared/_document_capture.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
sp_name: sp_name,
flow_path: flow_path,
cancel_url: idv_cancel_path(step: :document_capture),
exit_url: idv_exit_path,
account_url: account_path,
failure_to_proof_url: failure_to_proof_url,
opted_in_to_in_person_proofing: opted_in_to_in_person_proofing,
Expand Down
1 change: 0 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,6 @@
get '/cancel/' => 'cancellations#new', as: :cancel
put '/cancel' => 'cancellations#update'
delete '/cancel' => 'cancellations#destroy'
get '/exit' => 'cancellations#exit', as: :exit
get '/address' => 'address#new'
post '/address' => 'address#update'
get '/capture_doc' => 'hybrid_mobile/entry#show'
Expand Down

0 comments on commit 37afb7e

Please sign in to comment.