Merged
Conversation
**Why**: Because they're never actually presented to the user, who will instead see the message derived from the failing response.
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.
Why: Because they're never actually presented to the user, who will instead see the message derived from the failing response.
Also helps for a few points of general cleanup:
boldis a BassCSS class and is deprecated in favor of design system.html_safe, so this eliminates one point of update.This logic is only used for the no-JavaScript document capture. In practice, what happens is that the same error message which would be presented in the React application is presented to no-JavaScript.
Example:
If you follow the flow of logic, you can see that the
failuremethod does capture this as "extra", but that extra is not used for presenting a notice, and in-fact doesn't appear to be used for much of anything at all:identity-idp/app/services/flow/base_step.rb
Lines 53 to 58 in 759408a
identity-idp/app/services/flow/flow_state_machine.rb
Lines 28 to 34 in 759408a
The actual error message is pulled from the
flow_session[:error_message]:identity-idp/app/views/idv/doc_auth/_error_messages.html.erb
Line 6 in 759408a
Originally: #3929
cc @anniehirshman-gsa in case you're aware of these messages being intended to be shown anywhere.