Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

skip failes to debug user sync issue

laurenspriemc5b5241c62a4
diff --git a/mobile/apps/photos/lib/services/sync/diff_fetcher.dart b/mobile/apps/photos/lib/services/sync/diff_fetcher.dart
index 93db27d0bd..dbe2a3e646 100644
--- a/mobile/apps/photos/lib/services/sync/diff_fetcher.dart
+++ b/mobile/apps/photos/lib/services/sync/diff_fetcher.dart
@@ -15,6 +15,16 @@ import "package:photos/services/collections_service.dart";
import "package:photos/utils/dialog_util.dart";
import "package:photos/utils/file_key.dart";
+// Skip processing these fileIDs during diff for the given collection.
+// Used to unblock a specific user whose sync is failing on these files.
+const int _skipCollectionID = 1580559965692884;
+const Set<int> _skipFileIDs = {
+ 588219655,
+ 588220428,
+ 588220482,
+ 588220590,
+};
+
class DiffFetcher {
final _logger = Logger("DiffFetcher");
@@ -133,6 +143,14 @@ class DiffFetcher {
file.collectionID = item["collectionID"];
file.updationTime = item["updationTime"];
latestUpdatedAtTime = max(latestUpdatedAtTime, file.updationTime!);
+ if (_skipCollectionID == file.collectionID &&
+ _skipFileIDs.contains(file.uploadedFileID)) {
+ _logger.warning(
+ '[Collection-$collectionID] skipping fileID '
+ '${file.uploadedFileID}',
+ );
+ continue;
+ }
if (item["isDeleted"]) {
if (existingUploadIDs.contains(file.uploadedFileID)) {
deletedFiles.add(file);