-
Notifications
You must be signed in to change notification settings - Fork 157
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
Share indicator for direct and indirect shares in file list #2877
Conversation
b228300
to
29ea49e
Compare
|
I'd like to reuse this PR and fill it with actual data once available. |
Added share indicators for indirect outgoing shares. TODOs:
|
In OC 10 we don't load incoming shares for all parents, but only the Webdav share-types. While this might be enough to display indicators, it won't be enough for showing the inherited resource/share owners. So here in Phoenix let's go with an OCS call for incoming shares right away. |
6f1032f
to
015930c
Compare
Added requests for incoming shares and now the indirect indicators work for both inheritance scenarios. Next up is to clean up stuff unrelated to share indicators to bring this into mergable state. |
015930c
to
4ca71f2
Compare
Squashed into a single commit. The "dummy" parts for later tasks were moved to the branch "share-indirect-info" for continuing later. |
|
|
|
c8664f4
to
b0f16c5
Compare
Adjusted all tests, I expect all to pass except maybe the federation ones which I couldn't run locally. |
b0f16c5
to
38ca68f
Compare
added a few more fixes for federated tests (squashed) |
38ca68f
to
25560d8
Compare
Fixed federation tests where a copy-paste issue made it create the share recipient users on the wrong instance. |
This doesn't make sense... two failures with login in https://drone.owncloud.com/owncloud/phoenix/7770/28/20 :
one thing I observed earlier is that if you attempt to log in as an already logged in user, the same error happens. However, in this one case the currently logged in user should be "user1". |
weird, I looked at VNC and see that it's stuck on the authorize page showing "User One" while trying to login as user2. I thought we had logic in place to automatically switch the user there ? |
25560d8
to
d648e52
Compare
I managed to fix the tests by using the "relogin" step to force clearing the session. I'm expecting everything to pass now. |
All passed, @kulmann please review |
For direct shares: - Use the "oc:share-types" Webdav property to find out about direct shares in the file list, and display the matching icons. - Display an active (blue) share indicator whenever there is at least one share of the given type. For indirect shares: - Define a new state attribute "sharesTree" to contain the list of shares for specific directories. - After loading the current folder data, also populate "sharesTree" with the incoming and outgoing share lists from the parent folders. - Use "sharesTree" like a cache and only keep share entries relevant to the current path and its parents. This prevents having to reload both incoming and outgoing shares for parent entries where we already have them available. - Aggregate the share types from the data retrieved for parent folders to decide which "passive" (grey) share indicator to display for indirect outgoing shares. Other: - Keep the progress bar of the file list while loading. - Clicking a share indicator opens the matching sidebar panel, Collaborators or Links. Tests: - Imported, adjusted and extended acceptance tests for share indicators from OC 10.4 - Kept the share details tests in skipped mode for later
Added 1s delay to to the share autocomplete dropdown. This increases the speed of tests as tests are simulating typing each letter. This also fixes random failures in the federation tests as sometimes the dropdown would miss the last typed letter.
d648e52
to
71ee5d2
Compare
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.
🚀
Steps to view:
Ref: owncloud/owncloud-design-system#607
For story: https://github.com/owncloud/enterprise/issues/3701
Fixes #2060
Fixes #2894
@pmaier1 FYI