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

fix(ShareAPI): Send mails for mail shares by default #48381

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

Conversation

Fenn-CS
Copy link
Contributor

@Fenn-CS Fenn-CS commented Sep 26, 2024

Summary

It looks like, the frontend it needs to provide the sendMail param for the backend to decide whether mails would be sent.

Our UI does not have that at the moment so it should default to sending emails always for mail shares.

Not exactly sure how this was handled earlier but this is a good starting point.

Resolves : #48012

Checklist

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.

Fix makes sense, curious how it broke though.

apps/files_sharing/lib/Controller/ShareAPIController.php Outdated Show resolved Hide resolved
@Fenn-CS Fenn-CS force-pushed the fix/48012/fix-share-email-send-mail-share branch from 6553268 to 8103393 Compare September 26, 2024 12:31
@Fenn-CS
Copy link
Contributor Author

Fenn-CS commented Sep 26, 2024

/backport to stable30

@Fenn-CS Fenn-CS force-pushed the fix/48012/fix-share-email-send-mail-share branch from 8103393 to 410854f Compare September 26, 2024 13:08
@Fenn-CS Fenn-CS force-pushed the fix/48012/fix-share-email-send-mail-share branch from 410854f to 3f7528b Compare September 26, 2024 13:52
@Fenn-CS Fenn-CS force-pushed the fix/48012/fix-share-email-send-mail-share branch 2 times, most recently from da2d0c3 to e2fa7e1 Compare September 30, 2024 08:07
It looks like, the frontend it needs to provide the `sendMail` param
for the backend to decide wether mails would be sent.

Our UI does not have that at the moment so it should default to sending
emails always for mail shares.

Not exactly sure how this was handled earlier but this is a good starting point.

Resolves : #48012

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
@Fenn-CS Fenn-CS force-pushed the fix/48012/fix-share-email-send-mail-share branch from e2fa7e1 to 9f0eda3 Compare September 30, 2024 11:01
@provokateurin
Copy link
Member

Why rebase it so often?

@Fenn-CS
Copy link
Contributor Author

Fenn-CS commented Sep 30, 2024

Why rebase it so often?

Some tests that seem unrelated (cypress especially are failing consistently)...

Re-basing triggers a rerun, but also adds the latest updates on master in case something that broke the tests has been resolved. (Because a bunch of other PRs are failing tests too)...

Now taking a closer to see if something is indeed broken.

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]: 30.0.0 share by email - no email is sent
3 participants