-
Notifications
You must be signed in to change notification settings - Fork 2.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
Group shares with same source and target #25113
Conversation
By analyzing the blame information on this pull request, we identified @icewind1991, @schiessle and @bartv2 to be potential reviewers |
Mmmm seems the js side needs more fixing... |
Wasn't there such logic already in the past ? Or did it get discarded through refactorings ? |
@icewind1991 do you remember anything ? |
Yes there was such logic. But it had to be discarded for various reasons.
At the same time I think this logic is now in the place where it should be. In the sharedMount/sharedStorage. Since that is the actual place where we group stuff. |
Doesn't help with #25186 which will need a different fix. |
I don't know what to do with this. It feels a bit dangerous to merge that late. |
} | ||
|
||
model.set(model.parse({ | ||
shares: sharesMap, | ||
reshare: reshare | ||
reshare: reshare, | ||
reshares: reshares, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't add extra commas in JS, this used to break in IE
Rebased |
Ouch, this breaks sharing: when opening the share panel it always says "Resharing not allowed" even for non-shared folders where I'm the owner. |
Some test cases for later, where "user1" is in "group1" and "group2"
Most of these gave me two folders on v9.0.3 so let's hope this PR covers them all 😄 |
After reverting the JS commit locally I'm able to share again, so something to look into. I did a quick test with the different grouping cases and it seems to work nicely ! Great job ! The hardest part: write integration tests for them. |
@rullzer any reason for the JS fix ? Without the JS there is no duplication in the "Shared with others" and "Shared with you" entries. Unless I missed a case ? |
ah, reshares.. forgot those 😦 |
Sounds like fun. |
|
Rebased for CI |
Rebased and adjusted version for 9.2 |
how many timeswill I need to rebase this ? |
Fixes #24575 Note that this is a very limited solution and eventually we want smarter merging!
Close enough for CI => merge |
Looks like stable9 backport will be tricky, the old code is using old APIs and an old way. Or might require backporting more stuff. |
From what I see a lot of the code would require this commit 6123bad from #23919. Because on stable9 the MountProvider and SharedStorage still use the old array-style shares instead of the ShareManager style. I'm not sure I want to risk backporting this, so will see if there is a way to make it work with the old code. |
stable9 PR #25543 |
Looks like this fix is not enough, there's another scenario that is not covered: #25564 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Fixes #24575
Note that this is a very limited solution and eventually we want smarter
merging!
TODO:
CC: @PVince81 @jonasheinisch