-
Notifications
You must be signed in to change notification settings - Fork 24
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
Remove use of MetadataTableView in favor of utility functions #2927
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #2927 +/- ##
==========================================
- Coverage 60.46% 59.37% -1.1%
==========================================
Files 435 435
Lines 28434 27290 -1144
Branches 1279 1273 -6
==========================================
- Hits 17193 16203 -990
+ Misses 11241 11087 -154
Continue to review full report at Codecov.
|
refinery/data_set_manager/views.py
Outdated
@@ -169,72 +169,65 @@ def clean(self): | |||
"Please provide either a file or a URL") | |||
|
|||
|
|||
class MetaDataImportView(View): | |||
def import_by_file(_file): |
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.
Something more explicit like file_obj
instead of _file
?
refinery/data_set_manager/views.py
Outdated
error_msg, | ||
e.errno, | ||
e.filename, | ||
e.strerror |
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.
No extra line breaks necessary: error_msg, exc.errno, exc.filename, exc.strerror
refinery/data_set_manager/views.py
Outdated
temp_file_path = os.path.join(get_temp_dir(), _file.name) | ||
try: | ||
_handle_uploaded_file(_file, temp_file_path) | ||
except IOError as e: |
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.
exc
instead of e
MetadataTableView
was not actually aView