aces / cbrain-plugins-neuro

5 stars 20 forks source link

Different error messages for invalid OpenNeuro dataset name or version, and for those not yet deployed on Github #286

Open MontrealSergiy opened 5 months ago

MontrealSergiy commented 5 months ago

Sometimes in OpenNeuro the most recent versions is not represented by any tag in the corresponding GitHub repository, for example [ds003194 v1.0.4] (https://openneuro.org/datasets/ds003194/versions/1.0.4 ) updated 2022-09-20 while the corresponding Github repo was last updated in 2020 and end with tag 1.0.3 . There is at least another dataset with same glitch, ds003075. More, some OpenNeuro datasets do not have a single version on GitHub: see the OpenNeuro issue #3037 that tracks datasets not present on GitHub.

The present message is same for both cases of mistypes version and one that is not yet present on OpenNeuro.

This PR aims to give more appropriate message for both cases.

It seems like a OpenNeuro glitch, which we should escalate to their team, but OpenNeuro 'name and version' this issues may persist for a while.

To actually allows admin to download and configure dataset on alternative github organization/username see another PR #287

Note I downloaded v.1.0.4 using OpenNeuro client, and created my version of the DataLad repo at https://github.com/MontrealSergiy/ds003194

MontrealSergiy commented 5 months ago

Screenshot from 2024-06-18 14-01-27