-
Notifications
You must be signed in to change notification settings - Fork 991
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 element_identifier unavailable with data_collection input param #2570
Conversation
It should be fixed now, and it turns out it had nothing to do with conditionals |
@@ -307,7 +307,7 @@ def to_wrapper( dataset ): | |||
element = dataset | |||
dataset = element.dataset_instance | |||
kwargs["identifier"] = element.element_identifier | |||
return self._dataset_wrapper( dataset, dataset_paths, **kwargs ) | |||
return self._dataset_wrapper( dataset, dataset_paths, identifier = element_identifier, **kwargs ) |
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.
I don't think is needed, should be already done at line 309.
This looks good to me, should we merge @nsoranzo ? |
@@ -0,0 +1,15 @@ | |||
<tool id="identifier_conditional" name="identifier_conditional"> |
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.
Should this id be identifier_collection
? Seems more proper and it's what is used at https://github.com/galaxyproject/galaxy/pull/2570/files#diff-46fef38dde830e533e91e849d89bceabR809
If yes, also this file should be renamed and the change propagated to test/functional/tools/samples_tool_conf.xml
Thanks @abretaud! |
Thank you! |
Here's a (failing) test case for galaxyproject/tools-iuc/issues/857
I also added a small fix for an UnboundLocalError I encountered while writing it