[23.2] Fix tools missing in panel bug #17192
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Some tools would be filtered out from the tool panel needlessly when organizing the
ToolPanel
inPanels/utilities.ts
.This was caused due to the mistake of filtering out cases where tools had the same exact name+description, which is something we shouldn't have done because different id = different tool.
For example, because of this bug, we had FastQC Read Quality reports missing, although, Porechop adapter trimmer for Oxford Nanopore reads was found in the panel, even though both tools had multiple occurrences in the toolsList with same name+desc. What caused this:
toolsById
...)api/tool_panels/default
structure to display the tool panel, where in the case of FastQC, we didn't have the latest tool id intoolsById
, and in the case ofPorechop
we just happened to store the latest tool id (by chance of the ordering of the toolsList) intoolsById
How to test the changes?
(Select all options that apply)
License