Skip to content
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

Mobile: Fixes #10313: Fix error on retry or ignore attachment too large error #10314

Conversation

personalizedrefrigerator
Copy link
Collaborator

@personalizedrefrigerator personalizedrefrigerator commented Apr 15, 2024

Summary

Fixes an error caused by ReportService referencing an undefined property in retryHandler and ignoreHandler.

Fixes #10313.

Note

This pull request is marked as Mobile: because maxResourceSize is Infinity on desktop and CLI.

Testing plan

This pull request has an automated test. It has also been tested manually by 1) clicking "ignore" by an error for an item that failed to download and 2) verifying that the item is moved to the "ignored" section.

Comment on lines +112 to +125
const createAttachmentDownloadError = async () => {
await switchClient(2);

const note1 = await Note.save({ title: 'note' });
await shim.attachFileToNote(note1, `${supportDir}/photo.jpg`);
await synchronizerStart();

await switchClient(1);

const previousMax = synchronizer().maxResourceSize_;
synchronizer().maxResourceSize_ = 1;
await synchronizerStart();
synchronizer().maxResourceSize_ = previousMax;
};
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently, this logic is roughly copied from Synchronizer.resources.test.ts.

@laurent22 laurent22 merged commit 87f7fb6 into laurent22:dev Apr 15, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mobile: Error on "ignore" or "retry" when an attachment is too large to download
2 participants