Skip to content
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

Merged
merged 1 commit into from
Nov 4, 2019
Merged

Conversation

rullzer
Copy link
Member

@rullzer rullzer commented Oct 28, 2019

Depends on:

Todo:

@rullzer
Copy link
Member Author

rullzer commented Oct 29, 2019

As discussed lets move this to a command that can be run

@rullzer rullzer force-pushed the enh/share_expiration_notification branch from 027e695 to d773cc2 Compare October 29, 2019 15:56
@rullzer rullzer changed the base branch from enh/daily_job to master October 29, 2019 18:33
@rullzer
Copy link
Member Author

rullzer commented Oct 29, 2019

Moved it to a command you can now run once a day or so from cron.

@rullzer rullzer force-pushed the enh/share_expiration_notification branch from d773cc2 to 377e144 Compare October 29, 2019 18:45
@tcitworld
Copy link
Member

As discussed lets move this to a command that can be run

Why not make like #3044, one mode with background jobs and one with command?

@rullzer
Copy link
Member Author

rullzer commented Oct 30, 2019

@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]>
@rullzer rullzer force-pushed the enh/share_expiration_notification branch from 377e144 to 1ac57e7 Compare November 1, 2019 07:53
@rullzer rullzer added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Nov 1, 2019
@rullzer
Copy link
Member Author

rullzer commented Nov 1, 2019

Rebased, review tine

public function execute(InputInterface $input, OutputInterface $output) {
//Current time
$minTime = $this->time->getDateTime();
$minTime->add(new \DateInterval('P1D'));
Copy link
Member

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?

Copy link
Member

@skjnldsv skjnldsv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good :)

@rullzer rullzer merged commit 0ac1298 into master Nov 4, 2019
@rullzer rullzer deleted the enh/share_expiration_notification branch November 4, 2019 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants