Right now, you can remove every session. This is colliding with the New Session, Same Setup functionality, since it is creating a tree of sessions in which the root is the one having the calibration trial that every child is using. If any session in the tree is removed, this means none of its children will have a way of locating the calibration trial. And what is worse, if the root is removed, none of the children has a calibration trial.
Possible solutions by Scott:
Some solutions:
- instead of deleting full sessions, leave the static trial. This will delete it from the users view, but not break the new session same setup feature
- See if a session is ever recorded as a "newsessionSameSetup" session, and prevent session deletion if so.
I think the idea would be to change the function of the \sessions\session_id\remove_permanently endpoint. That way all the scheduling stuff doesn't change