-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[HOLD for payment 2024-07-25] [$250] Split- Unknown user profile loads infinitely when opening from split confirmation page offline #42841
Comments
@jliexpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
We think that this bug might be related to #vip-vsb |
Triggered auto assignment to @jliexpensify ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.An unknown user profile loads infinitely when accessed from the split confirmation page while offline. What is the root cause of that problem?This issue occurs because, when selecting a participant, the system attempts to load the profile data. Since the network is offline, it keeps loading until the network is back online. What changes do you think we should make in order to solve the problem?We should disable clicking on a participant when the data is optimistic, similar to how it is handled in the "submit expense". To achieve this, we can make the participant field disabled if the personal data is optimistic, as shown here:
We can make it consistent and share the same condition in both the split and submit expenses: To do this, we can define a shared function const isParticipantDisabled = (participant: MoneyRequestConfirmationListItem) =>
!participant.isInvoiceRoom && !participant.isPolicyExpenseChat && !participant.isSelfDM && ReportUtils.isOptimisticPersonalDetail(participant.accountID ?? -1); Then, use it here and add Alternative solutionAlternatively, to simplify, we can just add POC:Screen.Recording.2024-05-30.at.4.23.29.PM.mov |
Job added to Upwork: https://www.upwork.com/jobs/~01a2f8d719d411a342 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rojiphil ( |
Hmm yeah, can repro this one, moving it to #vip-split |
ProposalPlease re-state the problem that we are trying to solve in this issue.Unknown user profile loads infinitely when opening from split confirmation page offline What is the root cause of that problem?When the user opens a profile that doesn't yet exist in In this non-split participants page
What changes do you think we should make in order to solve the problem?According to this requirement for the workspace participant, we should not make the participant look disabled
So, we should not use the We should hold this issue for that one so we have the prop ready, then in
isNonInteractive with the identical condition as
isSelfDM ), so the method can be improved to check slightly differently for the split case, maybe we just need to check ReportUtils.isOptimisticPersonalDetail for splits.
What alternative solutions did you explore? (Optional)Optimistically generate the participant data and save to |
ProposalPlease re-state the problem that we are trying to solve in this issue.Unknown user profile loads infinitely when opening from split confirmation page offline ### What is the root cause of that problem? When the user opens a profile that doesn't yet exist in personalDetails also Not on Main Database , the app will attempt to load the profile data, but the user is currently offline so the loading will show forever. Line 248 in 0cb2dc0
Here hasAvatar & isLoading Both True Because user Data not valid or you can say that no data avaliable. ### What changes do you think we should make in order to solve the problem? According to #42552 (comment) for the workspace participant, we should make the participant look disabled if it's not an expencify user , otherwise if we show then it cause problem for other steps like chat section *(from profile section use can able to navigate to 1:1 chat section). So that Right Solution Just Disable Participant look disabled if it's not an expencify user. Solution : Line 95 in 0cb2dc0
convert This |
📣 @PrinceMakavana! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
Bump @youssef-lr for a review please! |
📣 @rojiphil 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @abzokhattab 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@abzokhattab's solution LGTM as well |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.8-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-07-25. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Test 1: |
I'll create a new upworks job, current one has expired. |
Payment Summary
|
@jliexpensify Accepted the offer. Thanks. |
Thank @jliexpensify .. accepted the offer |
Thanks, paying now! |
Paid and job closed! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.77-3
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: applause internal team
Slack conversation:
Action Performed:
Expected Result:
The user profile of the unknown account will not load infinitely.
Actual Result:
The user profile of the unknown account loads infinitely.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6496029_1717063180701.20240530_175403.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @jliexpensifyThe text was updated successfully, but these errors were encountered: