make-models-fair / make-models-fair.github.io

Website for the Making 100+ Models FAIR initiative
https://tobefair.org
Creative Commons Zero v1.0 Universal
0 stars 2 forks source link

feature: dynamically updating tables for model status #2

Open kaclaborn opened 2 years ago

kaclaborn commented 2 years ago

Is there a way to make the tables displaying the publications / models dynamically update their "status" column based on a label, tag, etc. in the model repo issue tracker?

alee commented 2 years ago

I think it's possible, though we'd need to design it carefully. One possible avenue is to periodically download a well-known JSON or CSV file in the model repository and use it as the "source of truth" for its status. So something like

https://github.com/comses-education/chime-abm/blob/ec934958b40721bfa82b0c909b657eda68174778/county-evacuation.csv (permalink)

or

https://github.com/comses-education/chime-abm/blob/main/county-evacuation.csv

as the always "up-to-date" link.

See also:

https://discourse.gohugo.io/t/dynamic-api-driven-content/7499/14

https://gohugo.io/templates/data-templates/#data-driven-content

especially https://gohugo.io/templates/data-templates/#get-remote-data