You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LazyToolBox: stamp + restore tool_shed metadata for shed installs
Verified locally with
``./run_tests.sh -integration ... test_only_latest_version_in_panel_fastp``
under ``GALAXY_CONFIG_OVERRIDE_USE_LAZY_TOOLBOX=true``: passes.
Two fixes for the lazy shed-install path:
1. The install path's tool_shed metadata extraction
(``tool_shed``/``repository_name``/``repository_owner``/
``installed_changeset_revision``) used ``hasattr(item, "findtext")``,
but ``item`` is a ``ToolConfItem`` wrapper (no ``findtext`` —
the underlying XML is reachable via ``item.elem`` gated by
``item.has_elem``). The hasattr check always failed, so none of
the metadata ever landed on the index entry.
2. ``_create_tool_from_stored_source`` now hands the matching
installed ``ToolShedRepository`` to the Tool ctor when the stored
id is a guid. ``Tool.populate_tool_shed_info`` then sets
``self.tool_shed`` / ``repository_name`` / ``changeset_revision``
so ``Tool.to_dict`` populates the ``tool_shed_repository`` key in
the API response. Without this,
``test_only_latest_version_in_panel_fastp`` raised
``KeyError: 'tool_shed_repository'`` even after ``tools[0]``
pointed at the correct fastp guid.
0 commit comments