-
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
[For 10.4] Include expiration option for user and group shares #36531
Conversation
Codecov Report
@@ Coverage Diff @@
## master #36531 +/- ##
============================================
- Coverage 64.66% 64.64% -0.02%
- Complexity 19049 19078 +29
============================================
Files 1269 1269
Lines 74497 74668 +171
Branches 1311 1322 +11
============================================
+ Hits 48170 48269 +99
- Misses 25941 26007 +66
- Partials 386 392 +6
Continue to review full report at Codecov.
|
…ration_fix-groups Fix group expiration
Fix for the "group expiration only" problem have been merged from PR #36535 |
Without the administrator setting a "default" expiration date, the user cannot set any expiration date at all. This is different to public link shares, where the user can always set an expiration date, whether a default is set of not.
currently 1&2 are combined maybe a renaming of the option would also do |
…e_expiration webUI tests for user-group share expiration
Add api test for setting expiration date for resharing to user and groups
Backend behaviour should be the same for link, user and group shares. It seems a frontend problem to me. What I understand is:
There is a corner case: no default expiration set, but enforced. As far as I know, this shouldn't happen. Worst case should be to enter either "0" days or "-1" days, but other than immediate expiration, it shouldn't be a problem (we might need to double-check this) |
Add api tests for sharing with expiration date
Add more tests for checking expiry date enforcement while resharing
I have squashed and rebased this code in PR #36573 (I did not want to lose anything here) We can do final reviews and discussion of outstanding issues there. |
Description
This is a re-submit of PR #36324 with the commits squashed and rebased to the current master (that has "drop PHP 7.0" and phpunit7).
Please work on top of this in a separate branch for making acceptance tests or fixing bugs. Then we need to cherry-pick tests and bugs fixes into here in a controlled manner so that we do not write over each other's work.
Excerpt from the feature file:
Related Issue
How Has This Been Tested?
CI acceptance tests added for:
Screenshots:
Types of changes
Checklist: