Skip to content

fix(files): Ensure children are removed from folder and not duplicated - #47905

Merged
susnux merged 3 commits into
masterfrom
fix/files-duplicated-nodes
Sep 20, 2024
Merged

fix(files): Ensure children are removed from folder and not duplicated#47905
susnux merged 3 commits into
masterfrom
fix/files-duplicated-nodes

Conversation

@susnux

@susnuxsusnux commented Sep 11, 2024

Copy link
Copy Markdown
Contributor

Summary

We need to make sure that we only add one source (unique!) once as a child, this is ensured by simply use a native Set.
Also we need to remove children on from folders when the files:node:deleted event is emitted.

Checklist

@susnuxsusnux added this to the Nextcloud 31 milestone Sep 11, 2024
@susnux
susnux requested review from a team and artonge and removed request for a teamSeptember 11, 2024 18:17
@susnux

Copy link
Copy Markdown
ContributorAuthor

/backport to stable30

@susnux

Copy link
Copy Markdown
ContributorAuthor

/backport to stable29

@susnux
susnux requested a review from PytalSeptember 11, 2024 19:52
@skjnldsv
skjnldsvforce-pushed the fix/files-duplicated-nodes branch from 625a545 to e2ffa0aCompareSeptember 14, 2024 19:17
* Resolves#47904
We need to make sure that we only add one source (unique!) once as a child,
this is ensured by simply use a native `Set`.
Also we need to remove children on from folders when the `files:node:deleted`
event is emitted.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux
susnuxforce-pushed the fix/files-duplicated-nodes branch from 1ac295f to f02bcf3CompareSeptember 20, 2024 09:09
@susnux

Copy link
Copy Markdown
ContributorAuthor

/compile

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Sign up for freeto 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.

"files:node:created" creates duplicate files in the list if the same file has been deleted before

4 participants

@susnux@nfebe@skjnldsv@nextcloud-command