stable
Clone or download
Read-only
This is a first step to be able to export project dashboards. For now it only exports the dashboards and their names. Widgets will be done in a dedicated changeset. RelaxNG definition for dashboards has been updated to be able to export empty dashboards (current definition forced us to have at least one widget). Exported projects with or without dashboards can be imported back. Part of request #22567: Add dashboards configurations at project export Change-Id: I88abbaded1f26af1206cad1137e97000de2b3bb1
Modified Files
Name | ||||
---|---|---|---|---|
A | src/common/Dashboard/Project/DashboardXMLExporter.php | +60 | −0 | Go to diff View file |
A | src/common/Dashboard/Project/IRetrieveDashboards.php | +31 | −0 | Go to diff View file |
M | src/common/Dashboard/Project/ProjectDashboardRetriever.php | +2 | −2 | Go to diff View file |
M | src/common/Project/ProjectXMLExporter.class.php | +10 | −0 | Go to diff View file |
M | src/common/xml/resources/dashboard.rnc | +1 | −1 | Go to diff View file |
M | src/common/xml/resources/project/dashboard.rng | +2 | −2 | Go to diff View file |
M | src/common/xml/resources/project/project.rng | +2 | −2 | Go to diff View file |
M | src/utils/export_project_xml.php | +19 | −0 | Go to diff View file |
A | tests/unit/common/Dashboard/Project/DashboardXMLExporterTest.php | +80 | −0 | Go to diff View file |
M | tests/unit/common/Project/ProjectXMLExporterTest.php | +14 | −0 | Go to diff View file |
M | tests/unit/common/Project/ProjectXMLExporterWithSynchronizedUGroupsTest.php | +2 | −0 | Go to diff View file |