Skip to content

Simplify CSV Output for Event end-point #708

@batpad

Description

@batpad

Currently, the emergency API end-point, when returned as CSV, generates separate columns for every field report attached to the emergency. This is creating an inordinate and unmanageable amount of columns.

We should simplify the CSV output for the Emergency API so that it only returns summarized information for the field reports - perhaps just two fields:

  • Has Field Reports - simple yes or no
  • Field Report IDs - comma separated list of field report IDs

These changes should only happen on the CSV output, and we should leave the JSON output the same (we do this similarly to how we handle the Field Report serializer conditionally based on the output format).

@nanometrenat please let me know if this ticket is duplicated somewhere, could not find an existing ticket.

cc @GregoryHorvath is this something you might be able to take on?

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions