-
Notifications
You must be signed in to change notification settings - Fork 166
LG-15783: store doc auth vendor in document capture session #11905
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
9588585
add doc_auth_vendor as a column to document_capture_sessions
amirbey 458cf9a
store bucketed doc auth vendor in document_capture_sessions
amirbey 8e8e24c
temp mock
amirbey 27a5a5b
add document capture session to specs
amirbey 528b440
happy linting
amirbey c5f12ec
remove comment
amirbey 46cacda
remove comment
amirbey 16d2d29
happy linting
amirbey d0f0f56
set vendor in document capture session
amirbey 0eef491
set vendor in document capture session
amirbey e31815c
happy linting
amirbey 827b774
test unchanging doc auth vendor
amirbey b76db5c
add expect showing that doc_auth_vendor is sourced from document capt…
amirbey 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
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
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 |
|---|---|---|
|
|
@@ -17,15 +17,13 @@ class ApiImageUploadForm | |
| def initialize( | ||
| params, | ||
| service_provider:, | ||
| doc_auth_vendor:, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Glad we could remove this |
||
| acuant_sdk_upgrade_ab_test_bucket:, | ||
| analytics: nil, | ||
| uuid_prefix: nil, | ||
| liveness_checking_required: false | ||
| ) | ||
| @params = params | ||
| @service_provider = service_provider | ||
| @doc_auth_vendor = doc_auth_vendor | ||
| @acuant_sdk_upgrade_ab_test_bucket = acuant_sdk_upgrade_ab_test_bucket | ||
| @analytics = analytics | ||
| @readable = {} | ||
|
|
@@ -328,7 +326,7 @@ def document_capture_session_uuid | |
|
|
||
| def doc_auth_client | ||
| @doc_auth_client ||= DocAuthRouter.client( | ||
| vendor: @doc_auth_vendor, | ||
| vendor: document_capture_session.doc_auth_vendor, | ||
| warn_notifier: proc do |attrs| | ||
| analytics&.doc_auth_warning( | ||
| **attrs, | ||
|
|
||
9 changes: 9 additions & 0 deletions
9
...mary_migrate/20250219164618_add_doc_auth_vendor_to_document_capture_sessions_w_comment.rb
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,9 @@ | ||
| class AddDocAuthVendorToDocumentCaptureSessionsWComment < ActiveRecord::Migration[7.2] | ||
| def up | ||
| add_column :document_capture_sessions, :doc_auth_vendor, :string, comment: 'sensitive=false' | ||
| end | ||
|
|
||
| def down | ||
| remove_column :document_capture_sessions, :doc_auth_vendor | ||
| 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
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.