-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[$1000] Splitting bill shows deleted message for a brief moment of time #19487
Comments
Triggered auto assignment to @Christinadobrzyn ( |
Bug0 Triage Checklist (Main S/O)
|
I'm able to reproduce it, I don't think it's related to an existing issue. I think this can be external? |
Job added to Upwork: https://www.upwork.com/jobs/~011ef39d4d0e55c94e |
Current assignee @Christinadobrzyn is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
Triggered auto assignment to @jasperhuangg ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.[Deleted message] appears for few seconds before turning into the correct report name. What is the root cause of that problem?This is due to the getReportName function is always returning Lines 1115 to 1122 in 0f33e2c
The root cause of this issue is because the app has already navigated to the report page (as shown below) before the report has created completely and returned from the back-end service. The insufficient child report data is therefore causing App/src/components/ReportActionItem/MoneyRequestAction.js Lines 125 to 126 in 0f33e2c
What changes do you think we should make in order to solve the problem?To add an additional condition to make sure if the child report data is created and returned from the back-end service.
The isSplitMoneyReportAction function would be something like this to determine if the given report action is split money report action by checking for presence of originalMessage object and 'split' type.: Lastly, after implementing this checking, the child report name will become ' ' when the creation of the child report has yet to complete. What alternative solutions did you explore? (Optional)We could also add some checking to make sure the openReport api function has finished calling before navigating to the child report screen if we want. App/src/components/ReportActionItem/MoneyRequestAction.js Lines 125 to 126 in 0f33e2c
|
ProposalPlease re-state the problem that we are trying to solve in this issue.[Deleted message] is shown in a new split bill thread What is the root cause of that problem?
App/src/components/ReportActionItem/MoneyRequestAction.js Lines 122 to 125 in 0f33e2c
App/src/pages/home/report/ReportActionItem.js Lines 184 to 188 in 0f33e2c
Line 109 in 0f33e2c
Lines 1116 to 1121 in 0f33e2c
What changes do you think we should make in order to solve the problem?update this line
to
as what BE returns ResultScreen.Recording.2023-05-25.at.23.34.24.mov |
@brianlee1025 Thanks for the proposal. I don't think your RCA is correct. The App is based on an offline first design and we don't need to wait for the server response (you can reproduce the bug when offline - this should not happen). Apparently the root cause is that the optimistic data that we create is incorrect. |
@tienifr Thanks for the proposal. Your RCA makes sense. The suggested fix works but we actually used to pass Maybe we can define |
hmm I think we have to look more into this. The iou action should be the parent report action and hence the money report where the iou action resides is the parent report. If you do a Split with just one person, I am not sure how exactly that should be handled, shouldnt we just make one request of the half price? @Julesssss @luacmartins ? |
@s77rt @mountiny I have one suggestion: IOUs of type split only exist in group DMs when the participants.length > 1, so I want to add this condition to decide we should delete IOUReportID or not Lines 1450 to 1454 in 0925c25
and add IOUReportID as eighth arg (groupChatReport.reportID) in Line 414 in 0925c25
Result: Screen.Recording.2023-05-26.at.12.27.03.movPlease tell me what're your thoughts. Thanks. |
I'm not sure how to proceed here but based on @luacmartins statement looks like we may do nothing. Clicking the split preview box is planned to open a details modal (RHN) and not a new report. Ongoing PR: #19390. |
Yea this behavior shouldn't exist. We don't create a thread when we press the split preview component. I think we can close this issue. |
I agree, lets close this up, sorry for the confusion this is still in development |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
Splitting bill should not show the deleted message for a brief moment of time
Actual Result:
Deleted message appears for some period of time and then it changes to the message
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.17.0
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
Notes/Photos/Videos: Any additional supporting documentation
delete.mp4
Recording.738.mp4
Expensify/Expensify Issue URL:
Issue reported by: @avi-shek-jha
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1684592253606429
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: