Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Sep 20, 2024

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Sep 11, 2024

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

@susnux susnux added this to the Nextcloud 31 milestone Sep 11, 2024
@susnux susnux requested review from a team and artonge and removed request for a team September 11, 2024 18:17
@susnux susnux requested a review from skjnldsv as a code owner September 11, 2024 18:17
@susnux susnux requested review from skjnldsv and sorbaugh September 11, 2024 18:17
@susnux
Copy link
Contributor Author

susnux commented Sep 11, 2024

/backport to stable30

@susnux
Copy link
Contributor Author

susnux commented Sep 11, 2024

/backport to stable29

@susnux susnux requested a review from Pytal September 11, 2024 19:52
@skjnldsv skjnldsv force-pushed the fix/files-duplicated-nodes branch from 625a545 to e2ffa0a Compare September 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 <[email protected]>
@susnux susnux force-pushed the fix/files-duplicated-nodes branch from 1ac295f to f02bcf3 Compare September 20, 2024 09:09
@susnux
Copy link
Contributor Author

susnux commented Sep 20, 2024

/compile

Signed-off-by: nextcloud-command <[email protected]>
@susnux susnux merged commit 7ff9116 into master Sep 20, 2024
116 checks passed
@susnux susnux deleted the fix/files-duplicated-nodes branch September 20, 2024 11:31
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.

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