-
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
[$500] WS - Track distance rate is updated on device B even if device A was offline. No error message. #29853
Comments
Triggered auto assignment to @maddylewis ( |
Job added to Upwork: https://www.upwork.com/jobs/~01e6380dfee0ad4833 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Ollyws ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
Triggered auto assignment to @nkuoch ( |
Identified the PR that introduced this issue - PR Note: Reverting PR will re-introduce Issue |
ProposalPlease re-state the problem that we are trying to solve in this issue.WS - Track distance rate is updated on device B even if device A was offline. No error message. What is the root cause of that problem?Due to changes in the #29700, when Offline - we are not sending lastModified in policy update payload while updating reimbursement rate and unit ( This is causing the queued request to override the latest rate and unit after coming online. What changes do you think we should make in order to solve the problem?Reverting the problematic PR if #28942 is not deploy blocker. What alternative solutions did you explore? (Optional)NA |
@narefyev91 @mountiny I'm not sure I understand this one, can you help me understand why this is an issue and a deploy blocker? what exactly is the issue when a pending offline change overrides a change made on the same account that is online? because I knew this will obviously be the resulting behaviour and thought it was okay |
The idea is that we want to avoid multiple devices from overriding changes from each other while one is offline. I could be swayed either way that this is actually a bug or not, but it's an edge case so I'll remove the blocker label for now and we can have a broader discussion on whether we want to fix it later. For reference, here's the error that you get with the production version |
@francoisl I see, thank you for the clarification, if this kind of edge case might be problematic I can look into approaching my solution differently in my PR or any other approach that is appropriate here. |
Current assignee @Ollyws is eligible for the External assigner, not assigning anyone new. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The track distance rate can be updated while offline even though we already updated it from another device/client. It should give an error message because the data sent from the first device while offline is the old data (old What is the root cause of that problem?We prevent the user from updating the track distance data if the sent App/src/libs/actions/Policy.js Line 960 in 5654980
It's to fix this issue, but the real issue is on the BE. #29853 (comment) What changes do you think we should make in order to solve the problem?The BE issue is fixed, so we should always send the I have retested #28942 after applying the solution and the issue is gone there is a proposal here with the same FE solution, but I also help with the BE fix |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@francoisl, @Ollyws, @maddylewis Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@bernhardoj's proposal looks good to me, let's roll with that. |
📣 @Ollyws 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @bernhardoj 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR is ready cc: @Ollyws @francoisl |
@maddylewis I think this is ready for payment. |
This issue has not been updated in over 15 days. @francoisl, @Ollyws, @maddylewis, @bernhardoj eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
@maddylewis small bump on payment when you a chance. |
Plz move to daily when ready for payment - ty! Reviewing now :) |
@bernhardoj paid / offer sent to @Ollyws |
@Ollyws is also paid! 👍 |
@maddylewis hi, sorry, but I just rechecked the Upwork offer and looks like it's not paid yet for me. Can you please recheck this on your end? |
@maddylewis bump on the above ^ |
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.3.86-1
Reproducible in staging?: Y
Reproducible in production?: N
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:
An error message is shown (red dot is present) and the track distance rate has changed to the one entered on device B
Actual Result:
No error message. The track distance rate did not changed on device A but changed on device B.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
Bug6241493_1697620057358.T3844333_iOS_Track_Distance_Rate_update_incorrect_way.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @maddylewisThe text was updated successfully, but these errors were encountered: