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

Update CleanCommand to delete depreciated responsive images #3003

Merged
merged 3 commits into from
Aug 22, 2022

Conversation

michaellindahl
Copy link
Contributor

When running php artisan media-library:clean we should be clearing responsive images for conversions that are no longer used, as well as for active conversions that are no longer using responsive images. Fixes #2397

When running `php artisan media-library:clean` we should be clearing responsive images for conversions that are no longer used, as well as for active conversions that are no longer using responsive images. Fixes  spatie#2397
@freekmurze
Copy link
Member

Could you also update the tests, so we don't break this functionality in the future?

@michaellindahl
Copy link
Contributor Author

@freekmurze Added a unit test for this and also deleted the duplicate unit test / file. Based on the structure of the existing CleanConversionsTest this seemed like the right thing to do.

@freekmurze freekmurze merged commit e66c599 into spatie:main Aug 22, 2022
@freekmurze
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants