Amsterdam-Music-Lab / MUSCLE

An application to easily set up and run online listening experiments for music research.
https://www.amsterdammusiclab.nl/
MIT License
4 stars 1 forks source link

Added: Add 'active' field to ExperimentCollection model and allow admin user to deactive an experiment collection #1125

Closed drikusroor closed 3 months ago

drikusroor commented 3 months ago

This pull request adds an 'active' field to the ExperimentCollection model, allowing experiment collections to be marked as active or inactive. If an experiment collection is marked as active, it will return a 404 not found when requested through the get_experiment_collection endpoint. It also updates the ExperimentCollectionAdmin views to include the 'active' field in the list display and form fields. Additionally, it includes a fix for a test related to the experiment series admin list display.

Resolves #1124

sentry-io[bot] commented 3 months ago

🔍 Existing Issues For Review

Your pull request is modifying functions with the following pre-existing issues:

📄 File: backend/experiment/views.py

Function Unhandled Issue
get_experiment_collection ValueError: min() arg is an empty sequence /serve...
Event Count: 7
get_experiment_collection Participant.DoesNotExist: Participant matching query does not exist. /server/experimen...
Event Count: 3

Did you find this useful? React with a 👍 or 👎