Open aposp opened 3 years ago
Is the use-case here to directly connect the Autograder to the queue (i.e. does it have some outgoing webhook-type system?), or is there a third-party pulling the data from the Autograder and uploading it to the queue? I ask because I think the easiest solution in the latter case would be to use jq
(or something similar) to transform the data:
$ cat example_data.json | jq '[.[] | .member_names]'
[
[
"email1@umich.edu",
"email2@umich.edu"
],
[
"email3@umich.edu"
]
]
The latter - 280 has the Project Czar manually move the groups over.
Didn't know about jq
, that's much easier than the python program I just started writing. The easiest solution is to just add this command to the Project Czar handbook for the staff member to use. Knowing this I don't see this issue as high priority.
On the other hand, 280 is not the only course to use this queue and autograder.io, so I still think there's benefit to adding this compatibility in the long-term.
autograder.io stores its groups in the following format (an array of dicts each with a
member_names
array of emails):This is incompatible with the queue's group upload format. Considering the autograder doesn't actually expose this info (you have to go to the dev console and open up the HTTP requests) it's probably more likely for the queue to accept a new format.