-
Couldn't load subscription status.
- Fork 79
WIP: DB changes for EBI #1481
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
WIP: DB changes for EBI #1481
Conversation
|
What about transferring the error status from submitted_to_insdc_status? Currently, you are simply ignoring those. |
|
Is it useful? In the current deployed implementation it only reads |
|
Good point, we are not storing any useful information and the reason we need these changes ... |
…nto db-changes-ebi
|
One question. If all that block is tested 👍 |
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.
under the given column -> in column
As it stands it isn't incorrect, but it reads kinda funny.
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.
Done
|
Ok, I think I'm done with my review, should be ready to go afterwards. |
qiita_db/study.py
Outdated
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 just tested out a minimal example and this doesn't work , I think @antgonza once came up with a way to format data inside a docstring, can't remember where though.
(ipy)yoshikivazquezbaeza:qiita@db-changes-ebi$ python -c 'from py import fun; print help(fun)'
# should have displayed the help here, but it doesn't :(
(ipy)yoshikivazquezbaeza:qiita@db-changes-ebi$ cat py.py
def fun(x):
"""Lolercoaster
Has the following values {%s}
""".format(['foo', 'bar', 'baz'])
passThere 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.
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 for the link @antgonza fixed.
I think at some point we did it as I had it, but then we find out that it doesn't work.
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.
Great, thanks!
On (Oct-06-15|17:00), Jose Navas wrote:
return TRN.execute_fetchlast()
- @ebi_submission_status.setter
- def ebi_submission_status(self, value):
"""Sets the study's EBI submission status
Parameters
value : str {%s}The new EBI submission status
Raises
ValueErrorIf the status is not known""".format(', '.join(self._valid_ebi_status))Thanks for the link @antgonza fixed.
I think at some point we did it as I had it, but then we find out that it doesn't work.
Reply to this email directly or view it on GitHub:
https://github.com/biocore/qiita/pull/1481/files#r41338309
|
@ElDeveloper Only the expected qiita-pet errors here. There was a flake8 error but I fixed in my last push, so I don't think that is worth waiting for that one to be done to merge this. Thanks! |
This PR modifies the DB to store all the information that EBI returns when we are doing a submission.
Storing all this information (in the correct place) will help us to do a better usage of the EBI structure (which actually fits pretty nicely with our structure) as well as being able to do EBI updates in the future.
Tests are currently failing, and I'm fixing them right now.