I discovered another issue with the API. I'm trying to create a request using a selective audience. Take this example:
curl --data "username=lheinric&reason-for-request=bla reas&model-type=bla model&analysis-uuid=1f3dbc55-5100-9284-4519-aac16f60988d&activate=1&subscribers=backend-rivet&title=z3&predefined-model=bla pre&audience=selectivexxx" http://recast.perimeterinstitute.ca/dev/api/recast-request.json
as you can see the audience is set to 'selective' but unfortunately it always ends up as 'all' on the PI side. Editing on the web interface works though.
the corresponding line in PHP seems to do the correct thing, so I'm not sure what is going on
I discovered another issue with the API. I'm trying to create a request using a selective audience. Take this example: curl --data "username=lheinric&reason-for-request=bla reas&model-type=bla model&analysis-uuid=1f3dbc55-5100-9284-4519-aac16f60988d&activate=1&subscribers=backend-rivet&title=z3&predefined-model=bla pre&audience=selectivexxx" http://recast.perimeterinstitute.ca/dev/api/recast-request.json
as you can see the audience is set to 'selective' but unfortunately it always ends up as 'all' on the PI side. Editing on the web interface works though.
the corresponding line in PHP seems to do the correct thing, so I'm not sure what is going on
https://github.com/recast-hep/recast-frontend/blob/fd49d6f10ed1bab2d3a3e7f9f5b1af328d82c314/modules/recast_api/recast_request_api.inc#L63