Skip to content

LG-15693 undefined method profiles for nil#11861

Merged
jmax-gsa merged 1 commit intomainfrom
jmax/LG-15693-undefined-method-profiles-for-nil
Feb 10, 2025
Merged

LG-15693 undefined method profiles for nil#11861
jmax-gsa merged 1 commit intomainfrom
jmax/LG-15693-undefined-method-profiles-for-nil

Conversation

@jmax-gsa
Copy link
Contributor

@jmax-gsa jmax-gsa commented Feb 7, 2025

🎫 Ticket LG-15693

🛠 Summary of changes

We strongly suspect that the before: filters should've caught this condition, but they were largely bypassed for the update event. It turns out that we don't need the bypasses if we change the rate-limiting logic slightly. Instead of making our before filter "smart", we simply pass in whether or not we should check for successful document capture.

Removed the filter bypasses from socure/document_capture_controller.rb

📜 Testing Plan

  • Configure your environment to use Socure.
  • Proceed through IdV using the hybrid handoff flow, and verify that you are able to complete document capture.
  • Cancel after document capture, and re-try IdV. Repeat until you have one attempt remaining.
  • Verify that on your final attempt, you are able to complete document capture and proceed through IdV

@jmax-gsa jmax-gsa force-pushed the jmax/LG-15693-undefined-method-profiles-for-nil branch from 157a46a to c655139 Compare February 10, 2025 19:22
Spec fixes and a modification to rate limiting.

changelog: Internal, Socure, Removed unnecessary before: filter bypasses
@jmax-gsa jmax-gsa force-pushed the jmax/LG-15693-undefined-method-profiles-for-nil branch from 773edf5 to ea238a9 Compare February 10, 2025 20:32
@jmax-gsa jmax-gsa marked this pull request as ready for review February 10, 2025 21:11
@jmax-gsa jmax-gsa requested a review from solipet February 10, 2025 21:11
Comment on lines -38 to -42
flow_path = doc_session_idv['flow_path']
return false if flow_path.blank?

return false if flow_path != 'hybrid'

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏿

Comment on lines +154 to +156
DocumentCaptureSession.find_by(user_id: @user.id).update(
last_doc_auth_result: 'Passed',
)
Copy link
Contributor

@amirbey amirbey Feb 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking at the code this does not appear to happen in the Socure flow 🤔 ... which Is why this workaround is happening manually here
will address this in a follow up issue

@jmax-gsa jmax-gsa merged commit fa802ad into main Feb 10, 2025
2 checks passed
@jmax-gsa jmax-gsa deleted the jmax/LG-15693-undefined-method-profiles-for-nil branch February 10, 2025 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants