-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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: promote re-shares when deleting the parent share #47425
fix: promote re-shares when deleting the parent share #47425
Conversation
88e1618
to
941934a
Compare
The failing tests are related. The test failing is testing this scenario:
It fails at the step in bold. If I reorder the transferring code and use The more I think about it the more it feels like it’s not the job of transfer-ownership to delete broken shares. |
After internal discussion, reshares should not be deleted when share is deleted but turned into direct shares instead. We should still be careful about what that means for transfer-ownership when incomming shares are not transfered. |
56e6eff
to
1527836
Compare
To make sure I understand this correct:
I think there was a discussion recently with @jancborchardt if this is expected behavior. |
Yes that is correct
Before deleting the share to B, A sees shares both to B and C in the UI. There is no visible distinction between the share and the reshare. |
7c3f054
to
f389c6f
Compare
Note: Removed part about fix command from original PR Signed-off-by: Luka Trovic <luka@nextcloud.com> Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Canceling the previous add of deletion of invalid shares in transferownership because in some cases it deletes valid reshares, if incoming shares are not transfered on purpose. Inverting the order of transfer between incoming and outgoing so that reshare can be migrated when incoming shares are transfered. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
… but promoted Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
ab967de
to
e584e9b
Compare
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
I’m not sure if cypress failures can be related or not. Should be double check as sharing sidebar is on the failure screenshot. |
Never saw that failing but is is 99,99% unrelated because what is tested is purely frontend behavior and unrelated to your changes |
@come-nc I think need to create backport PRs for 28, 29, 30. |
/backport to stable30 |
/backport to stable29 |
/backport to stable28 |
Summary
Same as #43025 but without the new command.
Catch share exception in transfer ownership and delete invalid sharesChecklist