stable

Clone or download

Read-only

feat: Check timeframe before building calendar event

The following situations will prevent to send calendar event: * Timeframe is not configured * Timeframe is misconfigured (inherit from another project[0]) * start date is empty * end date is empty * end date < start date (note: end date can be a field, or deduced from duration) [0] Don't know how to achieve this, had to hack the db in order to end up in this situation. Part of story #35094: have "calendar" events attached to tracker email notification Change-Id: I9ec77900e60c103afe69282f34e0d70b6759450b

Modified Files

Name
M plugins/tracker/include/Tracker/Artifact/Changeset/PostCreation/ActionsRunner.php +2 −1 Go to diff View file
A plugins/tracker/include/Tracker/Artifact/Changeset/PostCreation/CalendarEventData.php +30 −0 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Changeset/PostCreation/EmailNotificationAttachmentProvider.php +40 −12 Go to diff View file
A plugins/tracker/include/Tracker/Semantic/Timeframe/BuildSemanticTimeframe.php +28 −0 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Timeframe/SemanticTimeframe.php +0 −3 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Timeframe/SemanticTimeframeBuilder.php +1 −4 Go to diff View file
A plugins/tracker/tests/unit/Stub/Tracker/Semantic/Timeframe/BuildSemanticTimeframeStub.php +71 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/Changeset/PostCreation/EmailNotificationAttachmentProviderTest.php +110 −1 Go to diff View file