Do not export articles with publication date before connector configuration date

Description

Background

Example case:

  • An installation has 500 documents from the last 10 years

  • A social connector is added

  • A bulk action edit is applied to all 500 documents

  • --> result 500 documents are posted to social media
    Only future documents should be exported to a connector. (in the future we might add a feature to choose from different options)

Requirements

  • When a connector is added or edited, add a date/time field (same component as used in the deadline / publication fields) with label "Publication start date". Default: current date / time. Field is not required.

  • When exporting (channel:export) ignore documents which have a publication date lower than the publication start date of the connector config

Note: when the minimum creation date is changed to a time in history, historical documents are currently not queued. This is currently not in scope

Technical tasks

  • Integrated\Bundle\ChannelBundle\Form\Type\ConfigFormType: add datetime field 'Do not post items created before'

  • Create a function to get the connector publication date(s) by channel

  • Integrated\Bundle\ChannelBundle\EventListener\Doctrine\ChannelDistributionListener: check the publication time

Deployment actions

None

Activity

Show:
Ger Jan van den Bosch
July 3, 2018, 7:41 AM

Can you check the technical tasks please? Maybe you have a better solution.

Jeroen van Leeuwen
July 9, 2018, 8:37 AM

fine with me!

API
July 19, 2018, 2:33 PM

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

API
July 19, 2018, 6:34 PM

.Schatting van 12 - 15 uur is geaccepteerd door Integrated Marijn (in opdracht ingevoerd door ).

Dion Scheper
January 31, 2019, 4:50 PM

paar dingetjes

Assignee

Unassigned

Client

Integrated Marijn

Epic Link

Sprint

None

Fix versions

Configure