Skip to content

Validate that stimuli have the same project and public attributes as the recording when created #693

Description

@GianlucaFicarelli

Description

Validate that stimuli have the same project and public attributes as the recording when created.

It should be done for all the recording types (ion_channel_recording and electrical_cell_recording).

Technical implementation & specs

It can be done in the app logic if simpler, or as a trigger in the db.

Additional context

Related issue: https://github.com/openbraininstitute/prod-build-emodel/issues/209

Acceptance criteria

  • it's not possible to register a private stimulus for a public recording
  • it's not possible to register a public stimulus for a private recording (this should be validated already)
  • it's not possible to register a stimulus for a recording if the project isn't the same

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions