owid / etl

A compute graph for loading and transforming OWID's data
https://docs.owid.io/projects/etl
MIT License
85 stars 23 forks source link

Automatically archive grapher datasets after a data update #3554

Open pabloarosado opened 4 days ago

pabloarosado commented 4 days ago

Currently, as part of our data update workflow, we need to manually archive a grapher dataset after we have created a new version for it.

But (in principle) this could be done automatically after chart-sync is completed: If we have moved all indicators from one grapher dataset to its corresponding new version (and we have also checked that the indicators of the old grapher dataset are not used in any indicator-based explorer) we could also automatically set isArchived=1 on the old grapher dataset.

NOTE: After discussion, we thought it could be better to do it as part of the archiving CLI tool in ETL.

Technical notes