-
Notifications
You must be signed in to change notification settings - Fork 17
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
[DPC-4299] - Update AO job so sanctions don't affect org API access #2280
Conversation
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.
If your preference is to comment out the code, could you add a comment to explain the retention/reason for disabling? Or else just delete these calls if we're done with them? Thx!
@@ -198,11 +198,8 @@ def expect_audits(link, also: []) | |||
expect_log_for(link, 'ao_med_sanctions') | |||
end | |||
VerifyAoJob.perform_now | |||
links.each do |link| | |||
expect_audits(link, also: %i[user org]) |
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 don't have all the context here, but should this still check the link and user audits, ie just remove org
from the also params?
@@ -188,8 +189,7 @@ def expect_audits(link, also: []) | |||
expect(link.verification_reason).to eq 'ao_med_sanctions' | |||
expect(link.user.verification_status).to eq 'rejected' | |||
expect(link.user.verification_reason).to eq 'ao_med_sanctions' | |||
expect(link.provider_organization.verification_status).to eq 'rejected' | |||
expect(link.provider_organization.verification_reason).to eq 'ao_med_sanctions' | |||
expect(link.provider_organization.verification_status).to eq 'approved' |
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.
expect(link.provider_organization.verification_status).to eq 'approved' | |
expect(link.provider_organization.verification_status).to eq 'approved' | |
expect(link.provider_organization.verification_reason).to be nil |
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.
LGTM, just a few nitpicks
🎫 Ticket
DPC-4299
🛠 Changes
ℹ️ Context
🧪 Validation