Skip to content

fix: sync shared-drive description on file renames#4761

Merged
shepilov merged 1 commit into
masterfrom
fix/file_shared_drive_reanmes
May 20, 2026
Merged

fix: sync shared-drive description on file renames#4761
shepilov merged 1 commit into
masterfrom
fix/file_shared_drive_reanmes

Conversation

@shepilov
Copy link
Copy Markdown
Contributor

Context

Shared-drive names shown in the Sharing tab were not updated in some rename flows.

Root cause: share-update (description sync) was only triggered for directory-root renames.
For file-root shared drives, renaming via PATCH /files/:id or PATCH /sharings/drives/:sharingID/:fileID did not always refresh sharing.description.

Changes

  • Refactored UpdateSharingDescriptionIfNeeded to accept:
    • referencedBy []couchdb.DocReference
    • newDescription string
  • Triggered description update on actual rename only (oldName != newName) for:
    • /files patch flow (single patch + bulk patch)
    • /sharings/drives/:sharingID/:fileID patch flow
  • Kept existing behavior for directory roots and extended it to file roots.

@shepilov shepilov requested a review from a team as a code owner May 20, 2026 08:08
@shepilov shepilov merged commit b4190b0 into master May 20, 2026
4 checks passed
@shepilov shepilov deleted the fix/file_shared_drive_reanmes branch May 20, 2026 08:38
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.

2 participants