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

Finish the "october:util purge uploads" artisan command #4518

Closed
wants to merge 2 commits into from

Conversation

bennothommo
Copy link
Contributor

Continues and finishes the work done by @austinderrick in #4029.

Finishes the functionality for the october:util purge uploads command. This had to be done on a new branch as @austinderrick's original PR had diverged from the develop branch and couldn't be properly merged.

Credit to @austinderrick for the initial implementation (#4029)
@@ -294,7 +295,57 @@ protected function utilPurgeUploads()
return;
}

// @todo
$totalCount = 0;
$uploadsPath = Config::get('filesystems.disks.local.root', storage_path('app')) . '/uploads';
Copy link
Contributor

Choose a reason for hiding this comment

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

@bennothommo just an idea, maybe it would be useful to take uploads path from configs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@w20k Good idea, will change it around soon.

Copy link
Contributor

Choose a reason for hiding this comment

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

@bennothommo did you implement that suggestion?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@LukeTowers not yet, still on the to-do list.

@bennothommo bennothommo requested a review from LukeTowers August 15, 2019 08:49
@LukeTowers LukeTowers modified the milestones: v1.0.459, v1.0.460 Sep 11, 2019
@bennothommo bennothommo modified the milestones: v1.0.460, v1.0.461 Oct 14, 2019
@bennothommo
Copy link
Contributor Author

@LukeTowers I'm gonna move this to 461. I have realised that this feature is only covering local filesystems currently, yet uploads can be stored on remote filesystems. Given this, I will need to re-do the command to also allow purging of uploads on remote filesystems.

@github-actions
Copy link

github-actions bot commented May 2, 2020

This pull request will be closed and archived in 3 days, as there has been no activity in the last 60 days.
If this is still being worked on, please respond and we will re-open this pull request.
If this pull request is critical to your business, consider joining the Premium Support Program where a Service Level Agreement is offered.

LukeTowers added a commit that referenced this pull request Aug 15, 2020
Only works for uploads stored on the local disk right now, support for remote disks may be added in the future at some point.

Replaces #4518 & #4029. Credit to @LukeTowers, @bennothommo, & @austinderrick.
@LukeTowers
Copy link
Contributor

Implemented in 7fde924

@LukeTowers LukeTowers closed this Aug 15, 2020
@LukeTowers LukeTowers modified the milestones: In Progress, v1.0.469 Aug 15, 2020
@LukeTowers LukeTowers deleted the wip/october-util-purge-uploads branch August 15, 2020 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants