stable

Clone or download

Read-only

feat: reject calendar event XML import if no semantics

If the XML file used to create a tracker declare usage of calendar events, but does not define title semantic, nor timeframe semantic, or has an invalid timeframe definition (e.g timeframe implied from a tracker not part of the XML import file), then the import is rejected. Part of story #35094: have "calendar" events attached to tracker email notification Change-Id: Idad64220d1d5e8fddd3f936515cb6570d54a5b6c

Modified Files

Name
A plugins/tracker/include/Tracker/Creation/TrackerCreationNotificationsSettingsFromXmlBuilder.php +79 −0 Go to diff View file
M plugins/tracker/include/TrackerXmlImport.class.php +33 −16 Go to diff View file
M plugins/tracker/site-content/fr_FR/LC_MESSAGES/tuleap-tracker.po +10 −0 Go to diff View file
M plugins/tracker/site-content/pt_BR/LC_MESSAGES/tuleap-tracker.po +6 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Creation/TrackerCreationNotificationsSettingsFromXmlBuilderTest.php +193 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/TrackerXmlImportArtifactLinkV2ActivationTest.php +2 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/TrackerXmlImportTest.php +2 −8 Go to diff View file