-
Notifications
You must be signed in to change notification settings - Fork 80
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
Transactionaize patches and environment mgr #1337
Transactionaize patches and environment mgr #1337
Conversation
@antgonza @squirrelo this is ready for review. |
'SELECT f.* from qiita.filepath f JOIN qiita.analysis_filepath afp ON ' | ||
'f.filepath_id = afp.filepath_id') | ||
# retrieve relative filepaths as dictionary for matching | ||
mountpoints = {m[1].rstrip('/\\'): m[0] for m in get_mountpoint( |
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.
nice!
👍 if tests pass |
errors were with my friend flake8 |
@@ -101,18 +103,21 @@ def _add_ontology_data(conn): | |||
raise IOError("Error: Could not fetch ontologies file from %s" % |
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.
This part should probably also be in the TRN, since it can fail and cause rollback.
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.
Not needed. If this is the first function, the transaction didn't even started. If another function inside a transaction is calling this, that other context will catch it and rollback.
few comments. |
@squirrelo comments answered |
👍 |
Transactionaize patches and environment mgr
Modifies the patches and the environment manager to use transactions.
Few notes: