-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[$500] Split Bill - Group members disappeared in a split bill when make second split bill in a row #33518
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
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01d3ed805fe8e7116d |
Triggered auto assignment to @alexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Draft view for a new split bill is getting reset when creating a second split bill right after another. What is the root cause of that problem?I've managed to reproduce the issue by throttling my network, root cause is that part of the onyx successData is setting TRANSACTION_DRAFT as null.
So when the network call finishes and we got a new split bill in progress it gets reset. What changes do you think we should make in order to solve the problem?Remove the TRANSACTION_DRAFT merge to null from the successData inside What alternative solutions did you explore? (Optional)Instead of removing the transaction_draft, we can move it to the optimisticData, though it shouldn't be necessary since the transaction draft view is already cleaned up after submitting it. Edit: removed reminder text |
@abdulrahuman5196 - when you get a chance, can you review if this proposal will fix this issue? Thanks! Heads up, I will be offline from Friday, December 22, to Thursday, January 4, 2024. I will not be actively watching over this GitHub during that period. If anything urgent is needed here, please ask for help in the #expensify-open-source Slack Room-- thanks! |
ProposalPlease re-state the problem that we are trying to solve in this issue.Group members disappeared in a split bill when make second split bill in a row What is the root cause of that problem?We clear the Line 1235 in 7b836cf
What changes do you think we should make in order to solve the problem?
And then we can replace
Line 140 in 8e2fb67
Here is the test branch: https://github.com/dukenv0307/App/tree/fix/33518 What alternative solutions did you explore? (Optional)For point 2, we can always clear all transaction drafts whenever we open the App. Although it's not good for the case user is starting the money request flow in another tab, this case is rare and we don't need to take care of this so much. |
@alexpensify, @abdulrahuman5196 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@alexpensify, @abdulrahuman5196 Huh... This is 4 days overdue. Who can take care of this? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Sorry for the delay. Will check in my morning. |
Reviewing now |
@dukenv0307 On proposal here #33518 (comment), it might not be that easy to replace the @adriancova on proposal here #33518 (comment), do you suggest to not clear the draft data? I am not sure if that would be a valid fix, since the stale data will be present in that case. |
Tagging @tgolen, as he made the original change. |
@abdulrahuman5196 https://github.com/dukenv0307/App/tree/fix/33518 Here is the change, of course we will need to re-test this carefully in the PR, this branch is the detail of the main ideal. |
My first thought is that if this is happening, this is wrong. There should never be multiple draft transactions for the same report. Then I thought about the case where you want to create multiple requests while being offline, and maybe that's where my logic breaks down. The reason for having
Ideally, it would be nice if the draft transaction ID was random, but we still need to figure out a way to clean up all the abandoned data so it doesn't keep growing. Maybe this could be solved with an Onyx migration that always removes the X oldest drafts? |
Thank for your response
|
Point 1 makes sense. For point 2, why is that any different than what we have today? |
If we create the transaction, the draft is already cleared in |
Issue not reproducible during KI retests. (First week) |
Oh weird, seems odd that we'd use the same optimistic id. But in that case the solution makes sense! |
@MelvinBot? Do you want to do all the assigning stuff? |
Current assignee @abdulrahuman5196 is eligible for the External assigner, not assigning anyone new. |
📣 @abdulrahuman5196 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @adriancova You have been assigned to this job! |
there we go. |
Hey guys, I'll send a pr in a couple of hours. But it seems I can no longer apply to the upwork job, it's showing as "no longer available". will that be an issue? @dangrous |
We can recreate it as needed, I know upwork is weird sometimes! cc @alexpensify |
I'll need to create a new job in Upwork but will do so when the automation flags for payment kicks in. I've noted I need to create a new job. |
I'm aware that this one is in staging now and will watch out for it to go to production |
Not a regression. Seems to be a bug for sometime.
No. Minor case which is hard to reproduce. |
Hey again sorry, first time contributor here. is there something else I need to do on my end? |
@adriancova - no action is needed here. @abdulrahuman5196 confirmed that this PR didn't cause regression. The only remaining action is the payment process. Tomorrow marks the 7-day mark, and I can start the payment process then. |
Here is the payment summary:
Upwork Job: https://www.upwork.com/jobs/~01d3ed805fe8e7116d Extra Notes regarding payment: @adriancova - I'm having trouble finding you on Upwork. Can you share your Upwork profile URL and I can try to find you that way? Thanks! |
Hey @alexpensify, sure I just changed the url to make it easier to find: Let me know if I can help with anything else, and thank you! |
Thanks, I had to spin up a new job but invited you to it here: https://www.upwork.com/jobs/~01696e82885325d5bd Please accept in Upwork and I can complete the next steps. Thanks! |
Ok, all set here-- everyone has been paid in Upwork. |
Uh oh!
There was an error while loading. Please reload this page.
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number:
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:
Slack conversation:
Issue found when executing PR #29996
Action Performed:
Expected Result:
User should be able to make a two split bills in a row in a group chat
Actual Result:
Group members disappeared in a split bill when make second split bill in a row
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6324217_1703269813154.Recording__32.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @abdulrahuman5196The text was updated successfully, but these errors were encountered: