Skip to content

perf(files): compute move/rename activity settings once#2656

Open
solracsf wants to merge 1 commit into
masterfrom
perf/compute-once
Open

perf(files): compute move/rename activity settings once#2656
solracsf wants to merge 1 commit into
masterfrom
perf/compute-once

Conversation

@solracsf

Copy link
Copy Markdown
Member

On a cross-folder move/rename, FilesHooks::fileMoving() resolved the per-user email/notification settings (and the file's favoriting users) three times: once for each of the disjoint delete/add/move subsets of the same file.

This PR resolves them once over the union of affected users and passes the maps to the three generate methods.

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant