WIP: Resolve "Export a list of guests"
Description of the change
CSV export of the list of guests of an event . I plan to do pdf export on another MR.
Use nimble_csv parsing library.
Workflow
- route to GET /events/:uuid/guests/export/csv
- Load event and associated guests from database / cache
- map guests list to csv lines
- transform lines to binary
- return with mime type "text/csv"
Applicable issue numbers
Alternate designs/implementations
TODO
Benefits of this implementation
nimble_csv is simple and made for performance. Also, it is maintained by Plataformatec & José Valim which are also core maintainers of Elixir.
Possible drawbacks
TODO
Why should this be part of a core component?
TODO
Testing process
Backend
- lib : test module to generate CSV string from an event
- web : test output (csv file) from the route that will generate extraction
Frontend
- e2e test : presence of the export to csv button in event page
Edited by Marc BOUVIER