-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
Enh/share expiration notification #17727
Conversation
apps/files_sharing/lib/BackgroundJob/ExiprationNotificationJob.php
Outdated
Show resolved
Hide resolved
As discussed lets move this to a command that can be run |
027e695
to
d773cc2
Compare
Moved it to a command you can now run once a day or so from cron. |
d773cc2
to
377e144
Compare
Why not make like #3044, one mode with background jobs and one with command? |
@tcitworld because right now I don't want to have this by default. Only systems that want to have this will have to run the command. Also since we can't gurantee whena background job is run this creates some issues right now ;) |
Introduces a new command that will create notifications for users if they have shares that will expire the next day. Signed-off-by: Roeland Jago Douma <[email protected]>
377e144
to
1ac57e7
Compare
Rebased, review tine |
public function execute(InputInterface $input, OutputInterface $output) { | ||
//Current time | ||
$minTime = $this->time->getDateTime(); | ||
$minTime->add(new \DateInterval('P1D')); |
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.
So we always use the server time to expire, right?
We don't store any utc shift?
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.
Code looks good :)
Depends on:
Todo: