Skip to content

LG-11128: Allow skip to account#9410

Merged
mdiarra3 merged 12 commits intomainfrom
LG-11128-skip-to-account-page-in-person-proofing
Oct 24, 2023
Merged

LG-11128: Allow skip to account#9410
mdiarra3 merged 12 commits intomainfrom
LG-11128-skip-to-account-page-in-person-proofing

Conversation

@mdiarra3
Copy link
Contributor

🎫 Ticket

LG-11128

🛠 Summary of changes

User in verification would not be able to get access to their account page right now, this would allow them to get through.

@mdiarra3 mdiarra3 marked this pull request as ready for review October 19, 2023 17:23
@mdiarra3 mdiarra3 requested a review from a team October 19, 2023 17:23

def signed_in_url
return url_for_pending_profile_reason if user_has_pending_profile?
return idv_verify_by_mail_enter_code_url if current_user.gpo_verification_pending_profile?
Copy link
Contributor

Choose a reason for hiding this comment

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

url_for_pending_profile_reason also redirects for profiles that have fraud_review_pending or fraud_rejection status. I think we should change the behavior of that method, not remove it here. And add feature specs that confirm that users are redirected as expected - I'm surprised nothing failed.

I was going to run the in_person feature spec to get a look at idv_in_person_ready_to_verify_url and see if the user would still need to be able to get there, but my local setup won't run feature specs suddenly :-(. Do we have a banner on the account page to allow the user to access that page?

Copy link
Contributor

Choose a reason for hiding this comment

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

@soniaconnolly Does the discussion at #9410 (comment) help contextualize the reason for the change? My fear with modifying url_for_pending_profile_reason is that method is used elsewhere like IdvController where we'd want the fraud review and fraud rejection screens to be shown, but we don't want those to be shown when signing in at IAL1.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, I see. That makes more sense, thanks.

Copy link
Contributor

@aduth aduth left a comment

Choose a reason for hiding this comment

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

I ran through this locally for all of the pending states (GPO, IPP, fraud review, fraud rejection) at both IAL1 and IdV and it worked as expected for me in all cases 👍

Left a note about a lingering test failure I'm hopeful should be straightforward to address.

@mdiarra3 mdiarra3 merged commit 8091022 into main Oct 24, 2023
@mdiarra3 mdiarra3 deleted the LG-11128-skip-to-account-page-in-person-proofing branch October 24, 2023 15:05
@mdiarra3 mdiarra3 mentioned this pull request Oct 26, 2023
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