Allow to parse work items as CSV
What does this MR do and why?
First iteration to allow exporting work items as CSV,
introduces WorkItems::ExportCsvService
.
We will need two follow-ups to complete the MVC:
- Introduce a GraphQL endpoint to allow exporting work items
- Send an email when export is done
related to #379082 (closed)
How to set up and validate locally
There should be no visible change, but this can be tested using rails console.
- Create some issues on any project
- Start Rails console and execute the following
project = Project.find(ID)
relation = WorkItem.where(project: project)
service = WorkItems::ExportCsvService.new(relation, project)
service.csv_data
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Felipe Cardozo