Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
paulzierep opened this issue Nov 7, 2024 · 4 comments
Labels
labs-engine Anything related to labs

Comments

@paulzierep
Copy link
Collaborator

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:

  • Show all tools from a community, but only add links to tools that are available on this server
  • Add a way to filter to only show the tools on that server
@paulzierep paulzierep added the labs-engine Anything related to labs label Nov 7, 2024
@paulzierep
Copy link
Collaborator Author

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
Copy link
Collaborator

neoformit commented Nov 15, 2024

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:

- title_md: How can I increase my storage quota?
description_md: >
Please submit a quota request if your Galaxy account reaches its data storage limit. Requests are usually provisioned quickly if you provide a reasonable use case for your request.
button_md: Request
button_link: "{{ quota_request_url }}"
exclude_from:
- usegalaxy.org

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

@nomadscientist
Copy link
Collaborator

  1. Why are you putting the whole Catalog tool table on labs? That's excessive when there's also a Tool Panel.

  2. I absolutely think that any tools missing that are explicitly linked in the curated Lab and/or Galaxy Training section should send some sort of alert to the admin upon spinning up a lab to tell them to install that tool. This is a fantastic idea.

  3. I think that the CoDex/Labs section should contain generalised, not server-specific, tool panel. Then individual servers, if they choose not to install all those tools, can overwrite it with their own set-up however they choose. But that shouldn't be in the CoDex.

  4. Exclude from is a GREAT shout.

@neoformit
Copy link
Collaborator

  1. Sounds like a good idea, though not easy to implement because the Labs Engine doesn't have a contact email for each lab. Two solutions came to mind and this is the one I liked most:
  • An additional URL parameter &test_tools=true that can be added to a Lab URL and would display the results in the browser in real-time. You could just send that URL to the Galaxy admin to share the report with them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
labs-engine Anything related to labs
Projects
None yet
Development

No branches or pull requests

3 participants