Skip to content

Conversation

@antgonza
Copy link
Member

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.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.13%) to 79.16% when pulling 0a54881 on antgonza:delete-analysis into da407f6 on biocore:master.

Copy link
Contributor

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.

Copy link
Member Author

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.

Copy link
Member Author

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.

Copy link
Contributor

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.

@josenavas
Copy link
Contributor

Few comments @antgonza

@josenavas
Copy link
Contributor

@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!

@adamrp
Copy link
Contributor

adamrp commented May 13, 2015

@antgonza @josenavas seeing the same thing over in #1172.

@josenavas
Copy link
Contributor

Thanks for pointing that out. I'm wondering if one of our dependencies changed something, so that's why we are seeing that behavior...

@adamrp
Copy link
Contributor

adamrp commented May 16, 2015

@antgonza There are merge conflicts here, which is preventing auto-merge, which is preventing the fixes in #1186 from being applied before the test suite runs. Fixing the merge conflicts should resolve the issue.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.12%) to 79.16% when pulling 6619434 on antgonza:delete-analysis into 2d71d7d on biocore:master.

@antgonza
Copy link
Member Author

Ready for another review ...

@josenavas
Copy link
Contributor

👍

Copy link
Contributor

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?

@adamrp
Copy link
Contributor

adamrp commented May 18, 2015

One comment, but looks good otherwise

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.14%) to 79.14% when pulling 7e22a62 on antgonza:delete-analysis into 2d71d7d on biocore:master.

adamrp added a commit that referenced this pull request May 19, 2015
@adamrp adamrp merged commit 93fbd89 into qiita-spots:master May 19, 2015
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

Successfully merging this pull request may close these issues.

4 participants