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.

Environment

None

Deployment actions

None

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.

Status

Assignee

Unassigned

Reporter

Marijn Otte

Client

Integrated Marijn

External issue ID

None

Follow up date

None

Code reviewer

Jeroen van Leeuwen

Developer

Ger Jan van den Bosch

Plan date

None

Max. hours

None

Error message

None

Min. hours

None

Product owner

Marijn Otte

Refiner

Jeroen van Leeuwen

Switches

None

Dev hour estimate

6

Story Points

2

Time tracking

8h 30m

Epic Link

Sprint

None

Fix versions

Priority

Major
Configure