-
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
Display remote shares in "Shared with you" section #9098
Comments
Setting to OC 8. FYI @karlitschek @craigpg |
Yes, the external shares should appear in the »Shared with you« section to seamlessly integrate with your instance. |
@schiesbn the OCS share API should be modified to also return remote shares for this to work. |
@PVince81 @DeepDiver1975 @schiesbn I guess this won't make it into 8.0? Postpone to 8.1? |
Slightly related: adding a panel for pending/accepted shares #13495 |
Ok so there are a few issues here.
|
Consider the following situation: The OCS Share API endpoint For The default OCS Share Endpoint should just also include entries from
I think it is probably best to defer this to 9.0 so we can properly think about how to handle this. Else it will be a hacky solution that we have to support. CC: @cmonteroluque |
also @MTRichards probably a wanted feature ? |
@PVince81 I think that's not the same. Shares are in the "Pending shares" list as long as you didn't accept them or if you unshared it from yourself. On the other hand the "shared with you" section should contain all shares you already accepted. |
@PVince81 I think the idea of having rejected/pending shares makes a lot of sense (and is definitely 9.0 at the earliest at this point). @rullzer Your concerns are very valid, but what worries me is that this situation may be more common than just for this endpoint and we could find ourselves too scared to make appropriate changes. I would believe that accepted shares should be in the OCS Share Endpoint under any circumstance and if that breaks some other code one could argue that this is a bug (caused by our implementation so far, if you will). I'd be inclined to adding the entries, but I will yield if the expectation is that this is too dangerous a change this late. @DeepDiver1975 @karlitschek @MTRichards what do you guys think? |
@rullzer yes, at the moment the OCS accecpt/decline was designed to send accept/decline messages from the recipient to the sender. That's why the end point looks in the oc_share table and not in the shares_external table. But maybe that's not a problem. If we have a nice interface to accept/decline shares and the "pending shares" menu we might extend this concept to local shares as well. So the "internal" accept/decline api would be located in the sharing 2.0 OCS API while the accept/decline API to send it over to the other server would stay in the OCS federated sharing API as it is today. |
@schiesbn I'm not saying it is a problem. I just stated how things work currently. Which means we do not have a proper way to list incoming remote shares (once they are accepted). I agree that with sharing 2.0 we could introduce the possibility to accept local shares as well. That should be a lot easier then if we have proper interfaces. @cmonteroluque I fully agree that we need to make changes at some point. But I think in the current state the best we can go (to get this in) is a quick hack and then hope that nothing seriously breaks. With sharing 2.0 we need to break sharing partly anyway and then we can fix this in a proper way. |
having said that. The "cleanest" hack I see is to create yet another OCS endpoint that just returns all the accepted remote shares. This could then be an additional call that is made in the shared with you section. And we just merge the results there. Since it is a new and additional endpoint we don't have to fear for 3rdparty stuff breaking. How does that sound? |
It sounds right. Over complicates the API but you're absolutely right that it reduces risk. I am ok with that. Thank you! |
So after a night sleep I was thinking about the following modifications to the API. This so we don't have to break the OCS Share endpoints to much for version 2. Current
New
This would basically mean that we move the "current" The main advantage I see here is that for OCS Share v2 we could merge I'll try to come up with a quick PR for this this weekend. Should not be to big since most of the code is already available. |
@rullzer Thank you! I think the modifications are good. @karlitschek any objections? @carlaschroder fyi |
no objections :-) Makes total sense :-) 👍 |
Please note that if an endpoint is OCS and already public, you cannot change it directly in case there are already clients out there using it. |
@rullzer see https://css-tricks.com/multiple-simultaneous-ajax-requests-one-callback-jquery/, the part with |
@cmonteroluque @rullzer Is this a change that concerns developers or ownCloud admins? I read the whole discussion twice, and it seems to be for devs. Except, perhaps, a note somewhere that federated shares appearing in Shared With You is the correct behavior. |
I'd vote for moving this to 9.0, especially regarding API changes. |
@PVince81 the issue is that it's a clear bug and the changes proposed are small. I hate leaving this as it is and remote shares is an 8.2 interface anyway. What's the API change for existing implementations? Not having released 8.2 already means we have more flexibility than if we had already shipped. |
|
Ok, fine by me. |
Start of fix in #19514 |
Ok this is almost done. The following is now happening. #19386: So it is all back under Once #19386 is merged #19514 can be merged which is the frontend side of things to actually display the remote share. |
Steps to reproduce
Expected result
Share has an entry
Actual result
List is empty
I'm not sure whether we should add this to the "Shared with you" section or whether it should be yet another section. Or should it appear under "Shared with link" ?
Note that for any cases the API calls will need to be adapted to also return the remote shares as they are currently not returned at all.
Also note that the remote share mounts do not appear either under the "External storage" section, and I think it is correct.
@owncloud/designers @schiesbn @icewind1991
Setting as "Enhancement", might not have enough time for OC 7.
The text was updated successfully, but these errors were encountered: