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

Refactor upload.py toward reuse #5229

Merged
merged 4 commits into from
Dec 18, 2017
Merged

Conversation

jmchilton
Copy link
Member

Small refactorings from #5220 that make uploady.py a little more decomposable, a little more clean, a just a bit more efficient.

@jmchilton jmchilton added area/upload kind/refactoring cleanup or refactoring of existing code, no functional changes labels Dec 15, 2017
@galaxybot galaxybot added this to the 18.01 milestone Dec 15, 2017
@dannon dannon merged commit 6bf5d66 into galaxyproject:dev Dec 18, 2017
@@ -76,7 +82,7 @@ def add_file(dataset, registry, json_file, output_path):
line_count = None
converted_path = None
stdout = None
link_data_only = dataset.get('link_data_only', 'copy_files')
link_data_only = dataset.get('link_data_only', 'copy_files') != 'copy_files'
Copy link
Member

Choose a reason for hiding this comment

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

I think we should check that the value is in ('link_data_only', 'copy_files').

Copy link
Member Author

Choose a reason for hiding this comment

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

I've included this check in #5220 - I'm not sure that PR will make 18.01 so if you believe this is urgent I can backport it into its own PR.

Copy link
Member

Choose a reason for hiding this comment

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

That's fine for me, thanks @jmchilton!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/upload kind/refactoring cleanup or refactoring of existing code, no functional changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants