bioimage-io / bioimageio-uploader

1 stars 2 forks source link

Add querying version numbers / getting staging version for a resource #56

Closed jmetz closed 4 months ago

jmetz commented 7 months ago

As discussed with @FynnBe , this is likely to require a versions.json (or similar) at each resource's root, listing the versions and their publishing status.

@FynnBe @oeway :

What structure would you think is best for such a file?

I'm currently thinking:

{
    "1": "published", 
    "2": "staging", 
}
FynnBe commented 7 months ago

btw, we should keep the following scenario in mind:

  1. user uploads a staged model
  2. CI starts testing model
  3. user edits staged model
  4. CI finishes
  5. maintainer sees CI result of outdated version
FynnBe commented 7 months ago

one possible solution to this is to use additional status values, but it would be nice to keep it as simple as possible.

jmetz commented 7 months ago

So like "testing" - to indicate it's locked for editing or something?

jmetz commented 7 months ago

Which would mean a user can't edit their staged model until the CI ends.. not ideal, but possibly better than the alternative?

jmetz commented 7 months ago

I think we should keep it simple - a user can edit their staged entry, and the fact that that will possibly waste a bit of reviewer time is what it is.. 🤷

jmetz commented 7 months ago

This now depends also on https://github.com/bioimage-io/bioimageio-uploader/issues/59

jmetz commented 4 months ago

closed with 48a39ba

jmetz commented 4 months ago

This was done in https://github.com/bioimage-io/collection