-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[$250] Report - Added content is lost after editing in offline mode and refreshing the page #40455
Comments
Triggered auto assignment to @JmillsExpensify ( |
@JmillsExpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
We think that this bug might be related to #vip-vsp |
@JmillsExpensify Eep! 4 days overdue now. Issues have feelings too... |
Yikes, this doesn't seem good. I agree that it's #vip-vsb so I will add it to the project. Also going to start with external since that'll be picked up faster. |
Job added to Upwork: https://www.upwork.com/jobs/~01bf8721625590c5d0 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Pujan92 ( |
@lanitochka17 I am not able to reproduce it, can you plz check and confirm Screen.Recording.2024-04-26.at.22.02.14.mov |
@Pujan92 Tester is still able to reproduce this issue Screen.Recording.2024-04-26.at.7.40.11.in.the.evening.mp4 |
ProposalPlease re-state the problem that we are trying to solve in this issue.The edited comment is discarded when refreshing the page while offline. What is the root cause of that problem?When we do an API request while offline, we will save it to the App/src/libs/actions/PersistedRequests.ts Lines 25 to 30 in 777d218
However, the queue is never saved because we pass the same instance of the array. You can see in the log that the So, when we refresh the page, the edit request will never be processed, and the OpenReport/ReconnectApp request will return the message data from the BE which is unedited. What changes do you think we should make in order to solve the problem?Create a new instance of array before saving the queue.
|
@JmillsExpensify, @Pujan92 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
I agree with @bernhardoj's RCA and solution as it is not getting updated in the Onyx due to the ref issue. We should assign the new array to the onyx which will do the check correctly for 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @Gonals, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @Pujan92 🎉 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: @Pujan92 |
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:
|
Bump @JmillsExpensify for the payment as PR hit the prod a week ago, automation seems broken here. |
Payment summary:
|
All contracts paid out via Upwork and the BZ checklist is complete. Closing this one out! |
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.63-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: N/A
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
Added comment while editing in offline mode should persist
Actual Result:
Add comment while editing in offline mode is lost
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6453446_1713434894311.Screen_Recording_2024-04-18_at_adf1.02.28_in_the_afternoon.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: