getodk / getodk/central

Add endpoint to download combined client audit CSV

Open
#781 3 comments 0 reactions 0 assignees View on GitHub
backend
Dominant language
JavaScript
Stars
226
Forks
235
Avg merge
2d 22h
Merged PRs (30d)
19

Description

When a form definition requests a [client audit](https://docs.getodk.org/form-audit-log/), Central currently saves all audit events to the db. When a zipped CSV export [is requested](https://odkcentral.docs.apiary.io/#reference/submissions/submissions/exporting-form-submissions-to-csv), a combined audit CSV is included in the zip.

It would be helpful to have a separate endpoint to request just the combined audit CSV.

For the route, I'm thinking: projects/projectId/forms/xmlFormId/client-audit.csv` which leaves room for eventually introducing an OData endpoint.

Something to check is what happens to client audits with submissions are edited and whether they should also be available as a submission version subresource. I think they're tied to the logical submission but I'm not sure.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.