-
Notifications
You must be signed in to change notification settings - Fork 79
Delete analysis #1175
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
Delete analysis #1175
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@antgonza there is still another table in which the analysis can be present: analysis_chain. Right now we are not using that table for anything, but we can easily forget about it on deletion once we start using it. There are 2 possible solutions:
- Open an issue, so we don't loose track of it
- We add that table here. This implies that you also need to add a check: a study cannot be deleted if it has 'child' analyses.
I'm fine with adding an issue, since currently we are not using that and a lot of other changes will be needed once that gets in place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I happy adding the check and the delete of those rows ... shouldn't be a problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Decided to leave it as an issue #1176 so the solution is complete when implemented.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @antgonza just one minor thing: can you add a comment with a reference to the issue? Like # TODO: issue #1176, so we have a pointer in the code and we don't forget about it.
|
Few comments @antgonza |
|
@antgonza I see some errors in your build. After a quick look, they don't look like it's related to your changes, but we will need to investigate more. I pulled down your code and it looks good and works awesome! |
|
@antgonza @josenavas seeing the same thing over in #1172. |
|
Thanks for pointing that out. I'm wondering if one of our dependencies changed something, so that's why we are seeing that behavior... |
|
Ready for another review ... |
|
👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you log the error?
|
One comment, but looks good otherwise |
Adding the possibility of deleting analysis. The first step to be able to delete an analysis is to make sure it exists, thus also adding the exist function to the Analysis object.