-
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
Shared File Notifications #4499
Comments
I'm started to work on it. The only problem I see at the moment: We don't know when the user checks the "notify user by email" checkbox. We can't decide if we already have the final CRUDS and expiration date, so it is not really possible to include that information in a meaningful way. Therefore I would suggest to keep this information out for now. |
Why are you working on this? The UI is being scrapped, please wait until I'm done. |
This is one of the new features that we need for ownCloud 6. It is really important that we get the sharing refactoring done very very soon so that we can iterate on new features. |
As said by Frank, this is a new feature we need for ownCloud6. We will not get it done if we don't work in parallel. I based my work on your branch so I hope I can stay in sync as good as possible. UI changes shouldn't be a big problem if all the back-end code is in place. To make sure that we don't diverge we could also work in the same branch if you prefer it. |
Where is your branch for me to see? |
I just uploaded the branch https://github.com/owncloud/core/tree/sharing_mail_notification it is based on the "files_sharing-ported" branch. Sending out mails works just fine. I just need to store the status of the "inform users by mail" checkbox in the database. @MTRichards , this is the text I send to the user at the moment. Is this OK for you: @MTGap For every user I need the individual file/folder name for the email, what's the best way to retrieve it? Does any method already exists for it, or should I just create my own db query? Thanks! |
There shouldn't be a checkbox for sending a notification email. It doesn't affect the owner of the file so there should be no need to make that decision. That said, it should be the user receiving the notifications that should be able to configure if they receive notifications or not. And I don't understand why you separated it from the actual sharing action. You should be passing around the Share object to the defaults class rather than individual parameters. |
Because the requirement says: "In the share dialog, have a checkbox that says “notify user by email” on a per user/group (line in the share dialog) and an email is sent to the user or group that the file or folder has been shared with them." So it is a separate ajax call independent from the actual share action and it is the user who shares something who decides on a per share basis who should be notified. @MTGap Would be great if you could answer my question so that I can implement it the "right way". I know the item which was shared and to whom it was shared. Does the API provides a call go get the actual file name for the given user or do I need to query the database independent from the API? |
And I'm saying that I don't like this requirement, it's a sloppy UX. |
$shareManager->getShares($itemType, array('shareWith' => $user, 'isShareWithUser' => true, 'itemSource' => $itemSource) |
@MTGap Thanks for providing me this information. I just updated the sharing_mail_notification branch. Everything seems to work as expected. Would be great if you could have a look, especially at the last commit (24b387b) where I read/write the information to the database. Hope I did everything the right way... |
I am still strongly against this... and will not accept these changes because of the UX. For the sake of learning:
The last bullet is simplified greatly with the proper controller that I have for the new UI. |
If someone wants to have a look at the current implementation and maybe want to try it out: This is the up-to-date branch where we develop this feature https://github.com/owncloud/core/tree/sharing_mail_notification_master Basically everything works and is implemented. I will issue a pull request soon. |
There are two levels of notification that are needed. One is the user activity stream, which is a separate topic - where all of this will also be added and eventually available on all devices for the user to flip through. However, for some users this is not enough of a notification, we get to requirement two. Two is this, a specific request to send an email to a user/group when a file or folder is shared. We can't make this a default behavior, because that is super irritating for a user to get a million emails, and there are cases where the user MUST get an email for retention reasons, so we can't make it something the user can set in personal and then not get an email. So for this use case, it leaves one option - make it a file owner selectable option when shared. The option can be turned on or off by the admin for the entire system, and if turned on the checkbox appears when a file or folder is shared. Does this make sense now? |
Just for the record, it makes sense to me and this is exactly the way I implemented it. I will soon open a pull request for it. Currently the mail contains:
What it doesn't contain:
@MTRichards Are you agree with this decision? |
Yes, I concur that CRUDS is a bit challenging since they can be changed at any time, so it is OK to not have those in there. |
On the text:
Looks good! |
merged in master(OC6) |
don't know if this is the correct place for it: the link in the activities page is missing the path:
i do get "Notes/test.txt changed" in the activities correct |
As a user, I want the option to send an email when I share a folder or file with another user of ownCloud
In the share dialog, have a checkbox that says “notify user by email” on a per user/group (line in the share dialog) and an email is sent to the user or group that the file or folder has been shared with them.
(This shared notification will also be entered in the activity feed)
User receives an email, which includes:
Shared file notification emails are enabled via a setting in the admin panel, “enable email notifications”
The notification requires email to be set up to send from ownCloud
When a group is selected, all members receive an email if the “send email notification” box is checked
If some of the members of the group do not have an email configured, an error is shown after the share email is sent “some groups members have no email and will not receive notification”
Email text has to be editable, stored with other email footers in lib/defaults.php
#3791 For more on themable strings
The text was updated successfully, but these errors were encountered: