Skip to content

Commit

Permalink
Merge pull request #1924 from govuk-one-login/bau-use-failed-confirm-…
Browse files Browse the repository at this point in the history
…details-error-page

BAU: Use correct failure page for COI and 6MFC journeys
  • Loading branch information
Wynndow authored May 16, 2024
2 parents f2efc82 + cd35a9d commit 706eb2d
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 86 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ states:
ticfCriBeta:
targetState: CRI_TICF_BEFORE_NO_MATCH

FAILED_COI:
FAILED_CONFIRM_DETAILS:
events:
next:
targetState: COULD_NOT_CONFIRM_DETAILS_PAGE
Expand Down Expand Up @@ -45,44 +45,8 @@ states:
next:
targetState: NO_MATCH_PAGE

FAILED_RFC:
events:
next:
targetState: NO_MATCH_PAGE_RFC
checkFeatureFlag:
ticfCriBeta:
targetState: CRI_TICF_BEFORE_NO_MATCH_PAGE_RFC

FAILED_UPDATE_ADDRESS:
events:
next:
# same page as RFC displayed so re-use this state
targetState: NO_MATCH_PAGE_RFC
checkFeatureFlag:
ticfCriBeta:
targetState: CRI_TICF_BEFORE_NO_MATCH_PAGE_RFC

# Journey states

CRI_TICF_BEFORE_NO_MATCH_PAGE_RFC:
response:
type: process
lambda: call-ticf-cri
events:
next:
targetState: NO_MATCH_PAGE_RFC
enhanced-verification:
targetState: NO_MATCH_PAGE_RFC
alternate-doc-invalid-dl:
targetState: NO_MATCH_PAGE_RFC
alternate-doc-invalid-passport:
targetState: NO_MATCH_PAGE_RFC
fail-with-ci:
targetState: NO_MATCH_PAGE_RFC
error:
targetJourney: TECHNICAL_ERROR
targetState: ERROR_NO_TICF

CRI_TICF_BEFORE_NO_MATCH:
response:
type: process
Expand Down Expand Up @@ -175,15 +139,6 @@ states:
next:
targetState: RETURN_TO_RP

NO_MATCH_PAGE_RFC:
response:
type: page
pageId: pyi-no-match
context: repeatFraudCheck
events:
next:
targetState: RETURN_TO_RP

NO_MATCH_PAGE_BAV:
response:
type: page
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,31 +17,31 @@ states:
events:
not-found:
targetJourney: FAILED
targetState: FAILED_RFC
targetState: FAILED_CONFIRM_DETAILS
fail-with-no-ci:
targetJourney: FAILED
targetState: FAILED_RFC
targetState: FAILED_CONFIRM_DETAILS
error:
targetJourney: TECHNICAL_ERROR
targetState: ERROR
access-denied:
targetJourney: FAILED
targetState: FAILED_RFC
targetState: FAILED_CONFIRM_DETAILS
enhanced-verification:
targetJourney: FAILED
targetState: FAILED_RFC
targetState: FAILED_CONFIRM_DETAILS
temporarily-unavailable:
targetJourney: TECHNICAL_ERROR
targetState: ERROR
fail-with-ci:
targetJourney: FAILED
targetState: FAILED_RFC
targetState: FAILED_CONFIRM_DETAILS
vcs-not-correlated:
targetJourney: FAILED
targetState: FAILED_RFC
targetState: FAILED_CONFIRM_DETAILS
alternate-doc-invalid-dl:
targetJourney: FAILED
targetState: FAILED_RFC
targetState: FAILED_CONFIRM_DETAILS

# Journey States

Expand Down Expand Up @@ -85,7 +85,7 @@ states:
targetState: EVALUATE_GPG45_SCORES_RFC
enhanced-verification:
targetJourney: FAILED
targetState: FAILED_RFC
targetState: FAILED_CONFIRM_DETAILS

ADDRESS_AND_FRAUD_RFC:
nestedJourney: ADDRESS_AND_FRAUD
Expand All @@ -94,7 +94,7 @@ states:
targetState: EVALUATE_GPG45_SCORES_RFC
enhanced-verification:
targetJourney: FAILED
targetState: FAILED_RFC
targetState: FAILED_CONFIRM_DETAILS

EVALUATE_GPG45_SCORES_RFC:
response:
Expand All @@ -108,10 +108,10 @@ states:
targetState: CRI_TICF_BEFORE_SUCCESS_RFC
unmet:
targetJourney: FAILED
targetState: FAILED_RFC
targetState: FAILED_CONFIRM_DETAILS
vcs-not-correlated:
targetJourney: FAILED
targetState: FAILED_RFC
targetState: FAILED_CONFIRM_DETAILS

STORE_IDENTITY_BEFORE_SUCCESS:
response:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,31 +17,31 @@ states:
events:
not-found:
targetJourney: FAILED
targetState: FAILED_UPDATE_ADDRESS
targetState: FAILED_CONFIRM_DETAILS
fail-with-no-ci:
targetJourney: FAILED
targetState: FAILED_UPDATE_ADDRESS
targetState: FAILED_CONFIRM_DETAILS
error:
targetJourney: TECHNICAL_ERROR
targetState: ERROR
access-denied:
targetJourney: FAILED
targetState: FAILED_UPDATE_ADDRESS
targetState: FAILED_CONFIRM_DETAILS
enhanced-verification:
targetJourney: FAILED
targetState: FAILED_UPDATE_ADDRESS
targetState: FAILED_CONFIRM_DETAILS
temporarily-unavailable:
targetJourney: TECHNICAL_ERROR
targetState: ERROR
fail-with-ci:
targetJourney: FAILED
targetState: FAILED_UPDATE_ADDRESS
targetState: FAILED_CONFIRM_DETAILS
vcs-not-correlated:
targetJourney: FAILED
targetState: FAILED_UPDATE_ADDRESS
targetState: FAILED_CONFIRM_DETAILS
alternate-doc-invalid-dl:
targetJourney: FAILED
targetState: FAILED_UPDATE_ADDRESS
targetState: FAILED_CONFIRM_DETAILS

