Skip to content
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

feat(files_sharing): add send mail toggle #50064

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nfebe
Copy link
Contributor

@nfebe nfebe commented Jan 7, 2025

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

Inactive Active
inactive-sendmail active-sendmail

TODO

  • Ensure no failure if activating toggle does not lead to errors for users without configured emails

@nfebe nfebe force-pushed the fix/49954/add-send-mail-toggle branch from f178f55 to 4372d7a Compare January 7, 2025 11:02
@nfebe nfebe marked this pull request as ready for review January 7, 2025 11:02
@skjnldsv
Copy link
Member

skjnldsv commented Jan 7, 2025

Why not put it to true straight away?

@nfebe
Copy link
Contributor Author

nfebe commented Jan 7, 2025

Why not put it to true straight away?

This sounds okay, but should not require another review cycle?

cc: @skjnldsv

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 wether the configured user has an email send up

Signed-off-by: nfebe <[email protected]>
@nfebe nfebe force-pushed the fix/49954/add-send-mail-toggle branch from 4372d7a to c43bbd2 Compare January 7, 2025 16:08
Copy link
Contributor Author

@nfebe nfebe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed.

@@ -329,8 +335,8 @@ export default {
data() {
return {
writeNoteToRecipientIsChecked: false,
sendNotificationMailOnCreation: true,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
sendNotificationMailOnCreation: true,
sendNotificationMailOnCreation: true,

@sushifrick
Copy link

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.

Accept shares by mail

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
Sascha

@nfebe
Copy link
Contributor Author

nfebe commented Jan 13, 2025

Our users have to accept shares, and are used to accept the shares by the link in the mail.

Hello @sushifrick thanks for you comment, I am afraid the issue you described is completely different from the one the linked ticket is resolving.

  • The ticket links describes a situation where shares do not trigger emails
  • The situation you described (based on the quoted statement) indicates that share links cannot be used to accept shares anymore, not the same thing.

It would be nice to check back on your ticket to make sure the right thing is being addressed.

Copy link
Member

@provokateurin provokateurin left a 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.

@sushifrick
Copy link

Dear @nfebe,

Hello @sushifrick thanks for you comment, I am afraid the issue you described is completely different from the one the linked ticket is resolving.

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.

@nfebe
Copy link
Contributor Author

nfebe commented Jan 13, 2025

Hello @sushifrick in that case #49898 solves your problem and then this PR gives the user control over the behavior in the UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🏗️ In progress
Development

Successfully merging this pull request may close these issues.

[Bug]: New Share to Local User Does Not Trigger Email Notification (sharebyemail)
5 participants