Conversation
changelog: Internal,IdV,Part of Pii::Cacher update
bd264db to
51fa135
Compare
jmhooper
approved these changes
Nov 27, 2023
jmhooper
reviewed
Nov 27, 2023
jmhooper
reviewed
Nov 29, 2023
jmhooper
approved these changes
Nov 30, 2023
| if rate_limiter.limited? | ||
| redirect_to idv_enter_code_rate_limited_url | ||
| else | ||
| flash[:error] = @gpo_verify_form.errors.first.message if !rate_limiter.limited? |
Contributor
There was a problem hiding this comment.
Is it possible to get to the code in this else statement if the rate_limiter is limited? Just wondering if the if !rate_limiter.limited? statement is necessary.
Contributor
Author
There was a problem hiding this comment.
Yes, because the rate limiter may have been incremented during the form submission.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎫 Ticket
LG-11550
🛠 Summary of changes
Updated very by mail enter code controller to explicitly use PII from the
gpo_verification_pending_profile.📜 Testing Plan
Provide a checklist of steps to confirm the changes.
enter_code_controller_spec.rbpasses without errorsPii::Cacher#fetchPii::Cacher#fetch