[22.01] Do not store toolbox on ToolPanelViewSearch #13776
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.
For issue #13775
Updated tools have been disappearing from tool search results until the next time galaxy is restarted. The
ToolPanelViewSearch
hasself.toolbox
assigned in__init__
and this is not updated whenapp.toolbox
is updated for a new tool. The out of dateself.toolbox
is used in thebuild_index
function.This change is passing
app.toolbox
toToolBoxSearch.build_index
and passing it from there toToolPanelViewSearch.build_index
so that the newly installed tool can be found in the toolbox when the search index is updated. This is the only place whereToolPanelViewSearch.toolbox
is used soToolPanelViewSearch
does not needself.toolbox
.How to test the changes?
(Select all options that apply)
License