-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2616 from cozy/feat/add-csv-data-export-service
The `export` service fetches all transactions with their associated relationships and transforms them into CSV lines following our own schema. It also transforms accounts without transactions into CSV lines following the same schema. The result is uploaded as a CSV file into the user's root directory. To do so Banks now requires a permission to create and update `io.cozy.files` documents. The CSV is generated by the `@fast-csv` library which offers an easy to use interface with a streamable transformation (although we don't stream the content to cozy-stack yet as we end up with `EPIPE` errors when cozy-stack responds with a 409 status response). The exported accounts without transactions can be found at the top of the file so they can easily be removed by the user if they want to process their transactions in a spreadsheet editor. The service can be launched programmatically with a 10m debounce period. (This is the final version of the commits that were mistakenly merged with #2618) ``` ### ✨ Features * Allow exporting transactions and accounts as a CSV file stored in the Cozy via a service. ```
- Loading branch information
Showing
4 changed files
with
252 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.