Skip to content

feature: send email to internal users of circles when shared with circle - #2050

Merged
yemkareems merged 17 commits into
masterfrom
feature/notify-internal-users-on-circle-share
Aug 12, 2025
Merged

feature: send email to internal users of circles when shared with circle#2050
yemkareems merged 17 commits into
masterfrom
feature/notify-internal-users-on-circle-share

Conversation

@yemkareems

Copy link
Copy Markdown
Contributor

feature: send email to internal users of circles when shared with circle

Signed-off-by: yemkareems <yemkareems@gmail.com>
@yemkareems yemkareems added this to the Nextcloud 32 milestone Jun 30, 2025
@yemkareems yemkareems self-assigned this Jun 30, 2025
Signed-off-by: yemkareems <yemkareems@gmail.com>

@provokateurin provokateurin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Isn't this kind of logic supposed to be implemented through IShareProviderWithNotification?

Comment thread lib/Service/CircleShareMailerService.php Outdated
Comment thread lib/Service/CircleShareMailerService.php Outdated
Signed-off-by: yemkareems <yemkareems@gmail.com>
@yemkareems

Copy link
Copy Markdown
Contributor Author

Isn't this kind of logic supposed to be implemented through IShareProviderWithNotification?

Refactored service to provider

Comment thread lib/ShareByCircleProvider.php Outdated
Comment thread lib/Provider/CircleShareMailProvider.php Outdated
…WithNotification and set share sendmail to true for circle share in both share and wrapper objects. Send public share link in email. Rename provider to helper

Signed-off-by: yemkareems <yemkareems@gmail.com>
Comment thread lib/Helpers/CircleShareMailHelper.php Outdated
…efactor tests

Signed-off-by: yemkareems <yemkareems@gmail.com>
Signed-off-by: yemkareems <yemkareems@gmail.com>
@yemkareems
yemkareems requested a review from provokateurin July 8, 2025 07:03

@provokateurin provokateurin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Woops I forgot to submit my review

Comment thread lib/ShareByCircleProvider.php Outdated
Signed-off-by: yemkareems <yemkareems@gmail.com>
@yemkareems
yemkareems requested a review from provokateurin July 8, 2025 07:25
Comment thread lib/ShareByCircleProvider.php Outdated
Comment thread lib/ShareByCircleProvider.php Outdated
Comment thread lib/ShareByCircleProvider.php Outdated
Comment thread lib/ShareByCircleProvider.php Outdated
Comment thread lib/ShareByCircleProvider.php Outdated
Comment thread lib/ShareByCircleProvider.php Outdated
Comment thread lib/ShareByCircleProvider.php Outdated
Comment thread lib/ShareByCircleProvider.php Outdated
Comment thread lib/ShareByCircleProvider.php Outdated
Comment thread lib/ShareByCircleProvider.php Outdated
…dition checked once, sendShareNotification type hinting done, sendUserShareMail passing only the share and arguments type hinted, tests refactored

Signed-off-by: yemkareems <yemkareems@gmail.com>
…b.com:nextcloud/circles into feature/notify-internal-users-on-circle-share
Signed-off-by: yemkareems <yemkareems@gmail.com>
@yemkareems
yemkareems requested a review from provokateurin July 23, 2025 06:11
Comment thread lib/ShareByCircleProvider.php Outdated
Comment thread lib/ShareByCircleProvider.php Outdated
Comment thread lib/ShareByCircleProvider.php Outdated
Comment thread lib/ShareByCircleProvider.php Outdated
Comment thread lib/ShareByCircleProvider.php Outdated
Comment thread lib/Db/ShareWrapperRequest.php
@yemkareems
yemkareems requested a review from provokateurin July 30, 2025 08:52
… query user if not required, sendUserShareMail adjusted, dont send email to initiator email condition added and test refactored accordingly

Signed-off-by: yemkareems <yemkareems@gmail.com>
…ding methods to send mail service

Signed-off-by: yemkareems <yemkareems@gmail.com>
Signed-off-by: yemkareems <yemkareems@gmail.com>
Comment thread lib/Listeners/Files/ShareCreatedSendMail.php Outdated
Comment thread lib/Listeners/Files/ShareCreatedSendMail.php Outdated
Comment thread lib/Listeners/Files/ShareCreatedSendMail.php Outdated
…ed, iShare got from wrappedShare object for sendUserShareMail

Signed-off-by: yemkareems <yemkareems@gmail.com>
@ArtificialOwl

Copy link
Copy Markdown
Member

better approach, thanks for the changes

@yemkareems
yemkareems removed the request for review from provokateurin August 12, 2025 15:26
@yemkareems
yemkareems dismissed provokateurin’s stale review August 12, 2025 15:32

Changes are addressed

@yemkareems
yemkareems merged commit 0ce3818 into master Aug 12, 2025
31 checks passed
@yemkareems
yemkareems deleted the feature/notify-internal-users-on-circle-share branch August 12, 2025 15:33
@skjnldsv skjnldsv modified the milestones: Nextcloud 32, Nextcloud 33 Sep 28, 2025
@github-actions

Copy link
Copy Markdown
Contributor

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants