Skip to content

Start writing idv_session.personal_key_acknowledged#9595

Merged
matthinz merged 2 commits intomainfrom
matthinz/record-personal-key-ack-in-idv-session
Nov 15, 2023
Merged

Start writing idv_session.personal_key_acknowledged#9595
matthinz merged 2 commits intomainfrom
matthinz/record-personal-key-ack-in-idv-session

Conversation

@matthinz
Copy link
Contributor

@matthinz matthinz commented Nov 15, 2023

We currently track that the user has viewed / acknowledged their personal key in a couple of ways:

  1. If user_session[:need_personal_key_confirmation] == true, we know they have not acknowledged their personal key
  2. If user has a profile, but idv_session.personal_key is blank, then they probably acknowledged their personal key

This PR:

  • Adds an acknowledge_personal_key! method to idv_session
  • Updates the personal key controller to call that method
  • Adds personal_key_acknowledged flag to idv_session

(The ultimate goal will be to unify the tracking of personal key acknowledgement in idv_session, but there are 50/50 deployment considerations that mean this PR needs to go out first.)

@matthinz matthinz requested a review from a team November 15, 2023 00:19
Copy link
Contributor

@soniaconnolly soniaconnolly left a comment

Choose a reason for hiding this comment

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

LGTM, one suggestion

We don't currently track that the user has acknowledged their personal key.

[skip changelog]
@matthinz matthinz force-pushed the matthinz/record-personal-key-ack-in-idv-session branch from c892e12 to 4607694 Compare November 15, 2023 19:05
@matthinz matthinz merged commit 558a8f8 into main Nov 15, 2023
@matthinz matthinz deleted the matthinz/record-personal-key-ack-in-idv-session branch November 15, 2023 20:58
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.

2 participants