We're updating the issue view to help you get more done. 

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

Deployment actions

ALTER TABLE channel_connector_config ADD publication_start_date DATETIME NOT NULL;

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

Status

Assignee

Unassigned

Reporter

Marijn Otte

Product owner

Marijn Otte

OTM project ID

None

Client

Integrated Marijn

Plan date

None

Developer

None

Code reviewer

None

Max. hours

15

Error message

None

Follow up date

None

Switches

None

Refiner

Ger Jan van den Bosch

Story Points

3

Time tracking

12h 30m

Epic Link

Sprint

None

Fix versions

Priority

Major