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

Group shares with same source and target #474

Merged
merged 10 commits into from
Aug 3, 2016
Merged

Group shares with same source and target #474

merged 10 commits into from
Aug 3, 2016

Conversation

rullzer
Copy link
Member

@rullzer rullzer commented Jul 20, 2016

From owncloud/core#25534 (original owncloud/core#25113)

Please test carefully.
Including upgrading from 9.0

CC: @schiessle @nickvergessen @icewind1991 @LukasReschke @MorrisJobke

@rullzer rullzer added enhancement 3. to review Waiting for reviews labels Jul 20, 2016
@rullzer rullzer added this to the Nextcloud Next milestone Jul 20, 2016
@mention-bot
Copy link

@rullzer, thanks for your PR! By analyzing the annotation information on this pull request, we identified @PVince81, @SergioBertolinSG and @icewind1991 to be potential reviewers

@rullzer rullzer modified the milestones: Nextcloud Next, Nextcloud 10.0 Jul 21, 2016
@MorrisJobke MorrisJobke modified the milestones: Nextcloud Next, Nextcloud 10.0 Jul 21, 2016
@rullzer
Copy link
Member Author

rullzer commented Jul 22, 2016

Rebased.
Needs to get in after #500

@nickvergessen
Copy link
Member

#500 is merged

@rullzer
Copy link
Member Author

rullzer commented Jul 22, 2016

Also need owncloud/core#25567

@rullzer
Copy link
Member Author

rullzer commented Jul 22, 2016

Rebased and added owncloud/core#25567

Lets see what CI says

@schiessle
Copy link
Member

schiessle commented Jul 27, 2016

@rullzer
Copy link
Member Author

rullzer commented Jul 27, 2016

@schiessle already added here ;)

@rullzer
Copy link
Member Author

rullzer commented Jul 27, 2016

Aah failing intergration tests. I'll look at this later.

@schiessle
Copy link
Member

@rullzer perfect 😃

@nickvergessen nickvergessen added 1. to develop Accepted and waiting to be taken care of and removed 3. to review Waiting for reviews labels Jul 27, 2016
@rullzer rullzer added 3. to review Waiting for reviews and removed 1. to develop Accepted and waiting to be taken care of labels Aug 2, 2016
@rullzer
Copy link
Member Author

rullzer commented Aug 2, 2016

@schiessle
Copy link
Member

tested, works 👍

@MorrisJobke
Copy link
Member

Tested and works 👍

@rullzer But there is a merge conflict.

rullzer and others added 10 commits August 3, 2016 10:16
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 rullzer merged commit 223f3fa into master Aug 3, 2016
@rullzer rullzer deleted the group_shares branch August 3, 2016 09:41
@MorrisJobke
Copy link
Member

@rullzer Do we want this to be shipped with 10?

@rullzer
Copy link
Member Author

rullzer commented Aug 3, 2016

Yes I'll prepare a backport

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 enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants