stable

Clone or download

Read-only

feat: Project XML export from web UI

Project admin can export the project structure as an XML archive directly from the project administration (in project data export), nearly like it is done in CLI[1]. Notes: * Users and data are not part of the export. * CLI does not offer yet the option to export only the structure. * Widgets linked to data (e.g Docman Viewer) are not exported. Agiledashboard configuration is not exported yet. Therefore the feature is hidden behind a feature flag. In order to be able to see the export button: * Go to project ยป admin ยป data ยป project export * Add ?feature-flag-xml-structure=1 in the url * The new button should be displayed Functional changes to CLI: if --all is not given as option, then documents and git are not anymore exported. Part of request #25347: Export project structure from Web UI [1]: https://docs.tuleap.org/administration-guide/projects-management/export-import/project-export.html Change-Id: I5b6afc365f940124fbbf6ddb82b431140bdc56ee

Modified Files

Name
M plugins/docman/include/docmanPlugin.php +4 โˆ’0 Go to diff View file
M plugins/git/include/gitPlugin.php +4 โˆ’0 Go to diff View file
M plugins/mediawiki/include/mediawikiPlugin.php +1 โˆ’1 Go to diff View file
M plugins/svn/include/svnPlugin.php +1 โˆ’1 Go to diff View file
M plugins/tracker/include/trackerPlugin.php +16 โˆ’9 Go to diff View file
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +28 โˆ’8 Go to diff View file
M src/common/Event/Events/ExportXmlProject.php +20 โˆ’4 Go to diff View file
A src/common/Project/Admin/Export/CannotCreateTmpFileToExportProjectException.php +28 โˆ’0 Go to diff View file
M src/common/Project/Admin/Export/ProjectExportController.php +5 โˆ’1 Go to diff View file
A src/common/Project/Admin/Export/ProjectXmlExportController.php +174 โˆ’0 Go to diff View file
M src/common/Project/Admin/Navigation/NavigationPresenterBuilder.php +3 โˆ’3 Go to diff View file
M src/common/Project/ProjectXMLExporter.class.php +13 โˆ’8 Go to diff View file
A src/common/Project/XML/Export/ExportOptions.php +60 โˆ’0 Go to diff View file
M src/common/Request/RouteCollector.php +22 โˆ’0 Go to diff View file
A src/common/User/XML/UserXMLExportedDevNullCollection.php +29 โˆ’0 Go to diff View file
M src/templates/project/admin/export.mustache +23 โˆ’0 Go to diff View file
M src/utils/export_project_xml.php +9 โˆ’8 Go to diff View file
M tests/unit/common/Project/ProjectXMLExporterTest.php +81 โˆ’5 Go to diff View file
M tests/unit/common/Project/ProjectXMLExporterWithSynchronizedUGroupsTest.php +21 โˆ’12 Go to diff View file
A tests/unit/common/Project/XML/Export/ExportOptionsTest.php +62 โˆ’0 Go to diff View file
A tests/unit/common/User/XML/UserXMLExportedDevNullCollectionTest.php +72 โˆ’0 Go to diff View file