galaxyproject / galaxy-hub

Galaxy Community Hub
https://galaxyproject.org/
Other
99 stars 276 forks source link

Add geolocation by country for UseGalaxy geographies outside of Main UseGalaxy Sites #2435

Open hujambo-dunia opened 7 months ago

hujambo-dunia commented 7 months ago

@bebatut:

Screenshot 2024-02-21 at 16 50 48

also what is the criteria to be in the list? Could usegalaxy FR be there too?

Glossary:

  1. "Main UseGalaxy Sites" - defined as the 3 UseGalaxy.* sites (US, EU, AU) as of Feb 28, 2024
hujambo-dunia commented 7 months ago

As a reminder, current implementation of UseGalaxy dropdown-button is client-side "simulated geolocation" by UTC time which requires no additional third-party connection or technology outside of user's browser. Please be aware that some enterprise-level (ie. real) geolocation involves third-party geolocation (or "share your current location" dialog boxes).

bebatut commented 7 months ago

Glossary:

  1. "Main UseGalaxy Sites" - defined as the 3 UseGalaxy.* sites (US, EU, AU) as of Feb 28, 2024

Where is this definition? I can not find it in the Glossary: https://galaxyproject.org/get-started/glossary/ But, FR is in the list of UseGalaxy Resources here: https://galaxyproject.org/use/

hexylena commented 7 months ago

Yes, I also find the "main sites" a confusing distinction given https://galaxyproject.org/usegalaxy/, if we wanted to separately class the "global region operators" or something, that could make sense? But we just need to clarify what the purpose of that menu is, is it to bring you to the closest usegalaxy.* (sure, fine, "usegalaxy" membership involves some commitment of functionality)

or is it just to drive traffic to a "world region operator", thus only including eu/au/us, in which case 'galaxy australia' should be 'asia/pacific' and 'europe' should probably be 'europe, middle east, and africa' to clarify whom that galaxy is for.

(love timezone based detection, how fun! and cookie/privacy intrusion free!)

hexylena commented 7 months ago

Alternative implementation of geolocation: request the favicon and see which arrives fastest! https://github.com/galaxyproject/training-material/pull/4758/commits/3597cbd837b55397b565858cd85d09c82c49c8d7

it'll be in a future version of my.galaxy.training :)

fr image took 49 ms to load [galaxy.html:265:10](http://localhost:4000/training-material/short/galaxy.html)
eu image took 923 ms to load [galaxy.html:265:10](http://localhost:4000/training-material/short/galaxy.html)
au image took 1066 ms to load [galaxy.html:265:10](http://localhost:4000/training-material/short/galaxy.html)
us image took 1230 ms to load

good job to the fr team for having such a responsive server (@abretaud @lecorguille) though paris is closer than freiburg for sure

hujambo-dunia commented 7 months ago

Glad to provide a little background. The existing state (in the context of the feature request only) was suggested by @hexylena at GOATS meeting on Jan 23, 2024 and verbally agreed upon by others at the meeting (US, EU, AU) who lacked a direct button to UseGalaxy.* on the Hub Home Page for years. If anyone wants to change the future state, feel free to assign this issue to a team member who wants to implement the change - at which point the "definition" would change.

hexylena commented 7 months ago

button to UseGalaxy.*

ok, so if the current state is just about UseGalaxy.* servers, then france should be there, as it meets the requirements, and is listed on the usegalaxy page, https://galaxyproject.org/usegalaxy/ and was listed there already on Feb 28, it's been there since a few days before christmas.

hexylena commented 7 months ago

(Just don't want our server admins who worked hard to meet dot-star requirements to feel left out, if it's about dot-star. If the button definition currently is not dot-star we should clarify that, is all.)