Repository navigation
Set expiration date by default when adding additional shares - #7286
Conversation
|
@schiesbn |
|
@nickvergessen this doesn’t change anything in the interface, does it? Because expiration date should not be checked by default. Just checking. :) |
|
@jancborchardt no it doesn't. Maybe the title is a bit misleading. It only creates the exp date when creating a second/third/etc. sharing for the same file and a exp date was set earlier. |
|
@PVince81 @schiesbn any news? |
|
Instead of setting the expire date from outside with a parameter, wouldn't it make sense to check for already existing shares in shareItem() and reuse the expire date if shares with a expire date already exists? This way we would avoid that the interfaces (web, ocs api) need to take care of it. |
|
@schiesbn then #4734 would still occure ;) |
There was a problem hiding this comment.
Do we want to start using bindValue ? We never used it before (CC @bantu)
Might be better to stick with the array approach, you can reformat it onto multiple lines if it's too long.
There was a problem hiding this comment.
@PVince81 the problem is, that the array approach does not allow inserting a datetime object which is required here. Note also that we already do use it in setExpirationDate()
https://github.com/owncloud/core/blob/issue/4823/lib/public/share.php#L842
|
I was confused by the title of this PR and thought this would be about prepopulating the "expiration date field" as soon as the user clicks on the checkbox, prepopulating with the date of today. Can you explain what this fixes and how to test this ? The linked ticket isn't very clear about this (different things are discussed there) |
|
@PVince81 #4823 (comment) has a Step-by-Step for reproducing |
|
@nickvergessen can I ask you to check out (and if possible, fix) the Scrutinizer issues related to this pull request? |
|
@jancborchardt fixed the js linelength, but im not sure about the others |
|
@nickvergessen rebase please |
|
@DeepDiver1975 rebased, but didn't test it yet after rebasing, will do that after lunch |
|
Tested after the rebase, still works |
|
@bantu please review this as you filed the original issue. |
|
Code looks good. |
|
bump @bantu @schiesbn can we get a second +1 ? |
|
@nickvergessen A rebase is needed. |
|
@MorrisJobke updated |
|
🚀 Test Passed. 🚀 |
|
Please rebase. |
|
I'm not going to rebase this every week. Just say when you want it to be rebased and merge it then |
|
Rebased once again |
|
Rebased. I will review now. |
|
Works like described. I did a mistake during conflcit resolution, which is fixed with the latest commit 👍 |
|
Old diff (before rebase): c98edf1...e54d72e |
|
The inspection completed: 7 new issues, 1 updated code elements |
|
🚀 Test Passed. 🚀 |
|
🚀 Test Passed. 🚀 |
Set expiration date by default when adding additional shares
Fix #4823, #4734