Unpublished articles are exported with "add" state
Description
Background
Integrated is responsible for providing the right articles to exporters (http://www.integratedfordevelopers.com/content/documentation/article/creating-an-exporter-for-content-distribution).
Currently, unpublished articles are exported as well.
Requirements
Check for isPublished, when false export the document the "delete" state instead of "add" state
Note: articles published in the future will have a "delete" state as well, issue covers this scenario.
Deployment actions
Technical tasks
This happens in vendor/integrated/integrated/src/Bundle/ChannelBundle/EventListener/Doctrine/ChannelDistributionListener.php.
Insert (prePersist) and update always have an add state. Should be expanded with the check in the issue.
Activity
.Notificatie preview gestuurd naar Integrated Marijn (marijn@e-active.nl)
Thanks!
I have to run a composer update for the skeleton for issue INTEGRATED-1333. So this issue will also be deployed with that issue.
One minor remark about the place of the check.
done!