-
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
[HOLD FOR 45043] [$250] Report - "Uploading attachment..." message disappears after restarting the app in offline #45338
Comments
Triggered auto assignment to @bfitzexpensify ( |
@bfitzexpensify 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 |
Job added to Upwork: https://www.upwork.com/jobs/~01c0c3582f7d243cde |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
ProposalPlease re-state the problem that we are trying to solve in this issue."Uploading attachment..." message disappears after restarting the app in offline What is the root cause of that problem?Uploading attachment will give us an error message in console, both for offline and online. Here is the console error: This happens because we directly assigning the This cause an error because we cannot store non-cloneable properties on IndexedDB What changes do you think we should make in order to solve the problem?Line 3702 in 4ae133d
Change this code to const attachmentInfo = file ? {...file} : {}; by this changes we create a shallow copy of the file object. This shallow copy contains only the properties of the file object, excluding any non-clonable properties
RESULT New-Expensify.12.mp4What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue."Uploading attachment..." message disappears after restarting the app in offline What is the root cause of that problem?The problem arises because when users add attachments while offline, the optimistic report action fails to be saved in Onyx. This issue comes from a recent update in react-native-onyx, specifically in The attachmentInfo includes What changes do you think we should make in order to solve the problem?To resolve this issue, we can revert the mergeObject of utils.js to use // Reverted code for the target:
const targetKeys = Object.keys(targetObject);
for (let i = 0; i < targetKeys.length; ++i) {
const key = targetKeys[i];
...
}
// Reverted code for the source:
const sourceKeys = Object.keys(source);
for (let i = 0; i < sourceKeys.length; ++i) {
const key = sourceKeys[i];
const sourceValue = source?.[key];
...
} |
This issue can be fixed here. |
@nkdengineer cool, we will hold on your PR |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@rushatgabhane, @bfitzexpensify Huh... This is 4 days overdue. Who can take care of this? |
@rushatgabhane, @bfitzexpensify 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
same on hold |
@rushatgabhane, @bfitzexpensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@rushatgabhane, @bfitzexpensify Eep! 4 days overdue now. Issues have feelings too... |
@rushatgabhane, @bfitzexpensify Still overdue 6 days?! Let's take care of this! |
@rushatgabhane, @bfitzexpensify 10 days overdue. I'm getting more depressed than Marvin. |
@rushatgabhane, @bfitzexpensify 12 days overdue. Walking. Toward. The. Light... |
This issue has not been updated in over 14 days. @rushatgabhane, @bfitzexpensify eroding to Weekly issue. |
Not reproducible Recording.74.3.mp4 |
Awesome, let's close this out. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.6-2
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/4695551
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
The message "Uploading attachment..." should be visible in the conversation after reloading the app in offline mode
Actual Result:
"Uploading attachment..." message disappears in the conversation after reloading the application in offline mode
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6533139_1720100548631.Recording__192.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @rushatgabhaneThe text was updated successfully, but these errors were encountered: