Skip to content

Allow to parse work items as CSV

Felipe Cardozo requested to merge issue_379082-export_work_items_basic_data into master

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.

  1. Create some issues on any project
  2. 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.

Edited by Felipe Cardozo

Merge request reports

Loading