-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 for payment 2024-03-06] [$500] Distance - Distance request preview in the main chat is grayed out offline when created online #34910
Comments
Triggered auto assignment to @joekaufmanexpensify ( |
Job added to Upwork: https://www.upwork.com/jobs/~010290c226a17cdffb |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh ( |
We think that this bug might be related to #wave. |
Wrong tag @lanitochka17 🙂 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Distance request preview in the main chat is grayed out offline when created online What is the root cause of that problem?the however apparently setting the pending fields to null doesnt properly work we need to specify the fields inside the What changes do you think we should make in order to solve the problem?change this to: pendingFields: {
...(isNewIOUReport ? {createChat: null} : {preview: null}),
}, and also do the same here where we need to change it to ...(isNewChatReport ? {pendingFields: {createChat:null }} : {}), additionally, the same should be done in the failureData as well .. and we may do the same in other null fields as well Result:Untitled.mov |
ProposalPlease re-state the problem that we are trying to solve in this issue.The distance requests appear grayed out in offlne mode when they are created online. However, the requests are not grayed out in the expense report. This indicates that it is not network connection issue as the expense preview will appear grayed out in both the main chat and expense report if it is network issue What is the root cause of that problem?This issue happens when we call 2 APIs (CreateDistanceRequest, OpenReport) at the same time, so the responses from 2 requests will be added to the queue then after the sequential queue has flushed to prevent a replay effect. App/src/libs/actions/OnyxUpdates.ts Lines 27 to 29 in c060897
the successData of OpenReport here
so pendingFields.preview is not cleared -> When users go offline, it's greyed out What changes do you think we should make in order to solve the problem?Solution 1: We should clear all pendingFields in successData as we already did in other places
Solution 2: What alternative solutions did you explore? (Optional)NA ResultScreen.Recording.2024-01-23.at.16.51.37.mp4 |
I can't reproduce this on my end following the above steps. Is this consistently reproducible for others? 2024-01-23_11-13-45.mp4 |
Update: POC was Added. |
I just tried again, and still can't reproduce this. Closing as this doesn't seem to be consistently reproducible. |
@joekaufmanexpensify @abzokhattab I can still reproduce. Please follow these steps:
|
@joekaufmanexpensify any updates? |
@joekaufmanexpensify @abzokhattab I still can reproduce |
Thanks for flagging. I am taking another look. |
I tried to reproduce again, and I can now. The key is after creating the two distance requests, you need to click into the request details for one of them, navigate back to the workspace chat, and then go offline to reproduce this. If you don't click into the request details for one of the requests, there is no issue when going offline (as shown by my reproduction attempt here.) I added this to the reproduction steps in OP, as it was not clear before. |
@fedirjh all yours to review proposals |
Pending review from @fedirjh |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@fedirjh could you please take a look at the proposals here when you have a chance? |
@iwiznia mind signing off on the proposal here when you have a sec? |
@iwiznia @fedirjh @joekaufmanexpensify this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ and will need to go internal. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks! |
Pending internal proposal sign off |
Issue not reproducible during KI retests. (First week) |
@mvtglobally I just tried again on my end and can still reproduce. |
@iwiznia could you sign off on this proposal when you have a sec? |
Still pending engineering sign off |
Bumped 1:1 |
So sorry for the radio silence, I had a bad filter in my emails and this one got caught in it, so I was not seeing any of the messages or pings 😬 Proposal looks good to me. |
📣 @fedirjh 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @tienifr 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@tienifr is there an ETA for the PR here? |
@joekaufmanexpensify I'll raise the PR in 1-2 hours |
@joekaufmanexpensify PR hit production. Melvin is malfunctioning. Please add HOLD for payment label. |
done! |
@fedirjh $500 sent and contract ended |
@tienifr $500 sent and contract ended |
All set! |
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.4.29-1
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: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
The distance requests will not appear grayed out in offline mode since they are created online
Actual Result:
The distance requests appear grayed out in offlne mode when they are created online. However, the requests are not grayed out in the expense report. This indicates that it is not network connection issue as the expense preview will appear grayed out in both the main chat and expense report if it is network issue
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6350727_1705942706606.bandicam_2024-01-22_20-27-17-314.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: