Describe the bug
Currently experiment details such as species, specimen and analyte are editable even though samples have been registered.
This means that a user can remove the species even though it has been associated with a sample, which leads to an inconsistent state.
To Reproduce
Steps to reproduce the behavior:
In Design Experiment, after samples are registered, click on "edit experiment" and remove the selected species and add another, click on save and it still saves the new species.
Expected behavior
Species, Specimen and Analyte are not editable after samples have been registered.
Describe the bug Currently experiment details such as species, specimen and analyte are editable even though samples have been registered. This means that a user can remove the species even though it has been associated with a sample, which leads to an inconsistent state.
To Reproduce Steps to reproduce the behavior: In Design Experiment, after samples are registered, click on "edit experiment" and remove the selected species and add another, click on save and it still saves the new species.
Expected behavior Species, Specimen and Analyte are not editable after samples have been registered.