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.
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.
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. |
lordelix
left a comment
There was a problem hiding this comment.
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: