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

Fix uploads of link-only datasets to data library #5917

Merged
merged 2 commits into from Apr 19, 2018

Conversation

mvdbeek
Copy link
Member

@mvdbeek mvdbeek commented Apr 18, 2018

ext was never being set in the case of link only datasets, where I think the
right thing is to fall back on dataset.file_type.
Fixes #5915.

@@ -175,7 +175,7 @@ def add_file(dataset, registry, output_path):
stdout = ("The uploaded binary file format cannot be determined automatically, please set the file 'Type'"
" manually")

datatype = registry.get_datatype_by_extension(ext)
datatype = registry.get_datatype_by_extension(ext or dataset.file_type)
Copy link
Member

Choose a reason for hiding this comment

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

Or we can add:

    else:
        ext = dataset.file_type

after line 151, so ext is always set after that block.

`ext` was never being set in the case of link only datasets, where I think the
right thing is to fall back on `dataset.file_type`.
Fixes galaxyproject#5915.
since it is being used again later. Thanks @nsoranzo!
@dannon dannon merged commit 43c4180 into galaxyproject:dev Apr 19, 2018
@martenson
Copy link
Member

thanks guys!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants