OneZoom / tree-build

Scripts for assembling the tree, metadata and downstream data products such as popularity and popular images
MIT License
1 stars 2 forks source link

Rename previous filtered files rather than overwrite them #95

Closed davidebbo closed 1 week ago

davidebbo commented 1 month ago

From @hyanwong in https://github.com/OneZoom/tree-build/issues/64#issuecomment-2198601296:

At the moment the generate_filtered_files script creates a file called e.g. OneZoom_latest-all.json. I wonder if instead, it should create a file called OneZoom_2024-30-04_HH-MM-all.json and a symlink called OneZoom_latest-all.json. That way we don't overwrite the older filtered JSON file.

Alternatively if we find an outdated OneZoom_latest-all.json, we could move the older one to an _oldversion-YYYY-MM-DD version.

davidebbo commented 1 month ago

Renaming the older file is I think simplest.

davidebbo commented 3 weeks ago

@hyanwong I created #98 for this. PTAL.