Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting objects #9

Open
stuartcampbell opened this issue Feb 9, 2021 · 3 comments
Open

Deleting objects #9

stuartcampbell opened this issue Feb 9, 2021 · 3 comments

Comments

@stuartcampbell
Copy link

Hi, I am probably being stupid, but I couldn't see how to delete an action, or other objects (e.g. samples) ?

Am I missing something obvious ?

@FlorianRhiem
Copy link
Member

Hey @stuartcampbell,

you did not miss anything, SampleDB does not allow deletion of objects (e.g. samples, etc) and things tightly related to objects (such as actions, instruments). One of the core purposes of SampleDB is that it serves as a long-term archive for research metadata, so when designing what should and shouldn't be possible, we decided that while it must be possible to fix errors, it should not be possible to completely remove the metadata for a sample, measurement, etc that's been entered into SampleDB before, and that even when an error is fixed it should be possible to see the complete history of what's been entered.

Let's say a researcher performs a measurement, enters it into SampleDB and then realizes a little too late that it is, in-fact, entirely useless and cannot provide useful information even as a failure. In that case, they should explain it in the measurement's comments. If they feel bothered by this entry and perhaps don't want it to come up when they search for measurements later, they can remove their own permissions for it. That way only administrators will have access to the information, and that's the closest to deleting an object SampleDB allows.

@stuartcampbell
Copy link
Author

I agree about not letting researchers delete in order to preserve. My comment was more for administrators that made a mistake in creating something that was useless. But maybe this could be handled by an example of how you would delete this from the database directly, as it will (hopefully) be a rare thing that is needed and its only admins who have access to the database who will be doing it.

@FlorianRhiem
Copy link
Member

If an administrator created an instrument or action by mistake, my recommendation would be to set it to be hidden from lists, and perhaps use it later on when they actually need a new instrument or action. I'm quite reluctant when it comes to suggesting administrators perform changes directly in the database, due to all the things that could potentially go wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants