-
Notifications
You must be signed in to change notification settings - Fork 3k
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 pending BE] [$250] Distance - Distance edit system message only appears after refreshing the page #49000
Comments
Triggered auto assignment to @miljakljajic ( |
Job added to Upwork: https://www.upwork.com/jobs/~021834276537749459128 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ZhenjaHorbach ( |
📣 @tryevertthhub! 📣
|
I got it issue, and I have faced this problem before while I developing notification app. I resolved with Socket. |
@tryevertthhub |
Edited by proposal-police: This proposal was edited at 2024-11-06 13:03:37 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.When the distance is changed in a distance based report the message that "distance was changed" is not shown in the chat. What is the root cause of that problem?The changes of a report are derived from the In contrast you can see below another screenshot when the category is updated on the same report on which case the message is shown: When we reopen the report the Open Report API brings all the What changes do you think we should make in order to solve the problem?On the front end we can show a message optimistically for the changes to the distance that will show while the user is waiting for a response from the backend. Step 1. Create optimistic data for waypoint changes We build the optimistic data in this lines: Lines 2574 to 2575 in 7b9a0cd
But as you can see we use them only if change in the IOU request is not related to the distance. We have to modify the condition to remove the waypoint checks and all for the optimistic data to be pushed even when there's a waypoint change. To allow for the optimistic data to be used we will replace the condition with
Step 2. Set the Distance messages are returned by the BE in the merchant and oldMerchant fields so it makes sense that we put the offline message in the merchant field. We have to add a new block in Here's what the block would be:
Step 3. Show the message for change distance.
Step 4. Add translations to NOTE. Because of the issue in the BE not returning the report actions when the distance is updated the message would not dissappear unless we clear out the storage manually or logut and login again. What alternative solutions did you explore? (Optional)We could fix this in the front end if that was necessary by calling the Open Report API again when the distance has changed. If that's a solution you would like to asses I can than update my proposal but I do not think that should be the way to go. |
@klajdipaja |
Edited by proposal-police: This proposal was edited at 2024-09-16 13:17:33 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Distance edit system message does not appear after the new distance is saved. It only appears after refreshing the page. What is the root cause of that problem?The cause is asynchrony between the backend and the frontend. What changes do you think we should make in order to solve the problem?I have faced this problem before while I developing notification app. I resolved with Socket. What alternative solutions did you explore? (Optional)You can solve this problem simply by using a socket. Using automatic page refresh is also a good idea.
|
@klajdipaja For example you can try to turn off the Internet @tryevertthhub |
@ZhenjaHorbach |
@ZhenjaHorbach You are right, it does seem to be related to the Optimistic data too. We would need to disable this check in
And then add another case to If we want to go with this approach we need to sync with the BE their logic on the distance and total value calculations. And after that we still need from BE to actually return the MODIFIEDEXPENSE action as I mentioned in my proposal so that the user gets the "real" values from the BE. If that's an approach you would consider I can update my proposal accordingly. |
Oh, interesting |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Looks like this issue is really related to BE 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @Gonals, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Is there a reward for the proposal on this case when the proposal finds the root cause of the issue but it needs a BE fix ? |
Currently focusing on Travel and won't be able to get to this in a timely manner. I'll look for someone to take over |
Not overdue |
@Gonals, @RachCHopkins, @ZhenjaHorbach Huh... This is 4 days overdue. Who can take care of this? |
@Gonals, @RachCHopkins, @ZhenjaHorbach 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
@Gonals, @RachCHopkins, @ZhenjaHorbach 10 days overdue. Is anyone even seeing these? Hello? |
Getting to this soon! |
Not overdue |
@Gonals, @RachCHopkins, @ZhenjaHorbach Eep! 4 days overdue now. Issues have feelings too... |
@Gonals, @RachCHopkins, @ZhenjaHorbach Still overdue 6 days?! Let's take care of this! |
Still working on travel. Hopefully back to this soon |
Same |
@Gonals, @RachCHopkins, @ZhenjaHorbach Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Not overdue |
@Gonals, @RachCHopkins, @ZhenjaHorbach 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
@Gonals, @RachCHopkins, @ZhenjaHorbach Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it! |
@Gonals, @RachCHopkins, @ZhenjaHorbach 12 days overdue now... This issue's end is nigh! |
Getting to this soon |
Same |
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: 9.0.32-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: https://expensify.testrail.io/index.php?/tests/view/4945031
Email or phone of affected tester (no customers): applausetester+kh010901@applause.expensifail.com
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Expected Result:
Distance edit system message will appear after the new distance is saved.
Actual Result:
Distance edit system message does not appear after the new distance is saved. It only appears after refreshing the page.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6599691_1726046020964.20240911_170930.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @GonalsThe text was updated successfully, but these errors were encountered: