-
Notifications
You must be signed in to change notification settings - Fork 9.4k
[2.2][Backport] Database Media Storage - Admin Product Edit Page handles recreates images correctly when pub/media/catalog is cleared. #21606
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
[2.2][Backport] Database Media Storage - Admin Product Edit Page handles recreates images correctly when pub/media/catalog is cleared. #21606
Conversation
|
Hi @gwharton. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
|
I'll close & re-open this PR in order re-trigger all tests again |
|
Hi @gwharton, thank you for your contribution! |
|
Hi @gwharton. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
…age in database storage mode.
|
Hi @ihor-sviziev, thank you for the review. |
|
✔️ QA Passed |
|
Hi @gwharton, thank you for your contribution! |
…dit Page handles recreates images correctly when pub/media/catalog is cleared. #21606
Original PR (*)
Description (*)
When in database storage mode, the admin product edit page should copy the database product image to local storage if it doesn't exist and display the image correctly in the admin page. In a clustered environment this happens frequently as new nodes are introduced with empty pub/media which must be populated as required.
When the image code is generated a check is made if we are in db storage mode, and if the file doesnt exist locally it is retrieved and stored locally.
Fixed Issues (if relevant)
Manual testing scenarios (*)
Contribution checklist (*)