iobio / gene.iobio

Gene.iobio vue
MIT License
55 stars 11 forks source link

Simplify code that specified the URL for the iobio gru backend for gene.iobio launched from Mosaic #1045

Open tonydisera opened 4 months ago

tonydisera commented 4 months ago

There are a number of installs of Mosaic now (Utah, UDN) and private installs of gene.iobio (Nebula).

Simplify code and get rid of hubToIobioSources lookup table which is confusing.

https://github.com/iobio/gene.iobio/blob/841564d7aa9cc5c48df251dea7f810f7282a8c21/client/app/components/pages/GeneHome.vue#L911

This lookup table only determines the URL for public iobio services like geneinfo and phenolyzer; all other services are specified in models/Enpoint.js.

tonydisera commented 4 months ago

This needs to be addressed because when the lookup fails, it defaults to the default IOBIO backend, which is the public iobio gru backend (backend.iobio.io). This is not a problem, but it these requests should be handled by the same server as the other iobio services.