-
Notifications
You must be signed in to change notification settings - Fork 120
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
Fix 404 Error on PO Search Page for IPP Flow #11287
Conversation
Notes:
|
1d785a2
to
e391061
Compare
5d5bf65
to
850f308
Compare
@@ -205,7 +205,7 @@ const App = composeComponents( | |||
[ | |||
DocumentCapture, | |||
{ | |||
onStepChange: extendSession, | |||
onStepChange: optedInToInPersonProofing === 'true' ? () => null : extendSession, |
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.
That looks exactly right to me, after poking around a bit.
Dropping a note here that folks from both Ada and TImnit have given this a once over. Thanks everyone who helped out! |
Hm, I actually think there's a bigger issue at play here, which is only being surfaced because there's a multi-step process. |
Yeah noticing that this is the case... How should we move forward with this? Should a new ticket be written? Who would be the owner of that ticket? Depending on how long a fix for the larger issue may take should we still merge this in? |
I think we should fix the underlying issue as part of this ticket. |
I understand wanting to fix the underlying issue. Since I’ve only worked on IPP and am not familiar with the Document Capture flow code-wise, I am concerned I don’t have enough context to effectively determine which fix is better and how to best implement it. Since it is in their domain, I think someone from Timnit might be better suited. I’d be happy to do code review or pair with the dev who works on the underlying issue! |
If we wanted a short-term solution, what I'd suggest is:
The behavior from LG-3813 is relevant for both IPP and the new multi-step selfie flow added by @AShukla-GSA in #11285, since the idea with this code is that it might take a user longer than 15 minutes to complete the multi-step process, and renewing the session avoids them being signed-out. |
Sounds good! |
850f308
to
d5609a1
Compare
d5609a1
to
d7e0e95
Compare
@WilliamBirdsall Can you link to the ticket if we're planning to reintroduce the session extending behavior? |
For sure. Writing that up today! |
Going to link the new ticket here once its ready, but going to merge this in for now. |
🎫 Ticket
Link to the relevant ticket:
LG-14545
🛠 Summary of changes
On the PO search page for the IPP flow, the
extendSession
callback was being called without asessionURL
being provided. This is due to the IPP flow being almost entirely in Ruby and not having a current session on the React side of things.This change conditionally adds the
extendSession
callback only if the flow is not Opt In IPP.This issue is also not happening in the Help Center so there is no separate ticket for that work as per the AC.
📜 Testing Plan