-
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
BUG: Out of order messages when creating 2 bill splits while offline #13586
Comments
I put up a draft PR. I think another PR might have already fixed the issue where the chats appear out of order. I'll test that later and put the PR up for review if so. |
Today I was working on my monthly issues so I didn't get to this. |
Today I was working on my weekly issues so I didn't get to this. |
I debugged the message ordering pretty thoroughly today. I'm not sure if it's worth fixing at the moment. Here's what I found. I followed the offline test steps in the App PR which involves splitting a bill with 2 other users, requesting another split, viewing a 1:1 chat with the split, and then going back online. The first bill split was $1 per user, the next was $2 per user. I'm keeping track of the created timestamps on each report action because that's how they are currently sorted on the front end. I request a bill split while offline and open one of the 1:1 chats. First I get Then I request another split. I get the created, the $1, and the $2. The I go back online and start making API requests. First SplitBillAndOpenReport runs Now the created action is out of order. I get the $2, the created, and the $1. So it's definitely odd here that the created timestamp is later than the $1 Finally the values are sorted properly as created, $1, $2. The results above are a case of the "replay effect" where actions are replayed when the user goes back online. If the created report action from the server came back first the results would look like this.
|
Tomorrow I will test the PR to fix the grayed out state in the LHN and I'll put it up for review as a partial fix. I'm holding the out of order messages part on the issue to fix the replay effect. |
The grayed out state fix is merged. This issue #13310 is the same problem so I'm going to close this one and let the problem get solved in the issue eventually. |
Actually, I should leave this open until the related PR is deployed. |
Here's the PR, GH doesn't seem to automatically link it right now #13602 |
Since this issue is locked the Bug Zero checklist didn't post, so here it is. 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:
|
@mananjadhav (C+ reviewer) can you apply for the Upwork job, here? |
This has been paid out! I'll work on the regression test shortly. |
@johncschuster any update on this? It's been a month and I think Melvin didn't ping because the issue is locked. Also because the regressions steps weren't updated we have this issue as well #14560. |
@johncschuster how did you comment on this last YEAR Screen.Recording.2023-02-07.at.1.48.13.PM.mov |
Oy! Sorry guys. I've been a bit behind on GH notifs. Working on the regression steps now! |
Oh! It looks like the QA steps from the linked PR are already included in the TestSuite, here. |
Ok cool. The other issue was not following these test steps as far as I can tell. Maybe we can make them more clear, or maybe they are good as is? What do you think @kbecciv? |
We could update step 8 like so to describe the expected behavior regarding participants being grayed out on the second pending split.
|
Great suggestion! I've created an issue for that proposed change, here. |
🚀 |
Are we good to close this one out? |
It looks like you already completed the payments so I updated the issue title. Let's wait until the regression test is actually updated and this issue is closed https://github.com/Expensify/Expensify/issues/260938. @johncschuster please ping the #qa channel in Slack. I find that's usually required to get someone on the issue quickly. |
@johncschuster, @neil-marcellini Whoops! This issue is 2 days overdue. Let's get this updated quick! |
The regression test issue is closed now so this is done! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
Actual Result:
Workaround:
Go back online and ignore the UI flaws.
Platform:
All
Version Number: v1.2.39-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
Email or phone of affected tester (no customers): N/A
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
split-offline-bugs.mp4
Expensify/Expensify Issue URL:
Issue reported by: @neil-marcellini
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1670980004459869
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: