Skip to content

Sessions created as child of another session lose calibration trial if the parent is removed. #45

@AlbertoCasasOrtiz

Description

@AlbertoCasasOrtiz

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

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions