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

Data objects #75

Merged
merged 43 commits into from
Jun 11, 2014
Merged

Data objects #75

merged 43 commits into from
Jun 11, 2014

Conversation

josenavas
Copy link
Contributor

Fixes #54
Fixes #48
Fixes #47
Fixes #46

Introduces the raw/preprocessed/processed data objects. As discussed offline with @adamrp, since the database is aware of filepaths

…submitted_to_insdc methods, as well as adding their tests
@coveralls
Copy link

Coverage Status

Coverage increased (+12.19%) when pulling eb11486 on josenavas:data_obj into d1d64e1 on biocore:master.

@josenavas
Copy link
Contributor Author

This is ready for review/merge!!! Any takers?

"INSERT INTO qiita.{0} (filepath, filepath_type_id, checksum, "
"checksum_algorithm_id) VALUES {1} "
"RETURNING filepath_id".format(self._filepath_table,
', '.join(values)))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be safer here to just use %s instead of direct values and add the values in using psycopg2.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I see, weird execute many for fetchall. Still would be good to use one of the escape functions to clean the values before entering them into the db.

@squirrelo
Copy link
Contributor

Just a couple comments. Let me know when I can do another review.

@josenavas
Copy link
Contributor Author

@squirrelo Ready for a new review.

@coveralls
Copy link

Coverage Status

Coverage increased (+12.67%) when pulling 55008f6 on josenavas:data_obj into d1d64e1 on biocore:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+12.67%) when pulling 55008f6 on josenavas:data_obj into d1d64e1 on biocore:master.

@squirrelo
Copy link
Contributor

👍

antgonza added a commit that referenced this pull request Jun 11, 2014
@antgonza antgonza merged commit ca276b7 into qiita-spots:master Jun 11, 2014
@josenavas josenavas deleted the data_obj branch June 11, 2014 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants