Update to v0.22.0 #30
Reference in New Issue
Block a user
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
v0.22.0 — 2026-07-03
Full-snapshot bundle support (SFM side). Adds the DB-snapshot, recent-waveform,
and gated-restore endpoints Terra-View drives to pull a complete prod→dev refresh
— the
seismo_relay.dbplus the waveform files behind recent events — in onepass. Pairs with Terra-View v0.17.0's "Create full snapshot (incl. SFM)"
control on Settings → Database. New logic lives in
sfm/db_snapshot.py, keptout of
server.pyso it's unit-testable without HTTP.Added
GET /db/snapshot— streams a WAL-safe point-in-time copy ofseismo_relay.db, taken through the SQLite online backup API (not a rawfile grab), so the download stays consistent even while the ACH server is
writing under WAL.
GET /db/waveforms/recent.zip?n=…— zips the on-disk files (event file.h5/ sidecar siblings) for the n most-recent events, arcname<serial>/<filename>, so a dev box can restore chart-openable events withouthauling the entire waveform store. Events with no resolvable files on disk
are skipped.
POST /db/restore— gated bySFM_DB_RESTORE_ENABLED(dormant → 404unless explicitly enabled; dev-only). Validates the uploaded DB first, takes
a WAL-safe
.pre-restore-<ts>safety backup of the current DB, then swaps inthe restored DB + waveforms. Zip entries are path-traversal-guarded before
extraction.
Fixed
/db/restoreruns itssynchronous DB/file work in a threadpool instead of
async def, so a largerestore can't stall inbound ACH connections or other API requests.