-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
feat(files_sharing): add send mail toggle #50064
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
f178f55
to
4372d7a
Compare
Why not put it to true straight away? |
This sounds okay, but should not require another review cycle? cc: @skjnldsv |
4372d7a
to
c43bbd2
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.
Addressed.
Being the customer who opened the ticket that lead to the issue #49954, this would not fix our initial problem. Our users have to accept shares, and are used to accept the shares by the link in the mail. Like hier in a gif from our user documentation. The link in the mail directly accepts the share. Now the shares are listed as pending, but users do not find those. They get notifications about changes on shared folders and if they open the internal links from the notfications, they get a file not found error. No mention of the pending shares. Then they contact the support. So i am not against the optional mails presented here in general, but would love an admin option to overrule it and enforce the mails. Kind regards |
Hello @sushifrick thanks for you comment, I am afraid the issue you described is completely different from the one the linked ticket is resolving.
It would be nice to check back on your ticket to make sure the right thing is being addressed. |
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.
Didn't test, but looks good.
I think for such a critical thing you should add a test that ensures the mail is sent/not sent based on the toggle input.
Dear @nfebe,
I do not think so. The problem is not that link in the mails do not accept the share. The problem is that the mails simply do not exist anymore right now. I have no idea, what links are in the mail and weather those links might or might not accept the share. I would hope so, as this was the state before. I am not even sure when the mails went missing, but each internal share did notify the receivers via mail before. Might be a couple of versions back, when it went missing, though. But I want to emphasize, that this new optional email notifications are different from how it was before. Each new share triggered a (non optional) mail, even independent on the users notification settings. And that was a good thing. Users need to know about new shares. And as the admin I would like to force those mails again, or at least be able set the default to true. This is missing here. |
Hello @sushifrick in that case #49898 solves your problem and then this PR gives the user control over the behavior in the UI. |
c43bbd2
to
28f62ba
Compare
❌ We are unable to process any of the uploaded JUnit XML files. Please ensure your files are in the right format. |
28f62ba
to
4a4cb19
Compare
e7ca64a
to
93c22fa
Compare
For new internal shares, show the user a toggle for them configure if they want to send the share receiver a notification mail. This is subject to whether the share receiver has an email attached to their account. Signed-off-by: nfebe <[email protected]>
…ingly Signed-off-by: nfebe <[email protected]>
93c22fa
to
67c1683
Compare
/compile |
Signed-off-by: nextcloud-command <[email protected]>
@nfebe on second thought, and since this is not in yet: I think it would be better if this was moved to the advanced settings. |
Hi @marcoambrosini thanks for the further feedback, I think it makes more sense outside.
So technically that is not "advanced"? What do you say? |
@nfebe, can't we just remove this toggle altogether and always send the email by default? I think we can do so given that all internal users can decide which type of notifications they want to receive and disable email notifications altogether |
For the record, we discussed with @nfebe that this feature might still be valuable if the sharer could mute all notifications for the sharee. Much like what we do with talk "silent" messages and calls. But allowing control only on email notifications would be an incomplete feature. |
As part of that discussion, I pointed out that I do not agree with this view especially from an API standpoint. The interface of the API does allow this option. This feature was never implemented in this PR which only provides the user control over this existing option. See :
This PR is a follow up from a couple of issues including a support ticket where a customer complained about "configurations that cannot be configured." In summary, at the moment, the share API does not have an option to suppress all notifications but does have one to suppress email. That said, implementing "suppress all notifications" is a related but different configuration/feature from this and is not possible from the share creation interface at the moment. I closed this PR for the sudden lack of consensus. |
Summary
For new internal shares, show the user a toggle for them configure if they want to send the share receiver a notification mail.
This is subject to whether the configured user has an email send up
Screenshots
TODO