UiL-OTS-labs / web-experiment-datastore

Other
0 stars 0 forks source link

Upload fails when using sessions with only a single group #50

Closed bbonf closed 2 years ago

bbonf commented 2 years ago

Because of the way Experiment.uses_groups() works, it is currently possible to start an experiment when only a single group is configured, but it's impossible to save the participant's data.

This is caused by the following exception in SessionUploadView:

        if not self.experiment.uses_groups():
            raise ValidationError(detail='Experiment is not using session ids')
tymees commented 2 years ago

I'd say that SessionUploadView is right, but ParticipantView isn't?

If there is one group defined, one should use the regular api endpoint for uploads