-
Notifications
You must be signed in to change notification settings - Fork 121
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
LG-15187: Update Socure shadow mode A/B test logic (part 2/2) #11694
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
672d448
LG-15187: Update Socure Idv A/B test logic, pt.1
lmgeorge e8b0bb9
LG-15187: Attempting to use pass proofing components to ResolutionProβ¦
lmgeorge ff9d271
Merge branch 'main' into lmgeorge/LG-15187_2
matthinz c02fe36
Refactor Idv::Agent spec
matthinz 4b78c01
Update Idv::Agent spec
matthinz cec699e
Update ResolutionProofingJob spec
matthinz e834c88
Don't try and set vendor on doc capture session result
matthinz 0f1286a
Aggressively reload A/B tests during spec runs
matthinz ee4284f
Merge branch 'main' into lmgeorge/LG-15187_2
matthinz 08c114c
Remove user_session from VerifyInfoConcern
matthinz 732bdf4
Update 'spec/controllers/idv/in_person/verify_info_controller_spec.rb'
matthinz 2256da9
Minor cleanup and rewording
matthinz 5cbd327
Merge branch 'main' into lmgeorge/LG-15187_2
matthinz 16e35ee
Update app/jobs/resolution_proofing_job.rb
matthinz 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 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 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 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 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 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 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 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 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 |
---|---|---|
|
@@ -53,17 +53,21 @@ | |
}, | ||
} | ||
end | ||
|
||
it 'returns a bucket' do | ||
expect(bucket).not_to be_nil | ||
end | ||
end | ||
|
||
context 'and the user does not have an Idv::Session' do | ||
let(:user_session) do | ||
{} | ||
end | ||
|
||
it 'does not return a bucket' do | ||
expect(bucket).to be_nil | ||
end | ||
|
||
it 'does not write :idv key in user_session' do | ||
expect { bucket }.not_to change { user_session } | ||
end | ||
|
@@ -75,6 +79,7 @@ | |
let(:session) do | ||
{ document_capture_session_uuid: 'a-random-uuid' } | ||
end | ||
|
||
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. π |
||
it 'returns a bucket' do | ||
expect(bucket).not_to be_nil | ||
end | ||
|
@@ -90,6 +95,7 @@ | |
|
||
context 'when A/B test is disabled and it would otherwise assign a bucket' do | ||
let(:user) { build(:user) } | ||
|
||
let(:user_session) do | ||
{ | ||
idv: { | ||
|
@@ -102,6 +108,7 @@ | |
disable_ab_test.call | ||
reload_ab_tests | ||
end | ||
|
||
it 'does not assign a bucket' do | ||
expect(bucket).to be_nil | ||
end | ||
|
@@ -260,11 +267,11 @@ | |
end | ||
end | ||
|
||
describe 'SOCURE_IDV_SHADOW_MODE' do | ||
describe 'SOCURE_IDV_SHADOW_MODE_FOR_NON_DOCV_USERS' do | ||
let(:user) { create(:user) } | ||
|
||
subject(:bucket) do | ||
AbTests::SOCURE_IDV_SHADOW_MODE.bucket( | ||
AbTests::SOCURE_IDV_SHADOW_MODE_FOR_NON_DOCV_USERS.bucket( | ||
request: nil, | ||
service_provider: nil, | ||
session: nil, | ||
|
@@ -295,7 +302,7 @@ | |
end | ||
|
||
it 'returns a bucket' do | ||
expect(bucket).to eq :shadow_mode_enabled | ||
expect(bucket).to eq :socure_shadow_mode_for_non_docv_users | ||
end | ||
end | ||
end | ||
|
This file contains 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
Oops, something went wrong.
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.
Just an idle musing from someone who hasn't looked at IDP code since last year: I think if I didn't have all the context of this PR in mind, I'd expect this to have a
SOCURE_IDV_SHADOW_MODE_FOR_DOCV_USERS
corollary. This isn't particularly sensible, of course.