-
-
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
9968018
to
8aeedbc
Compare
8aeedbc
to
8974542
Compare
Rebased and fixed code style. |
Note: Removed part about fix command from original PR Signed-off-by: Luka Trovic <[email protected]> Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
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 <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
Co-authored-by: Ferdinand Thiessen <[email protected]> Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
… but promoted Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
ab967de
to
e584e9b
Compare
Signed-off-by: Côme Chilliet <[email protected]>
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 |
Summary
Same as #43025 but without the new command.
Catch share exception in transfer ownership and delete invalid sharesChecklist