Skip to content

LG-9271 StepIndicatorConcern uses effective user instead of current user to ensure user during hybrid flow#8357

Closed
amirbey wants to merge 3 commits intomainfrom
amirbey/LG-9721-step-indicators-hybrid
Closed

LG-9271 StepIndicatorConcern uses effective user instead of current user to ensure user during hybrid flow#8357
amirbey wants to merge 3 commits intomainfrom
amirbey/LG-9721-step-indicators-hybrid

Conversation

@amirbey
Copy link
Copy Markdown
Contributor

@amirbey amirbey commented May 8, 2023

🎫 Ticket

LG-9721

🛠 Summary of changes

To ensure a user exists when seeking the ProofingComponent, the StepIndicatorConcern uses the effective_user because the current_user could be nil during the document_capture step on the hybrid flow.

Background information

https://gsa-tts.slack.com/archives/C0NGESUN5/p1683224465791789

…user

If user is in the hybrid flow, effective_user will deliver the user's id when current_user is nil

Co-authored-by: Jonathan Hooper <jonathan.hooper@gsa.gov>

[skip changelog]
@amirbey amirbey self-assigned this May 8, 2023
@amirbey amirbey changed the title LG-9271 StepIndicator Concern uses effective user instead of current user LG-9271 StepIndicatorConcern uses effective user instead of current user to ensure user during hybrid flow May 8, 2023
@amirbey amirbey marked this pull request as ready for review May 8, 2023 19:21
@amirbey amirbey requested review from jmhooper and matthinz May 8, 2023 19:21
@mitchellhenke
Copy link
Copy Markdown
Contributor

I think it's missing the

+ current_step: :verify_id,

that was removed here

before do
allow(idv_session).to receive(:verify_info_step_complete?).
and_return(verify_info_step_complete)
allow(idv_session).to receive(:address_verification_mechanism).and_return(nil)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we need to avoid this since idv_session can be nil and won't be able to receive the method

@amirbey amirbey marked this pull request as draft May 9, 2023 20:19
@soniaconnolly
Copy link
Copy Markdown
Contributor

I think this has been made obsolete by #8480

@amirbey amirbey closed this Jun 5, 2023
@amirbey amirbey deleted the amirbey/LG-9721-step-indicators-hybrid branch December 20, 2023 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants