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

[stable29] fix(files): Ensure children are removed from folder and not duplicated #48239

Merged
merged 4 commits into from
Oct 16, 2024

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Sep 20, 2024

Backport of #47905

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Remove all the empty commits

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@backportbot backportbot bot requested review from nfebe, skjnldsv and susnux September 20, 2024 11:32
@backportbot backportbot bot added the 3. to review Waiting for reviews label Sep 20, 2024
@backportbot backportbot bot added this to the Nextcloud 29.0.8 milestone Sep 20, 2024
@susnux susnux force-pushed the backport/47905/stable29 branch from daedbb5 to 1a2775e Compare October 15, 2024 14:54
@susnux susnux marked this pull request as ready for review October 15, 2024 14:54
@susnux susnux requested a review from artonge October 15, 2024 14:54
@susnux
Copy link
Contributor

susnux commented Oct 15, 2024

/compile

@susnux susnux enabled auto-merge October 15, 2024 14:55
@susnux susnux disabled auto-merge October 15, 2024 14:55
@susnux susnux enabled auto-merge October 15, 2024 14:55
@susnux susnux force-pushed the backport/47905/stable29 branch from 75af0c0 to 2357f50 Compare October 15, 2024 16:27
@susnux
Copy link
Contributor

susnux commented Oct 15, 2024

/compile

* 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 backport/47905/stable29 branch from c419383 to a8e323e Compare October 16, 2024 11:10
@susnux susnux disabled auto-merge October 16, 2024 12:08
@susnux
Copy link
Contributor

susnux commented Oct 16, 2024

/compile amend/

susnux and others added 3 commits October 16, 2024 18:32
Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
@susnux susnux force-pushed the backport/47905/stable29 branch from 90a6471 to 441e0f0 Compare October 16, 2024 16:33
@susnux susnux enabled auto-merge October 16, 2024 16:33
@susnux susnux merged commit 6a28833 into stable29 Oct 16, 2024
110 checks passed
@susnux susnux deleted the backport/47905/stable29 branch October 16, 2024 17:11
@Altahrim Altahrim mentioned this pull request Oct 30, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants