seek
seek copied to clipboard
Deletion of CV term in use as sample title
Describe the bug If sample title is CV term, and the CV term is deleted, the sample cannot be selected and therefore it cannot be deleted nor edit it.
To Reproduce Steps to reproduce the behavior:
- Go to DataHub-test
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior Options:
- if deletion of CV term "in use" is allowed
- sample that uses the CV term as title should be editable or deletable
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context Add any other context about the problem here.
It seemed like a bug because there is no possibility to delete the sample from sample view. The unexpected behaviour is due to the fact that the link associated with the sample title is the link to the CV term and not to the sample itself.
Fix: associate link to sample itself, and not to the CV term
@floradanna @NielsGeudens
I can't reproduce the same behavior on our test instance, based on the information you gave me. When I delete the term used as a sample title. I can still delete the sample, no problem. I can also edit the sample but I can't save the changes unless I choose a valid CV term as sample title. This looks like correct behavior to me.
Could you point to the resource where this problem occurs?