Skip to content

Invalidate shared users' caches on every folder change - #21

Merged
Umang-Shikarvar merged 1 commit into
mainfrom
fix/notify-mkdir-trash-restore
Oct 18, 2026
Merged

Umang-Shikarvar merged 1 commit into
mainfrom
fix/notify-mkdir-trash-restore

Conversation

@Umang-Shikarvar

Copy link
Copy Markdown
Collaborator

Only file creation, uploads, writes and permanent deletes sent invalidation callbacks. mkdir, moving to trash and restoring from trash changed a folder without telling anyone viewing it, so users the folder is shared with kept a stale listing.

  • CreateFile notifies for directories too (mkdir, folder uploads), and no longer notifies the user who made the change.
  • TrashFile notifies the item's original folder.
  • RestoreFile notifies the folder the item is restored into.
  • A failed upload that scraps its partial file now announces the removal, since CreateFile had already announced the file.
  • Client notification text covers both files and folders.

Adds end-to-end tests: mkdir/trash/restore and file/folder upload by the owner are seen by the shared user's cache.

Only file creation, uploads, writes and permanent deletes sent
invalidation callbacks. mkdir, moving to trash and restoring from trash
changed a folder without telling anyone viewing it, so users the folder
is shared with kept a stale listing.

- CreateFile notifies for directories too (mkdir, folder uploads), and no
  longer notifies the user who made the change.
- TrashFile notifies the item's original folder.
- RestoreFile notifies the folder the item is restored into.
- A failed upload that scraps its partial file now announces the removal,
  since CreateFile had already announced the file.
- Client notification text covers both files and folders.

Adds end-to-end tests: mkdir/trash/restore and file/folder upload by the
owner are seen by the shared user's cache.
@Umang-Shikarvar
Umang-Shikarvar merged commit b4060a3 into main Oct 18, 2026
1 check passed
@Umang-Shikarvar
Umang-Shikarvar deleted the fix/notify-mkdir-trash-restore branch October 18, 2026 19:53
Umang-Shikarvar added a commit that referenced this pull request Oct 18, 2026
Restores the tree of 84f23f6 (Merge pull request #16), undoing PRs #19,
#20, #21 and #22. That work is preserved on branch fix_cache_callback.
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.

1 participant