Event Report PDF footer: show the SFM version that decoded the event, and label the received time #55

Open
opened 2026-10-27 11:43:23 -04:00 by serversdown · 0 comments
Owner

Summary

The Event Report PDF's footer reads Created: 10:16:54 October 23, 2026 • seismo-relay. Two things are wrong with it:

  1. It doesn't say which version decoded the event. A PDF outlives the software that made it, and recent releases changed the numbers it shows: geophone scale in 0.26.0, Series-4 scale in 0.30.0, event times in 0.32.0. With the version printed, a reader holding an old PDF can tell whether it predates a fix. Blastware's own reports carry "PC SW Version" for the same reason.
  2. "Created:" isn't when the PDF was created, nor the event time. It's the DB row's created_at, the moment SFM first received the event. Example: BE12844/N844LTIK.930W triggered at 10:10:15 on 2026-10-23, and its footer says "Created: 10:16:54", which is the call-home delay.

The tool that handles events and units is SFM, so the PDF should say SFM, not seismo-relay.

Proposed footer

Received: 10:16:54 October 23, 2026 • SFM 0.32.0

Details

  • Where: sfm/report_pdf.py, the page footer around line 372 (f"Created: {created_local} • seismo-relay").
  • Which version: the version that decoded the event, taken from the sidecar's source.tool_version. That's the value Terra-View's event modal shows as "Tool version". Not the TOOL_VERSION of the SFM rendering the PDF: the PDF is rendered on every request, so the renderer can be newer than the decode, and the decode is what determined the numbers.
  • No version recorded (old sidecars): print just SFM. Don't guess a version.
  • Label: Created: → Received:. The field is unchanged: it's still the row's created_at. v0.32.0's restamp keeps that field when it moves a row to the corrected event time, so it still means "first received".

Tests

  • A sidecar with source.tool_version = "0.32.0" → footer contains Received: and SFM 0.32.0, and no seismo-relay.
  • A sidecar with no tool_version → footer ends • SFM.

No codec, store or DB change; render-only.

## Summary The Event Report PDF's footer reads `Created: 10:16:54 October 23, 2026 • seismo-relay`. Two things are wrong with it: 1. **It doesn't say which version decoded the event.** A PDF outlives the software that made it, and recent releases changed the numbers it shows: geophone scale in 0.26.0, Series-4 scale in 0.30.0, event times in 0.32.0. With the version printed, a reader holding an old PDF can tell whether it predates a fix. Blastware's own reports carry "PC SW Version" for the same reason. 2. **"Created:" isn't when the PDF was created**, nor the event time. It's the DB row's `created_at`, the moment SFM first received the event. Example: `BE12844/N844LTIK.930W` triggered at 10:10:15 on 2026-10-23, and its footer says "Created: 10:16:54", which is the call-home delay. The tool that handles events and units is **SFM**, so the PDF should say SFM, not seismo-relay. ## Proposed footer `Received: 10:16:54 October 23, 2026 • SFM 0.32.0` ## Details - **Where:** `sfm/report_pdf.py`, the page footer around line 372 (`f"Created: {created_local} • seismo-relay"`). - **Which version:** the version that **decoded** the event, taken from the sidecar's `source.tool_version`. That's the value Terra-View's event modal shows as "Tool version". Not the `TOOL_VERSION` of the SFM rendering the PDF: the PDF is rendered on every request, so the renderer can be newer than the decode, and the decode is what determined the numbers. - **No version recorded** (old sidecars): print just `SFM`. Don't guess a version. - **Label:** `Created:` → `Received:`. The field is unchanged: it's still the row's `created_at`. v0.32.0's restamp keeps that field when it moves a row to the corrected event time, so it still means "first received". ## Tests - A sidecar with `source.tool_version = "0.32.0"` → footer contains `Received:` and `SFM 0.32.0`, and no `seismo-relay`. - A sidecar with no `tool_version` → footer ends `• SFM`. No codec, store or DB change; render-only.
serversdown added the Kind/Enhancement
Priority
Low
4
labels 2026-10-27 11:43:23 -04:00
Sign in to join this conversation.