awesome-mecheng
awesome-mecheng copied to clipboard
Add export for participant requests
Note
This is in a first reviewable state. However, I am pausing development on this and switching to cycle work. So any work following reviews will be delayed. Feel free to delay the review as you see fit.
Export of participant requests
This PR adds an export via API for participants' requests.
The JSON format:
The CSV format has the following headers:
- challenge
- changed
- created
- registration_question_answers.0.answer
- registration_question_answers.0.question.question_help_text
- registration_question_answers.0.question.question_text
- registration_question_answers.0.question.required
- registration_status
- user.department
- user.institution
- user.location
- user.mugshot
- user.user.username
- user.website
The default CSV renderer dumps any JSON under the top level. I have intentionally switched to using the 'regular' PaginatedCSVRender
with a special application for registration_question_answers
. This is to address any strange rendering of actual JSONField values.