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

BUG: Return empty list if resolve_all() has failed #3746

Merged
merged 2 commits into from
Mar 14, 2017

Conversation

mvdbeek
Copy link
Member

@mvdbeek mvdbeek commented Mar 13, 2017

This should solve the problems pointed out by 👀 @nsoranzo
introduced in #3725.
This commit also clarifies this behaviour in the docstrings.

This should solve the problems pointed out by 👀 @nsoranzo
introduced in galaxyproject#3725.
This commit also clarifies this behaviour in the docstrings.
Unsuccessfull attempts should return an empty list.

:param requirements: list of tool requirements
:param type: [ToolRequirement] or ToolRequirements
Copy link
Member

Choose a reason for hiding this comment

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

Can you insert a blank line and then :returns: list of resolved dependencies?

Also, the current implementation does not support ToolRequirements yet, I think, is that a future plan?

Copy link
Member Author

Choose a reason for hiding this comment

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

We are currently passing in ToolRequirements instances. The requirements attribute in Tool instances are instances of ToolRequirements objects ( https://github.com/galaxyproject/galaxy/blob/dev/lib/galaxy/tools/deps/requirements.py#L225). So we support both lists of ToolRequirement instances and ToolRequirements instances, but I think we are usually not using lists of ToolRequirement instances.

@martenson martenson merged commit 7d08f8f into galaxyproject:dev Mar 14, 2017
@martenson
Copy link
Member

Thanks to both of you @mvdbeek @nsoranzo !

@mvdbeek mvdbeek deleted the resolve_all_fix_3725 branch June 12, 2018 13:01
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.

3 participants