-
Notifications
You must be signed in to change notification settings - Fork 669
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
[Overlay] Update overlay icon in case of files/folders you are sharing #4788
Comments
@mcastroSG See this bugreport #3043 |
As I understand it, the symantecs of the share icon are to be those items that are shared WITH you, not those that are shared by you. This becomes a question of design, really, and there isn't enough real estate on the desktop icons to convey more information. The question then becomes, what is the desired behavior on all platforms... @jancborchardt since I know we spent a lot of time writing this up, and I think it was implemented as designed - just confirming. |
The share icon should show up for any shared file, no matter if it's shared with or by you. The point of the indicator is to state that others have access or can modify. |
(Pretty sure we specced it this way since that's also exactly how it works in the web interface and mobile apps.) |
Ok. Then we have an update we need to make - either in the API or in the client to get that information. Leaving this here for tracking, and assigning bug status. |
Summarizing discussion from #3043 and my current understanding of this issue: The client currently only looks at the "S" permission: "is this shared with you?". A new webdav property "share-types" was added (servers >= 9.0.1) that allows the client to easily tell whether something "is shared by you". If we want to show the icon when something is shared, regardless of whether it's with the user or by the user, we need to query the state of the property from the server, store it in the database and adjust the socket api logic to use that flag. |
@ckamm just for clarification on the intended design: Yes, we want to show the icon when something is shared, regardless of whether it's with the user or by the user. :) |
The "S" in the permission is only for the "Shared with me" files. It is only used to show the shared status in the overlay icons. But we also wish to show the shared status for files that are shared "by" the users. We can find that out using the 'share-types' webdav property. If set, then we are sharing the object. We fake a 'S' in the permission as for our purpose, they mean the same. Issue #4788
Last commit for issue #4788 made the meaning to be simply shared (with the user or from the user)
The "S" in the permission is only for the "Shared with me" files. It is only used to show the shared status in the overlay icons. But we also wish to show the shared status for files that are shared "by" the users. We can find that out using the 'share-types' webdav property. If set, then we are sharing the object. We fake a 'S' in the permission as for our purpose, they mean the same. Issue #4788
Last commit for issue #4788 made the meaning to be simply shared (with the user or from the user)
Was reverted in commit efa7821 because this would overload the server to query the shared state. However maybe this could be un-reverted because of owncloud/core#27284 @PVince81 ? Would we need a version check? |
version check yes, 10.0 |
@ogoffart see comments in #6098 (comment) - It still takes a client restart to get the right overlay after you share a file (+ we need to consider triggering discovery on that file after actions were performed in it locally - i.e. create a share) |
Tested #6098 and works. |
Expected behaviour
Once a file or folder is shared overlay icon should be updated to a "green shared" icon
Actual behaviour
Once a file or folder is shared the same "green check" icon remains
Steps to reproduce
The text was updated successfully, but these errors were encountered: