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

Make impossible to change datatype on a dataset #67

Open
glormph opened this issue Jan 25, 2024 · 0 comments
Open

Make impossible to change datatype on a dataset #67

glormph opened this issue Jan 25, 2024 · 0 comments

Comments

@glormph
Copy link
Member

glormph commented Jan 25, 2024

When you change a dataset type, this has implications for the entire set, as different datatypes have different components to store. E.g labelcheck stores quantfilechannel, other datatypes store samplesheet. That and acquisition etc.

Make it either impossible to change the datatype if e.g samples or other components have already been stored, or very hard with warnings etc - but correct so it removes the old stuff!

I am leaning towards that it would be better to delete a dataset and release its files, and create a new dataset, instead of allowing the old dataset to change its type.

Anyway, right now datatype changes error on a faulty old_dtcs = existing_dtcstates.get(dtcomp__component_id=...) call (wrong name of FK, there is no _id since it is an Integer with choices)

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

1 participant