-
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
Replace notify user for local shares with button #29366
Conversation
6957f2d
to
52cbc09
Compare
Codecov Report
@@ Coverage Diff @@
## master #29366 +/- ##
============================================
- Coverage 60.23% 60.23% -0.01%
- Complexity 17186 17187 +1
============================================
Files 1030 1030
Lines 57273 57274 +1
============================================
Hits 34500 34500
- Misses 22773 22774 +1
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #29366 +/- ##
============================================
+ Coverage 60.45% 60.45% +<.01%
- Complexity 17222 17223 +1
============================================
Files 1032 1032
Lines 57360 57361 +1
============================================
+ Hits 34677 34679 +2
+ Misses 22683 22682 -1
Continue to review full report at Codecov.
|
d048355
to
6347871
Compare
note: cannot increase code coverage for ajax/share.php... we need to refactor that to app framework eventually if we don't manage to kill this checkbox eventually... |
\OCP\Share::setSendMailStatus($itemType, $itemSource, $shareType, $recipient, true); | ||
// if we were able to send to at least one recipient, mark as sent | ||
// allowing the user to resend would spam users who already got a notification | ||
if (count($result) < count($recipientList)) { |
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.
count($result)
could be 0. Do we still want to set the status as sent in this scenario?
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.
Yes, because 0 means no errors. The array $result
only contains a list of email addresses for which an email could not be sent.
Well … this is still ugly a. f. but simply repositioning the button won't help. |
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.
It's on the brink of not being okay from a UI perspective. Will be addressed in a different issue.
6347871
to
094bc76
Compare
increase coverage a tiny bit more. will not bother about the ajax/* case |
@jvillafanez your seal of approval for the PHP code ? |
ignoring missing coverage for ajax/* file |
stable10: #29463 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
Replace the checkbox with a button.
Changed logic to only send the mail_send flag if email could be sent to at least one recipient.
Related Issue
Fixes #29318
Motivation and Context
See ticket
How Has This Been Tested?
Manual testing so far
Screenshots (if appropriate):
Types of changes
Checklist:
TODOs: