-
Notifications
You must be signed in to change notification settings - Fork 166
LG-8150 disable async proofing #7384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
16d1a38
Disable broken feature
jskinne3 fa42124
Better exception class
jskinne3 93e761a
Explict exception object not needed
jskinne3 b86a176
Remove test statement
jskinne3 692cbaa
LG-8150 AC2 Raise an error if the app attempts to initialize with asy…
jskinne3 00c07d4
[skip changelog]
jskinne3 d05c341
revert changes to document_capture_step
solipet 6cf511c
add a spec for the async_exception initializer
solipet 00bf024
no longer expect to receive Frontend: IdV: document capture async upl…
solipet 11535b3
update expected events/attributes
solipet f8e5364
removed IdV: doc auth verify_document_status submitted
solipet c29091b
removing IdV: phone of record visited for IPP
solipet b3b3031
update analytics_spec to match output when doc_auth_enable_presigned_…
solipet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Guards against accidentally turning on the broken asynchronous document capture | ||
| # feature in production. If that feature ever gets fixed, delete this file. | ||
|
|
||
| if Rails.env.production? && IdentityConfig.store.doc_auth_enable_presigned_s3_urls | ||
| raise 'Cannot initialize identity-idp project with async upload turned on' | ||
| end |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| require 'rails_helper' | ||
|
|
||
| RSpec.describe 'async_error' do | ||
| let(:enabled) { false } | ||
| subject do | ||
| load Rails.root.join('config', 'initializers', 'async_exception.rb').to_s | ||
| end | ||
|
|
||
| before do | ||
| allow(Rails.env).to receive(:production?).and_return(true) | ||
| allow(IdentityConfig.store).to receive(:doc_auth_enable_presigned_s3_urls).and_return(enabled) | ||
| end | ||
|
|
||
| context 'async uploads are not enabled' do | ||
| it 'does not raise an error' do | ||
| expect { subject }.not_to raise_error | ||
| end | ||
| end | ||
|
|
||
| context 'async uploads are enabled' do | ||
| let(:enabled) { true } | ||
|
|
||
| it 'does raise an error' do | ||
| expect { subject }.to raise_error | ||
| end | ||
| end | ||
| end |
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this breaks a test assumption that the specs have, the analytics spec is looking for async doc upload:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the motivation for this change? I assume that subsequent changes to
spec/features/idv/analytics_spec.rbare attempts to compensate for the breaking assumption that Zach mentions.