Import feedback system
Closed this issue · 1 comments
mmenozzi commented
Now that we use Symfony Messenger as queue engine we lost the ability to show failed queue items to allow the merchant to review import errors.
So, we should implement a system that allows the merchant to review import jobs status.
mmenozzi commented
We decided to implement this by injecting a special Logger in the ItemImportHandler
which should log any exception thrown during the import process. This special Logger should be configured with a "DoctrineORMHandler" which will persist logs as a new Log entity that will be configured as Sylius resource with dedicated grid in the backend.
- Implement monolog DoctrineORMHandler and Log entity as described here.
- Inject a custom logger configured with the
DoctrineORMHandler
in theItemImportHandler
and log any exception/error or success result - Configure the Log entity as a Sylius resource with the dedicated grid in backend