awesome-mecheng icon indicating copy to clipboard operation
awesome-mecheng copied to clipboard

Add export for participant requests

Open chrisvanrun opened this issue 4 months ago • 3 comments

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.

image

The JSON format: image

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.

chrisvanrun avatar Oct 07 '24 12:10 chrisvanrun