stable

Clone or download

Read-only

feat: export project widgets in XML

This is a follow-up to git #tuleap/stable/cc70352862bb17477b104df959d30156c04069fb Now widgets can be exported. Actually, only a subset of widgets can be, in order to not clutter the review. Other widgets can be done later in dedicated contributions. 1. Create a project based on template "Issue tracking". Note the new project id. 2. Export the project: src/utils/php-launcher.sh src/utils/export_project_xml.php -p <id> -u admin --dir -o … 3. Ensure that the dashboards exported in the archive match the ones[0] in the issue template: tools/utils/setup_templates/issues/issue_template.xml Part of request #22567: Add dashboards configurations at project export [0] Please note that the issue template seems to contain an unknown widget: I didn't find any widget matching `projectlatestgitcommits` 🤔 Change-Id: I60e1c5ca76e67977b02ad5af5081f3e2137689a0

Modified Files

Name
M plugins/tracker/include/Tracker/Report/Tracker_Report_Renderer.class.php +2 −1 Go to diff View file
M plugins/tracker/include/Tracker/Widget/Tracker_Widget_ProjectRenderer.class.php +23 −0 Go to diff View file
M src/common/Dashboard/Project/DashboardXMLExporter.php +116 −6 Go to diff View file
M src/common/Dashboard/Widget/DashboardWidgetRetriever.php +2 −4 Go to diff View file
A src/common/Dashboard/Widget/IRetrieveDashboardWidgets.php +31 −0 Go to diff View file
A src/common/Widget/IBuildInstanceOfWidgets.php +28 −0 Go to diff View file
M src/common/Widget/Note/ProjectNote.php +25 −0 Go to diff View file
M src/common/Widget/ProjectContacts.php +8 −0 Go to diff View file
M src/common/Widget/ProjectHeartbeat.php +8 −0 Go to diff View file
M src/common/Widget/ProjectMembers/ProjectMembers.php +8 −0 Go to diff View file
M src/common/Widget/Widget.class.php +5 −0 Go to diff View file
M src/common/Widget/WidgetFactory.php +2 −5 Go to diff View file
M src/common/Widget/Widget_ProjectDescription.class.php +9 −1 Go to diff View file
M src/utils/export_project_xml.php +10 −8 Go to diff View file
M tests/unit/common/Dashboard/Project/DashboardXMLExporterTest.php +104 −0 Go to diff View file