stable

Clone or download

Read-only

Closes request #27552: Add export of report columns as an XLSX spreadsheet

The feature re-uses the existing code of the cross-report export, the document generated is exactly the same as the one you get when you open the cross report export modal and directly click on export. All the code added by this contribution is only technical to start the download when the user clicks on the link. Change-Id: Ib4bc63251d5f45ee9078d7cfeba7fdfb28beaa79

Modified Files

Name
M plugins/document_generation/include/CrossReport/CrossReportExportProperties.php +2 −0 Go to diff View file
M plugins/document_generation/include/CrossReport/CrossReportExportPropertiesFetcher.php +3 −1 Go to diff View file
M plugins/document_generation/include/document_generationPlugin.php +1 −1 Go to diff View file
M plugins/document_generation/scripts/tracker-cross-report-action/src/Data/organize-reports-data.ts +6 −2 Go to diff View file
M plugins/document_generation/scripts/tracker-cross-report-action/src/Exporter/XLSX/autofilter-generator.test.ts +14 −0 Go to diff View file
M plugins/document_generation/scripts/tracker-cross-report-action/src/Exporter/XLSX/autofilter-generator.ts +5 −1 Go to diff View file
M plugins/document_generation/scripts/tracker-cross-report-action/src/export-document.ts +1 −0 Go to diff View file
M plugins/document_generation/scripts/tracker-cross-report-action/src/rest-querier.test.ts +7 −2 Go to diff View file
M plugins/document_generation/scripts/tracker-cross-report-action/src/rest-querier.ts +11 −6 Go to diff View file
A plugins/document_generation/scripts/tracker-report-action/src/entrypoint-document-generation.ts +61 −0 Go to diff View file
A plugins/document_generation/scripts/tracker-report-action/src/entrypoint-spreadsheet-generation.ts +45 −0 Go to diff View file
A plugins/document_generation/scripts/tracker-report-action/src/export-report-columns-spreadsheet.test.ts +40 −0 Go to diff View file
A plugins/document_generation/scripts/tracker-report-action/src/export-report-columns-spreadsheet.ts +44 −0 Go to diff View file
M plugins/document_generation/scripts/tracker-report-action/src/index.ts +5 −46 Go to diff View file
A plugins/document_generation/scripts/tracker-report-action/src/show-loader-processing.test.ts +33 −0 Go to diff View file
A plugins/document_generation/scripts/tracker-report-action/src/show-loader-processing.ts +30 −0 Go to diff View file
M plugins/document_generation/site-content/fr_FR/LC_MESSAGES/tuleap-document_generation.po +3 −0 Go to diff View file
M plugins/document_generation/site-content/pt_BR/LC_MESSAGES/tuleap-document_generation.po +3 −0 Go to diff View file
M plugins/document_generation/templates/tracker-cross-report-action.mustache +8 −0 Go to diff View file
M plugins/document_generation/tests/unit/CrossReport/CrossReportExportPropertiesFetcherTest.php +7 −3 Go to diff View file
M plugins/tracker/include/REST/v1/Report/MatchingArtifactRepresentationBuilder.php +20 −4 Go to diff View file
M plugins/tracker/include/REST/v1/ReportsResource.class.php +4 −1 Go to diff View file
M plugins/tracker/include/Tracker/Report/Renderer/Table/TableRendererForReportRetriever.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/Report/Tracker_Report_Renderer.class.php +1 −6 Go to diff View file
M plugins/tracker/include/Tracker/Widget/ProjectRendererWidgetXMLImporter.php +1 −1 Go to diff View file
M plugins/tracker/tests/unit/Tracker/REST/v1/Report/MatchingArtifactRepresentationBuilderTest.php +3 −0 Go to diff View file