stable

Clone or download

Read-only

feat: XML import/export of implied timeframe semantic

part of: story #21362 Base artifact timeframe on a linked artifact Note: A method to retrieve XML trackers ordered by priority as been implemented in order to instanciate in first place all trackers on whom other trackers's timeframe semantic inheritance is based. How to test semantic timeframe implied from another tracker export from XML: - Create a Scrum project - In your User Stories tracker admin > Semantics > Timeframe: choose "Inherited from another tracker" and select "Sprints" tracker. - In your User Story admin: click on Structure XML export --> you should retrieve an XML file with a semantic timeframe node in User Story tracker node like: `<semantic type="timeframe"> <inherited_from_tracker id="[Sprints tracker id]"/> </semantic>` How to test semantic timeframe implied from another tracker import from XML: - Export the same project via Tuleap CLI exporter and copy it into a local repository - Change project name & short name in project.xml - Copy the directory into your tuleap container - Import the project via Tuleap CLI importer to create a new project --> you should see the project in your tuleap forge --> In your User Story tracker admin > Semantics > Timeframe you should see: - "The timeframe of an artifact will be -'Inherited from another tracker'- - Tracker "Sprints" selected. Change-Id: I977d8c16fad1ad9fc6d11c0921f8524d14144106

Modified Files

Name
M plugins/agiledashboard/include/AgileDashboard/Semantic/Semantic_InitialEffortFactory.class.php +2 −1 Go to diff View file
M plugins/agiledashboard/include/agiledashboardPlugin.php +2 −1 Go to diff View file
M plugins/cardwall/include/Semantic/CardFieldsFactory.class.php +2 −1 Go to diff View file
M plugins/cardwall/include/cardwallPlugin.php +2 −1 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/IBuildSemanticFromXML.php +2 −1 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Progress/SemanticProgressFromXMLBuilder.php +2 −1 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Status/Done/SemanticDoneFactory.php +2 −1 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Timeframe/SemanticTimeframe.php +6 −0 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Timeframe/SemanticTimeframeBuilder.php +16 −6 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Timeframe/SemanticTimeframeFromXMLBuilder.php +67 −3 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Timeframe/TimeframeImpliedFromAnotherTracker.php +12 −1 Go to diff View file
A plugins/tracker/include/Tracker/Semantic/TimeframeConfigInvalid.php +118 −0 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Tracker_SemanticFactory.class.php +10 −3 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Tracker_Semantic_ContributorFactory.class.php +2 −1 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Tracker_Semantic_DescriptionFactory.class.php +2 −1 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Tracker_Semantic_StatusFactory.class.php +2 −1 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Tracker_Semantic_TitleFactory.class.php +2 −1 Go to diff View file
M plugins/tracker/include/Tracker/Tooltip/Tracker_TooltipFactory.class.php +2 −1 Go to diff View file
M plugins/tracker/include/TrackerXmlImport.class.php +65 −32 Go to diff View file
M plugins/tracker/resources/tracker-definition.rnc +21 −13 Go to diff View file
M plugins/tracker/resources/tracker-definition.rng +31 −12 Go to diff View file
M plugins/tracker/resources/tracker.rng +31 −12 Go to diff View file
M plugins/tracker/resources/trackers.rng +31 −12 Go to diff View file
M plugins/tracker/site-content/fr_FR/LC_MESSAGES/tuleap-tracker.po +8 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Semantic/Progress/SemanticProgressFromXMLBuilderTest.php +14 −7 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Semantic/Status/Tracker_Semantic_StatusFactoryTest.php +2 −1 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Semantic/Timeframe/SemanticTimeframeBuilderTest.php +76 −2 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Semantic/Timeframe/SemanticTimeframeFromXMLBuilderTest.php +281 −4 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Semantic/Timeframe/SemanticTimeframeTest.php +101 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Semantic/Timeframe/TimeframeImpliedFromAnotherTrackerTest.php +11 −9 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Semantic/Title/Tracker_Semantic_TitleFactoryTest.php +1 −1 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Semantic/Tooltip/Tracker_TooltipFactoryTest.php +1 −1 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Semantic/Tracker_SemanticFactoryTest.php +4 −4 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Semantic/Tracker_Semantic_ContributorFactoryTest.php +2 −1 Go to diff View file
M plugins/tracker/tests/unit/Tracker/TrackerXmlImportTest.php +23 −15 Go to diff View file
M src/common/xml/resources/project/project.rng +31 −12 Go to diff View file
M src/common/xml/resources/project/tracker-definition.rng +31 −12 Go to diff View file