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
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