Skip to content

Allow idv/confirmations_controller #show and #download out of order (LG-4847)#5230

Merged
zachmargolis merged 2 commits intomainfrom
margolis-idv-confirmation-code-order
Jul 23, 2021
Merged

Allow idv/confirmations_controller #show and #download out of order (LG-4847)#5230
zachmargolis merged 2 commits intomainfrom
margolis-idv-confirmation-code-order

Conversation

@zachmargolis
Copy link
Contributor

No description provided.

Comment on lines -74 to -75
user_session[:personal_key] = @code
idv_session.personal_key = nil
Copy link
Contributor Author

@zachmargolis zachmargolis Jul 22, 2021

Choose a reason for hiding this comment

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

it seemed like Idv::Session#personal_key was being written to a bunch but never actually used?

I just decided to remove it to simplify, since we already store the data across requests in user_session

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.

Looks good 👍

else
head :bad_request
end
analytics.track_event(Analytics::IDV_DOWNLOAD_PERSONAL_KEY, success: code.present?)
Copy link
Contributor

Choose a reason for hiding this comment

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

This logging was introduced in #5215, I assume to be able to find the sorts of issues we were seeing then. If we're addressing that and assuming code will always be set, do we still need the logging? Or at least the success property?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We still want the event to help us track when people do download, but I guess now the success would help us detect some not-expected degenerate cases where random key generation fails

Copy link
Contributor

@stevegsa stevegsa left a comment

Choose a reason for hiding this comment

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

Looks good!

@zachmargolis zachmargolis merged commit 5730897 into main Jul 23, 2021
@zachmargolis zachmargolis deleted the margolis-idv-confirmation-code-order branch July 23, 2021 16:53
zachmargolis added a commit that referenced this pull request Sep 22, 2021
zachmargolis added a commit that referenced this pull request Sep 22, 2021
* Revert "Allow idv/confirmations_controller #show and #download out of order (LG-4847) (#5230)"

This reverts commit 5730897.

* Add regression specs
zachmargolis added a commit that referenced this pull request Sep 22, 2021
* Revert "Allow idv/confirmations_controller #show and #download out of order (LG-4847) (#5230)"

This reverts commit 5730897.

* Add regression specs

(cherry picked from commit e3d9e39)
zachmargolis added a commit that referenced this pull request Sep 22, 2021
* Revert "Allow idv/confirmations_controller #show and #download out of order (LG-4847) (#5230)"

This reverts commit 5730897.

* Add regression specs

(cherry picked from commit e3d9e39)
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.

4 participants