galaxyproject / galaxy_codex

Galaxy Communities Dock aka Galaxy Codex: catalog of Galaxy resources (tools, training, workflows)
https://galaxyproject.github.io/galaxy_codex/
MIT License
8 stars 15 forks source link

Logic to only add open link to tools that are available on the lab server #229

Open paulzierep opened 1 week ago

paulzierep commented 1 week ago

Despite our best efforts, there will be servers that will not install all tools for all communities. We cannot fix that on our side. So once the tool table is available in the labs, there should be a logic to handle that. Some ideas from my side:

paulzierep commented 3 days ago

I assume we would need to create one tools section for each server. And then only put links that work on that server. Is there a way to use a different section depending on the server ? @neoformit ?

neoformit commented 3 days ago

A way to filter only the tools on that server

I think this is the right thing to do, showing tools that aren't installed would be annoying as a user.

I think you're looking for the (currently undocumented) exclude_from key:

https://github.com/galaxyproject/galaxy_codex/blob/dda9c0d2a4c479d559fdc9a786c05738d66cf298/communities/spoc/lab/sections/1_beginner.yml#L212-L218

This can be used to exclude specific blocks of the Sections data from particular hostname(s).