-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Group shares with same source and target #474
Conversation
@rullzer, thanks for your PR! By analyzing the annotation information on this pull request, we identified @PVince81, @SergioBertolinSG and @icewind1991 to be potential reviewers |
Rebased. |
#500 is merged |
Also need owncloud/core#25567 |
Rebased and added owncloud/core#25567 Lets see what CI says |
|
@schiessle already added here ;) |
Aah failing intergration tests. I'll look at this later. |
@rullzer perfect 😃 |
@schiessle @LukasReschke @icewind1991 @MorrisJobke @nickvergessen please review |
tested, works 👍 |
Tested and works 👍 @rullzer But there is a merge conflict. |
Fixes #24575 Note that this is a very limited solution and eventually we want smarter merging!
The repair step was a bit overeager to skip repairing so it missed the case where a group share exists without subshares but with an additional direct user share.
In some situations, a group share is created before a user share, and the recipient renamed the received share before the latter is created. In this situation, the "file_target" was already modified and the second created share must align to the already renamed share. To achieve this, the MountProvider now groups only by "item_source" value and sorts by share time. This makes it so that the least recent share is selected as super-share and its "file_target" value is then adjusted in all grouped shares. This fixes the issue where this situation would have different "file_target" values resulting in two shared folders appearing instead of one.
@rullzer Do we want this to be shipped with 10? |
Yes I'll prepare a backport |
Group shares with same source and target
From owncloud/core#25534 (original owncloud/core#25113)
Please test carefully.
Including upgrading from 9.0
CC: @schiessle @nickvergessen @icewind1991 @LukasReschke @MorrisJobke