sync => pull or other apropos

This commit is contained in:
Manav Rathi
2025-06-26 07:50:17 +05:30
parent ef4b9ebc42
commit 2c2b8f77cb
5 changed files with 12 additions and 12 deletions

View File

@@ -821,7 +821,7 @@ const Page: React.FC = () => {
// 2. Construct a fake a metadata object with the updates
// reflected in it.
//
// 3. The caller (eventually) triggers a remote sync in the
// 3. The caller (eventually) triggers a remote pull in the
// background, but meanwhile uses this updated metadata.
//
// TODO(RE): Replace with file fetch?

View File

@@ -362,7 +362,7 @@ export default function PublicCollectionGallery() {
setPublicCollection(null);
setPublicFiles(null);
} else {
log.error("failed to sync public album with remote", e);
log.error("Public album remote pull failed", e);
}
} finally {
hideLoadingBar();

View File

@@ -196,8 +196,8 @@ export interface UpdatedFileDataFileIDsPage {
fileIDs: Set<number>;
/**
* The latest updatedAt (epoch microseconds) time obtained from remote in
* this batch of sync (from amongst all of the files in the batch, not just
* those that were filtered to be part of {@link fileIDs}).
* this batch being fetched (from amongst all of the files in the batch, not
* just those that were filtered to be part of {@link fileIDs}).
*/
lastUpdatedAt: number;
}

View File

@@ -163,7 +163,7 @@ export interface GalleryState {
* Unsynced modifications are those whose effects have already been made on
* remote (so thus they have been "saved", so to say), but we still haven't
* yet refreshed our local state to incorporate them. The refresh will
* happen on the next "file sync", until then they remain as in-memory state
* happen on the next files pull, until then they remain as in-memory state
* in the reducer.
*/
collectionFiles: EnteFile[];
@@ -318,9 +318,9 @@ export interface GalleryState {
* the user's favorites, false otherwise) which should be used for that file
* instead of what we get from our local DB.
*
* The next time a sync with remote completes, we clear this map since
* thereafter just deriving {@link favoriteFileIDs} from our local files
* would reflect the correct state on remote too.
* The next time a remote pull completes, we clear this map since thereafter
* just deriving {@link favoriteFileIDs} from our local files would reflect
* the correct state on remote too.
*/
unsyncedFavoriteUpdates: Map<number, boolean>;
/**
@@ -338,9 +338,9 @@ export interface GalleryState {
* Each entry from a file ID to the magic metadata that should be used for
* that file instead of what we get from our local DB.
*
* The next time a sync with remote completes, we clear this map since
* thereafter the synced files themselves will reflect the latest private
* magic metadata.
* The next time a remote pull completes, we clear this map since thereafter
* the synced files themselves will reflect the latest private magic
* metadata.
*/
unsyncedPrivateMagicMetadataUpdates: Map<
number,

View File

@@ -79,7 +79,7 @@ interface PullFilesOpts {
* This is a subset of a full remote pull, independently exposed for use at
* times when we only want to pull the file related information (e.g. we just
* made some API request that modified collections or files, and so now want to
* sync our local changes to match remote).
* update our local changes to match remote).
*
* See also: [Note: Remote pull]
*