magento / adobe-stock-integration

Magento Adobe Stock integration Community Project.
Open Software License 3.0
60 stars 92 forks source link

Remove generated renditions when the asset is deleted #1799

Closed sivaschenko closed 4 years ago

sivaschenko commented 4 years ago

Steps to reproduce (*)

  1. Upload an asset of high resolution to Media Gallery
  2. Delete an asset from Media Gallery
  3. Check pub/media/.renditions directory

Expected result (*)

The rendition for the deleted asset is still preset

Actual result (*)

The rendition for the deleted asset should be deleted too

Additionally

The renditions should be also removed when the asset is removed by running bin/magento media-gallery:sync command

m2-assistant[bot] commented 4 years ago

Hi @sivaschenko. Thank you for your report. To help us process this issue please make sure that you provided sufficient information.

Please, add a comment to assign the issue: @magento I am working on this


sivaschenko commented 4 years ago

Covered in the intial implementation https://github.com/magento/magento2/pull/29889