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.

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.

Deployment actions

None

Activity

Show:
Gerben Bosch
June 12, 2018, 9:11 AM

done!

Jeroen van Leeuwen
June 18, 2018, 6:29 AM

One minor remark about the place of the check.

Jeroen van Leeuwen
June 18, 2018, 10:56 AM

I have to run a composer update for the skeleton for issue INTEGRATED-1333. So this issue will also be deployed with that issue.

Ger Jan van den Bosch
June 18, 2018, 12:05 PM

Thanks!

API
June 19, 2018, 1:03 PM

.Notificatie preview gestuurd naar Integrated Marijn (marijn@e-active.nl)

Assignee

Unassigned

External issue ID

None

Client

Integrated Marijn

Min. hours

None

Dev hour estimate

6

Epic Link

Sprint

None

Fix versions

Configure