Skip to content

[26.1] Fix tool panel discover counts and recent tool version duplicates - #23045

Merged
bgruening merged 9 commits into
galaxyproject:release_26.1from
itisAliRH:fix/26.1-tool-panel-latest-favorites
Jul 3, 2026
Merged

[26.1] Fix tool panel discover counts and recent tool version duplicates#23045
bgruening merged 9 commits into
galaxyproject:release_26.1from
itisAliRH:fix/26.1-tool-panel-latest-favorites

Conversation

@itisAliRH

Copy link
Copy Markdown
Member

Fixes incorrect tool counts in the tool panel, discovers CTA, and duplicate-looking entries in My Tools recent tools.

The discover CTA was counting all installed tool entries from /api/tools?in_panel=false, which includes older tool versions. On UseGalaxy.eu, which produced Discover 16k+ Tools, while the displayed default panel contains about 4.2k unique tools.

This changes the count to use unique displayed tool IDs from panel data instead. It also fixes the My Tools view, where the header needs to count the default discoverable panel instead of the active my_panel data.

Recent tools now canonicalize stored Tool Shed version IDs to the version currently displayed in the panel, so a tool with multiple installed versions appears once, using the displayed/latest panel entry.

How to test the changes?

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. Start the client dev server against a Galaxy instance with multiple installed versions of the same Tool Shed tool.
    2. Open the tool panel default view and confirm the discover CTA shows the unique displayed panel count, e.g. Discover 4k+ Tools, not the full installed-version count.
    3. Switch to My Tools and confirm the discover CTA uses the same default panel count.
    4. Run a tool where multiple versions are installed and confirm Recent tools shows one entry for the displayed panel version.

Manual/API sanity check performed locally against usegalaxy.eu:

  • /api/tools?in_panel=false: 16613 entries
  • /api/tool_panels/default: 4290 unique displayed tool IDs
  • expected CTA: Discover 4k+ Tools

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

@github-project-automation github-project-automation Bot moved this to Needs Review in Galaxy Dev - weeklies Jul 1, 2026
@github-actions github-actions Bot changed the title Fix tool panel discover counts and recent tool version duplicates [26.1] Fix tool panel discover counts and recent tool version duplicates Jul 1, 2026
@github-actions github-actions Bot added this to the 26.2 milestone Jul 1, 2026
itisAliRH added 2 commits July 1, 2026 13:56
Cast JSON panel fixtures to ToolPanelItem and guard the first tool entry so vue-tsc passes in client linting CI.
@bgruening
bgruening merged commit 6d82ae4 into galaxyproject:release_26.1 Jul 3, 2026
28 of 29 checks passed
@github-project-automation github-project-automation Bot moved this from Needs Review to Done in Galaxy Dev - weeklies Jul 3, 2026
@github-actions github-actions Bot modified the milestones: 26.2, 26.1 Jul 3, 2026
@itisAliRH
itisAliRH deleted the fix/26.1-tool-panel-latest-favorites branch July 3, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

2 participants