gbif / portal16

GBIF.org website
https://www.gbif.org
Apache License 2.0
24 stars 15 forks source link

"Understood" twice, click to download three times? #1849

Open gbif-portal opened 1 year ago

gbif-portal commented 1 year ago

"Understood" twice, click to download three times?

For the course task, I am requesting a species list of Bombus in Bulgaria. The reminder about DOIs etc. comes after you click "species list", but download is not triggered after "understood" , but what happens instead is "understood" -> "Species list" - warning again -> "understood" -> "Species list" -> and only then you see "Under processing" screen, which feels weird. This is an area with poor internet, if it matters


Github user: @dschigel User: See in registry - Send email System: Chrome 112.0.0 / Windows 10.0.0 Referer: https://www.gbif.org/occurrence/download/0175425-230224095556074 Window size: width 1536 - height 758 API log&_a=(columns:!(_source),filters:!(),index:'3390a910-fcda-11ea-a9ab-4375f2a9d11c',interval:auto,query:(language:kuery,query:''),sort:!())) Site log&_a=(columns:!(_source),filters:!(),index:'5c73f360-fce3-11ea-a9ab-4375f2a9d11c',interval:auto,query:(language:kuery,query:''),sort:!())) System health at time of feedback: OPERATIONAL

MortenHofft commented 1 year ago

Thanks. That makes sense. The issue is indeed the slow connection and a lack of lock screen. Because the response takes a while to come back, the redirect takes a while to happen. And in the mean time the screen isn't locked so you are tempted to start a new download, and then a new, and then a new.

Of course I can tell for sure if that is what happened in your case, but it would explain it.

dschigel commented 1 year ago

I agree, it sounds very likely - it does though translate in an unprofessional image when we teach GBIF in the low internet environs. A funny thought - when GBIF services and tools are tested, do we need a run in low speed, braking, low bandwidth connection conditions? There must be way to emulate this? Could be important to avoid "GBIF for optic fiber only"

MortenHofft commented 1 year ago

A loader is always a good idea, but for context the response is 25 bytes and the request even smaller. It is extremely small. I suspect many websites will behave oddly under those circumstances. I'm surprised the website as a whole is at all usable under those circumstances to be honest.

It is an interesting idea to have a minimal website for those cases, but pure API responses are probably smallest