-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix collection type drag and drop validation
The legacy form allowed users to drag non-collection datasets into collection inputs. The selected value wouldn't actually visibly change, but if a user hits run the value would actually be submitted, leading to https://sentry.galaxyproject.org/share/issue/2d1ada39ae9e4ba4952815ac07b2df47/: ``` AttributeError: 'HistoryDatasetAssociation' object has no attribute 'collection' File "galaxy/tools/__init__.py", line 1969, in handle_single_execution rval = self.execute( File "galaxy/tools/__init__.py", line 2066, in execute return self.tool_action.execute( File "galaxy/tools/actions/__init__.py", line 426, in execute ) = self._collect_inputs(tool, trans, incoming, history, current_user_roles, collection_info) File "galaxy/tools/actions/__init__.py", line 360, in _collect_inputs inp_data, all_permissions = self._collect_input_datasets( File "galaxy/tools/actions/__init__.py", line 300, in _collect_input_datasets tool.visit_inputs(param_values, visitor) File "galaxy/tools/__init__.py", line 1793, in visit_inputs visit_input_values(self.inputs, values, callback) File "galaxy/tools/parameters/__init__.py", line 211, in visit_input_values visit_input_values( File "galaxy/tools/parameters/__init__.py", line 227, in visit_input_values callback_helper( File "galaxy/tools/parameters/__init__.py", line 162, in callback_helper new_value = callback(**args) File "galaxy/tools/actions/__init__.py", line 246, in visitor collection = value.collection ```
- Loading branch information
Showing
2 changed files
with
111 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters