Conversation
b9af9d0 to
82e6d77
Compare
gangelo
commented
Nov 5, 2022
app/services/idv/steps/inherited_proofing/verify_wait_step_show.rb
Outdated
Show resolved
Hide resolved
gangelo
commented
Nov 5, 2022
c2a5103 to
f13a88a
Compare
gangelo
commented
Nov 7, 2022
gangelo
commented
Nov 7, 2022
49577f2 to
46e6402
Compare
23c7639 to
070a5c1
Compare
jmhooper
reviewed
Nov 16, 2022
app/services/idv/steps/inherited_proofing/verify_wait_step_show.rb
Outdated
Show resolved
Hide resolved
c27c007 to
ef1a7e4
Compare
Contributor
zachmargolis
left a comment
There was a problem hiding this comment.
I think this PR is mostly good to go, some small suggestions, but I'd like to see this dynamic accessor stuff cleaned up or a ticket filed to clean it up before I approve
changelog: Upcoming Features, Inherited Proofing, LG-7450 Implement "Try Again" Button Functionality on the First Error Page Refactor code to enqueue user PII job to mixin - To keep things DRY as this will be used in the verify_wait step when the user clicks the "Retry" button on the IP Warning UI. Refactor to use UserPiiJobInitiator mixin Add translations for request/response errors - Related to inherited proofing service provider requests and responses; this, so that we can 1) record the error and 2) display something to the user. Errors displayed to the user are "safe" errors, revealing no information that could be used by those having ill intentions. Refactor VA form and service classes - To handle network errors encountered during the request to the service provider and decrypting response data returned from the service provider request. Allow va mock proofer to return meaningful error - So that we can identify the error in the va Form class as such and notify our Flow that an error has indeed occured. The error added to the mock proofer is a network-related error, not a va api related (returned in a response) error. Enable flow step to hook into "try again" logic - Which exists in the base class. Enable flow step to hook into "try again" logic DRY VerifyBaseStep for Inherited Proofing usage Set up throttling for Inherited Proofing Change the path the "Try again" button uses - To point to the :verify_wait flow step so the user can try again. Automated tests Refactor inherited_proofing_cancel_spec.rb - To use InheritedProofingWithServiceProviderHelper.
- Remove unnecessary call to super in FormBase class. - Remove #extra method in FormBase. - Rename add_service_error_if method to add_service_error and add conditional callback if: :service_error? - Fix spec to check actual :service_error hasn key value instead of converting the hash to a string and checking that.
- This seemed a better option than making BaseFlow an abstract class raising NoMethodError, since it looks like the logic would be the same anyhow.
ef1a7e4 to
4ea5e57
Compare
zachmargolis
approved these changes
Nov 23, 2022
mdiarra3
pushed a commit
that referenced
this pull request
Nov 28, 2022
… Page (#7284) * Implement try again logic for Inherited Proofing changelog: Upcoming Features, Inherited Proofing, LG-7450 Implement "Try Again" Button Functionality on the First Error Page Refactor code to enqueue user PII job to mixin - To keep things DRY as this will be used in the verify_wait step when the user clicks the "Retry" button on the IP Warning UI. Refactor to use UserPiiJobInitiator mixin Add translations for request/response errors - Related to inherited proofing service provider requests and responses; this, so that we can 1) record the error and 2) display something to the user. Errors displayed to the user are "safe" errors, revealing no information that could be used by those having ill intentions. Refactor VA form and service classes - To handle network errors encountered during the request to the service provider and decrypting response data returned from the service provider request. Allow va mock proofer to return meaningful error - So that we can identify the error in the va Form class as such and notify our Flow that an error has indeed occured. The error added to the mock proofer is a network-related error, not a va api related (returned in a response) error. Enable flow step to hook into "try again" logic - Which exists in the base class. Enable flow step to hook into "try again" logic DRY VerifyBaseStep for Inherited Proofing usage Set up throttling for Inherited Proofing Change the path the "Try again" button uses - To point to the :verify_wait flow step so the user can try again. Automated tests Refactor inherited_proofing_cancel_spec.rb - To use InheritedProofingWithServiceProviderHelper. * Address PR feedback - Remove unnecessary call to super in FormBase class. - Remove #extra method in FormBase. - Rename add_service_error_if method to add_service_error and add conditional callback if: :service_error? - Fix spec to check actual :service_error hasn key value instead of converting the hash to a string and checking that. * Add missing failure method to BaseFlow - This seemed a better option than making BaseFlow an abstract class raising NoMethodError, since it looks like the logic would be the same anyhow. * Create step action to retry user pii retrieval * Address latest PR feedback
This was referenced Nov 29, 2022
Closed
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.
Display and implement a "Try again" button so that an Inherited Proofing user can attempt to retrieve their PII from their Service Provider a second time, if the first attempt fails.
🎫 Ticket
https://cm-jira.usa.gov/browse/LG-7450
🛠 Summary of changes
📜 Testing Plan
Provide a checklist of steps to confirm the changes.
👀 Screenshots
Before:
There are no before images.After:
🚀 Notes for Deployment
N/A