# Journey States

Expand All @@ -60,7 +60,7 @@ states:
targetState: CHECK_COI_UPDATE_ADDRESS
enhanced-verification:
targetJourney: FAILED
targetState: FAILED_UPDATE_ADDRESS
targetState: FAILED_CONFIRM_DETAILS

CHECK_COI_UPDATE_ADDRESS:
response:
Expand All @@ -71,7 +71,7 @@ states:
targetState: EVALUATE_GPG45_SCORES_UPDATE_ADDRESS
coi-check-failed:
targetJourney: FAILED
targetState: FAILED_COI
targetState: FAILED_CONFIRM_DETAILS
error:
targetJourney: TECHNICAL_ERROR
targetState: ERROR
Expand All @@ -88,10 +88,10 @@ states:
targetState: CRI_TICF_BEFORE_SUCCESS_UPDATE_ADDRESS
unmet:
targetJourney: FAILED
targetState: FAILED_UPDATE_ADDRESS
targetState: FAILED_CONFIRM_DETAILS
vcs-not-correlated:
targetJourney: FAILED
targetState: FAILED_UPDATE_ADDRESS
targetState: FAILED_CONFIRM_DETAILS

STORE_IDENTITY_BEFORE_SUCCESS:
response:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,31 +23,31 @@ states:
events:
not-found:
targetJourney: FAILED
targetState: FAILED_COI
targetState: FAILED_CONFIRM_DETAILS
fail-with-no-ci:
targetJourney: FAILED
targetState: FAILED_COI
targetState: FAILED_CONFIRM_DETAILS
error:
targetJourney: TECHNICAL_ERROR
targetState: ERROR
access-denied:
targetJourney: FAILED
targetState: FAILED_COI
targetState: FAILED_CONFIRM_DETAILS
enhanced-verification:
targetJourney: FAILED
targetState: FAILED_COI
targetState: FAILED_CONFIRM_DETAILS
temporarily-unavailable:
targetJourney: TECHNICAL_ERROR
targetState: ERROR
fail-with-ci:
targetJourney: FAILED
targetState: FAILED_COI
targetState: FAILED_CONFIRM_DETAILS
vcs-not-correlated:
targetJourney: FAILED
targetState: FAILED_COI
targetState: FAILED_CONFIRM_DETAILS
alternate-doc-invalid-dl:
targetJourney: FAILED
targetState: FAILED_COI
targetState: FAILED_CONFIRM_DETAILS

# Journey States

Expand Down Expand Up @@ -84,16 +84,16 @@ states:
targetState: POST_DCMAW_SUCCESS_PAGE_NAME_ONLY
not-found:
targetJourney: FAILED
targetState: FAILED_COI
targetState: FAILED_CONFIRM_DETAILS
access-denied:
targetJourney: FAILED
targetState: FAILED_COI
targetState: FAILED_CONFIRM_DETAILS
temporarily-unavailable:
targetJourney: TECHNICAL_ERROR
targetState: ERROR
fail-with-no-ci:
targetJourney: FAILED
targetState: FAILED_COI
targetState: FAILED_CONFIRM_DETAILS

POST_DCMAW_SUCCESS_PAGE_NAME_ONLY:
response:
Expand All @@ -114,7 +114,7 @@ states:
targetState: CHECK_COI_UPDATE_NAME
enhanced-verification:
targetJourney: FAILED
targetState: FAILED_COI
targetState: FAILED_CONFIRM_DETAILS

# WITH ADDRESS

Expand Down Expand Up @@ -149,16 +149,16 @@ states:
targetState: POST_DCMAW_SUCCESS_PAGE_NAME_ADDRESS
not-found:
targetJourney: FAILED
targetState: FAILED_COI
targetState: FAILED_CONFIRM_DETAILS
access-denied:
targetJourney: FAILED
targetState: FAILED_COI
targetState: FAILED_CONFIRM_DETAILS
temporarily-unavailable:
targetJourney: TECHNICAL_ERROR
targetState: ERROR
fail-with-no-ci:
targetJourney: FAILED
targetState: FAILED_COI
targetState: FAILED_CONFIRM_DETAILS

POST_DCMAW_SUCCESS_PAGE_NAME_ADDRESS:
response:
Expand All @@ -176,7 +176,7 @@ states:
targetState: CHECK_COI_UPDATE_NAME
enhanced-verification:
targetJourney: FAILED
targetState: FAILED_COI
targetState: FAILED_CONFIRM_DETAILS

# SHARED STATES

Expand All @@ -189,7 +189,7 @@ states:
targetState: EVALUATE_GPG45_SCORES_UPDATE_NAME
coi-check-failed:
targetJourney: FAILED
targetState: FAILED_COI
targetState: FAILED_CONFIRM_DETAILS
error:
targetJourney: TECHNICAL_ERROR
targetState: ERROR
Expand All @@ -206,10 +206,10 @@ states:
targetState: CRI_TICF_BEFORE_SUCCESS_UPDATE_ADDRESS
unmet:
targetJourney: FAILED
targetState: FAILED_COI
targetState: FAILED_CONFIRM_DETAILS
vcs-not-correlated:
targetJourney: FAILED
targetState: FAILED_COI
targetState: FAILED_CONFIRM_DETAILS

STORE_IDENTITY_BEFORE_SUCCESS_UPDATE_NAME:
response:
Expand Down

0 comments on commit 706eb2d

Please sign in to comment.