Skip to content

LG-14007: wait for Socure result if not present upon return#11500

Merged
solipet merged 9 commits intomainfrom
dprice/lg-14007-wait-for-result
Nov 19, 2024
Merged

LG-14007: wait for Socure result if not present upon return#11500
solipet merged 9 commits intomainfrom
dprice/lg-14007-wait-for-result

Conversation

@solipet
Copy link
Copy Markdown
Contributor

@solipet solipet commented Nov 13, 2024

🎫 Ticket

Link to the relevant ticket:
LG-14007

🛠 Summary of changes

Upon return from Socure via the redirect url, check for the stored result (fetched by a job triggered by a webhook event). If not yet present, render the wait page that refreshes every 15 secs.

Comment on lines 70 to 74
Copy link
Copy Markdown
Contributor

@amirbey amirbey Nov 13, 2024

Choose a reason for hiding this comment

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

thanks for adding logic to handle this async result fetching. a timeout could be helpful here 🤔 as it seems like the user is stuck in a loop here until the result is fetched. also, we should seek feedback for UX and also create the possibility for a back button which would create an exit path here.

@solipet solipet force-pushed the dprice/lg-14007-wait-for-result branch 2 times, most recently from ba9e50e to 18f8cd2 Compare November 14, 2024 04:15
…ntroller

Spoke with Team Joy and the issue this was addressing is OBE
If the user returns from Socure before the job has finished fetching the
results, wait and check every 15 seconds.

[skip changelog]
@solipet solipet force-pushed the dprice/lg-14007-wait-for-result branch from 18f8cd2 to 0311e65 Compare November 14, 2024 18:16
Copy link
Copy Markdown
Contributor

@amirbey amirbey left a comment

Choose a reason for hiding this comment

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

LGTM ... 👍🏿

@solipet solipet merged commit e04efce into main Nov 19, 2024
@solipet solipet deleted the dprice/lg-14007-wait-for-result branch November 19, 2024 16:57
solipet added a commit that referenced this pull request Nov 20, 2024
As in #11500 for the standard flow, we need to wait for the Socure
result to be received before we can determine where to send the user.

Currently, if the wait times out, we show a placeholder plain text of
"Technical difficulties!!!" to be replaced with the appropriate "Try
again?" page in a following ticket.

Note there is some identical code in the standard vs hybrid controllers
that might be refactored into a concern in the future, but until all of
the paths are complete, I thought it best to live with the duplication
for now.

[skip changelog]
solipet added a commit that referenced this pull request Nov 20, 2024
* LG-15125: Wait for Socure result - hybrid flow

As in #11500 for the standard flow, we need to wait for the Socure
result to be received before we can determine where to send the user.

Currently, if the wait times out, we show a placeholder plain text of
"Technical difficulties!!!" to be replaced with the appropriate "Try
again?" page in a following ticket.

Note there is some identical code in the standard vs hybrid controllers
that might be refactored into a concern in the future, but until all of
the paths are complete, I thought it best to live with the duplication
for now.

[skip changelog]
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