-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Support batches processing for media gallery synchronization queue messages #29543
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
Support batches processing for media gallery synchronization queue messages #29543
Conversation
…ssages - updated synchronization consumer and added media content bulk service
Hi @yolouiese. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
hi,hello |
…upport-batches-synchronization
…synchronization queue messages - implemented gallery synchronization functionality
…upport-batches-synchronization
…synchronization queue messages - implemented media content sychronization
@magento run all tests |
@magento run all tests |
…synchronization queue messages - added media content sychronizer and save contents to database
…upport-batches-synchronization
@magento run all tests |
…synchronization queue messages - added method to sync and save media content to database
@magento run all tests |
…synchronization queue messages - fixed failed static test
@magento run all tests |
…synchronization queue messages - fixed failed static test
…upport-batches-synchronization
…upport-batches-synchronization
@magento run all tests |
@magento run all tests |
); | ||
} | ||
|
||
$this->setLastExecutionTime(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The falg should be set only after full synchronization, not after partial
} | ||
|
||
$this->setLastExecutionTime(); | ||
$this->removeObsoleteContent->execute(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RemoveObsoleteContentAsset is a part of full synchronization, shouldn't be a part of partial
/** | ||
* @inheritDoc | ||
*/ | ||
public function execute(array $mediaContentIdentities): void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be good to check that the content links are removed if the entity is no longer present (was deleted)
@magento run all tests |
Hi @sivaschenko, thank you for the review. |
@magento run Integration Tests |
@magento run all tests |
…tion queue messages #29543
Hi @yolouiese, thank you for your contribution! |
Description (*)
Added an implementation to support batch processing for synchronization queue messages
Related Pull Requests
https://github.com/magento/partners-magento2-infrastructure/pull/36
Fixed Issues (if relevant)
Manual testing scenarios (*)
Check synchronization when enabling new media gallery
Check
bin/magento media-gallery:sync
functionalityCheck
bin/magento media-content:sync
functionalityGeneral synchronization test case:
media_gallery_asset
andmedia_content_asset
(Assuming it is already enabled)
(Changes in the system configuration for the Enhanced Media Gallery triggers the Media Gallery and Media Content sychronization publishers)
bin/magento queue:consumers:start media.gallery.synchronization
media_gallery_asset
table if data are saved)bin/magento queue:consumers:start media.content.synchronization
media_content_asset
table if data are saved)Batch synchronization test case:
media_gallery_asset
andmedia_content_asset
\Magento\MediaGallerySynchronization\Model\Publish::execute
passing the paths of the imagesbin/magento queue:consumers:start media.gallery.synchronization
media_gallery_asset
table if data are saved)\Magento\MediaContentSynchronization\Model\Publish::execute
passing the contentIdentities of the places where the images have been added tobin/magento queue:consumers:start media.content.synchronization
media_content_asset
table if data are saved)Questions or comments
Contribution checklist (*)