openfoodfacts-server
openfoodfacts-server copied to clipboard
Move all images to the deleted folder when product is deleted without deleting individual images first
What
- Move all images to the deleted folder when product is deleted without deleting individual images first
Related code is in lib/ProductOpener/Product.pm + Images.pm
To delete a product, you have to be an admin. Create a user in your local product opener website (use the Sign-in button), then in lib/ProductOpener/Config_off.pm add your userid.
I have started working on this issue @stephanegigandet kindly assign me
@kemsguy7, please are you still working on this issue ?
@kemsguy7, please are you still working on this issue ?
yes @Payne680, I'm creating a PR soon
@kemsguy7 Are you still working on this?
Can I work on this issue?
Removing an image is calling process_image_move with "trash" as destination
Removing a product is about setting $product_ref->{deleted} to 'on', so image removal should happen in store_product, after initial checks, when we see it is deleted.
I am working on this. I should be submitting PR tomorrow with @andrewhuanggg