-
Notifications
You must be signed in to change notification settings - Fork 159
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
refactor: use sharing NG for share listings #10392
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
6962f2f
to
65ce1b0
Compare
916477f
to
9a3ca73
Compare
db5e4a3
to
3920f86
Compare
a7dbb6a
to
84436e1
Compare
9cb53b2
to
acc960e
Compare
acc960e
to
d65c03b
Compare
@@ -11,21 +11,6 @@ Feature: accept/decline shares coming from internal users | |||
| Brian | | |||
And user "Brian" has logged in using the webUI | |||
|
|||
@issue-ocis-1950 | |||
Scenario: reject a share that you received as user and as group member |
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.
This test doesn't work in that form anymore because oCIS now sends 2 shares when one resource is being shared with a user directly as well as via group.
Could be refactored, but since it's an acceptance test and we won't have the concept of "declining" shares in the future I guess we can just let the test die.
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.
Yep that was due to some of the server changes (owncloud/ocis#8307) I was mentioning earlier 😄 The server now correctly sends the parent path without the resource name, hence we need to join both on our own. |
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 26 New issues |
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 know if that's an issue of this PR, but whenever I use row actions like hide/unhide/sync/unsync in the shared with me list, the avatar in the shared with
column disappears. Everything else seems to work fine 💪 😍
That's because changing the status/hidden state re-fetches the resource from the old ocs api, resulting in slightly different data. This is not really needed though and will be fixed via the follow-up #10421 👍 |
Co-authored-by: Saw-jan <[email protected]>
Description
Use the new sharing NG API for the share listings (Shared with/by me, Shared via link).
I also removed the
shareType
property on theShareResource
because it can have multiple different share types (e.g. when it's shared with another user as well as via link). The already existingshareTypes
property now holds all the types. In addition to that, each item in thesharedWith
array now holds information about the share type.Related Issue
Types of changes