-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add batch action to allow sharing with multiple users at once #40155
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
Conversation
|
💥 Acceptance tests pipeline webUISharingIntGroup2-chrome-mariadb10.2-php7.4 failed. The build has been cancelled. https://drone.owncloud.com/owncloud/core/36110/150 |
0a493cc to
bfff40c
Compare
|
Docs relevant if merged. Pls file a docs-server issue when ready. |
|
Users aaaa, bbbb and cccc exist
a) the "No users or groups found for" popup should go away when I start typing more stuff (when I start typing "cccc" e.g. |
phil-davis
left a comment
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.
If I paste in a string like "qwerty, bbbb, ccc" and only user "bbbb" exists, it still suggests to add all 3 "users". Then I get a message about not being able to add "qwerty" and "ccc".
Could it validate the list up-front? And let the user know that some of the users are not found?
I tried some combinations using the user's display name in the list. That works. You just have to be careful to provide the exact display name.
|
Note: this feature (currently) never shares with groups. I tried with users "bbbb" and "cccc", and groups "abc" and "cccc". When I try to share with "abc, cccc" it shares with user "cccc" and tells me "Could not be shared with the following users: abc" I guess that the feature is only for sharing with multiple users. It will be trickier to include groups that match, because there can be a user and group with the same name. So some system would have to be designed to help the user when such and ambiguity happened. |
Yes, that's a general problem of the input field. But I might as well tackle it with this PR 👍
Hmm I need to think about that one. Let's say you have a group called
Correct, the batch action only invites users. However, when having a group called
Good idea, I think that's relatively easy to implement as we already have the failed users. |
Co-authored-by: Phil Davis <[email protected]>
I hadn't thought about that. So, the code should always send off to see if there is a match for the full literal string entered - it might be a group. And if there are comma(s) in the string (with or without white-space around the comma(s)) then ignore the white-space and suggest adding multiple users. |
|
The user and group suggestions are both blue. Single user suggestions are green. Is that the way the colors are intended to be? I guess multiple users is a "group of users", so that's why it is blue? |
|
Kudos, SonarCloud Quality Gate passed! |
|
Looking good - I have tried various combinations of user and group names and having comma-separator with and without a space after the comma. Works. This situation is a bit odd:
A request to share with "unknown" should not be sent. The JS already knows that "unknown" has no match. |
|
There is an "i" information popup to the right of the share-with text box that has stuff about "Share with people on other ownClouds using the syntax..." Maybe some instructions could be added there about the syntax to use to share with multiple users? It would be good to have some clue given in the UI that this feature exists. |
|
Note: I added issue #40178 to add some webUI automated test coverage. There is no big rush for that, if it is ready before this PR is merged then we can add a commit here. If this PR is already merged, then we add the test coverage in a separate PR to master. |
|
Ping, CI is green, approvable? mergable? |
|
@JammingBen I made comment #40155 (comment) Are you progressing this? Maybe just sort out that little thing, and we can merge. |
I'm still on vacation until next Monday, I can work that stuff out then. Although I'm not sure about the expected behavior, IMO it's fine to display that the resource could not be shared with |
|
I added @jvillafanez and @janackermann as reviewers. |
|
While unlikely, it might be possible that a group contain the separator, for example a group |
See #40155 (comment) If a group matches the comma-separated string then it is shown in the drop-down list as a possible thing to share with. |











Description
This feature allows sharing resources with multiple users at once via the following format: user1, user2, user3
If you have the
guestapp installed and active, owncloud/guests#506 is required to properly use this feature. Unfortunately, there is no way to overcome this as theguestapp extends the sharing functionality in a very bad way by re-implementing it.Related Issue
Screenshot
Types of changes
Checklist: