Skip to content

v1.3.0 - Progress, realistic elevation and release image tags

Latest

Choose a tag to compare

@sjefferson99 sjefferson99 released this 16 Nov 22:17
· 15 commits to main since this release
97a0ce4

What's Changed

⚠️ Upgrade notes

Server image tags: :latest now means the newest release (#220)
Who: server admins using the published image (e.g. deploy/standalone-tls).
Until now :latest followed every change merged to main. From this release it moves only when a release is published, and main is published as :edge instead.

  • Most people: nothing to do. :latest stays the default.
  • To keep following main: set SR_IMAGE_TAG=edge in your .env (or change your own compose file's tag to :edge), then docker compose pull app && docker compose up -d.
  • To pin a version: SR_IMAGE_TAG=1.3.0 (never moves) or SR_IMAGE_TAG=1.3 (patch releases only).
  • Take a backup before switching from edge back to latest. An edge build can migrate your database ahead of the newest release, and the older image then refuses to start. Restore the backup, or stay on edge until the next release catches up.

Stored activities are re-analysed on the first start (#183, #185, #191, #194)
Who: server admins and app users.
Several changes alter what the server works out from each GPX, so the first start after upgrading re-analyses every activity (analysis version 14). With SR_AUTO_REANALYZE on (the default) this happens by itself, in the background while the site is already up (#215). Each activity shows its old analysis until its turn; about 300 activities take under a minute. With it off, run simple-activity-tracker-server reanalyze --all. What changes on existing activities:

  • Split targets are judged within ±1.3% of the target instead of ±5%, so the on-target / too fast / too slow colours in history change (#183).
  • Elevation gain/loss is realistic, often much lower than before on long or slow activities, because GPS jitter is no longer counted as climbing (#185).
  • Split times use the same clock as Time (elapsed since Start, excluding pauses), so they add up to Time; most get slightly longer. Older activities don't record when Start, pauses and Stop happened, so theirs are rebuilt from the GPS fixes and may not match the phone exactly (#191).
  • Progress records are worked out from the new best-effort distances (#194).

Update the app too (#183, #185, #191)
Who: app users. The app and server can be updated in either order, but update both so live and history figures agree. Live split-target beeps now wait until 30 s into each split, and a split that's on target stays green unless it drifts clearly out of the band, so expect far fewer beeps. The live cycling "Elevation gain" tile uses the server's calculation.

Virtual rides imported from Strava before this release (#194)
Who: users with Strava imports. These weren't flagged as virtual, because Strava's type wasn't stored. Open each Zwift/ROUVY (or other indoor) ride and tick Virtual or indoor, or it will hold your cycling records. New imports are flagged automatically.

Backups now rotate (#211)
Who: server admins. The server no longer takes a backup on every start, only before applying a migration, and after any backup it deletes older backup-<timestamp> folders beyond SR_BACKUP_KEEP (default 5).

  • If you keep more than 5 local backups, or copy them off-site less often than that, set SR_BACKUP_KEEP in .env (0 keeps everything).
  • To clear out a backlog from earlier versions, take one manual backup, which also prunes:
    docker compose run --rm app simple-activity-tracker-server backup /backups
  • Folders not named backup-<timestamp> (e.g. 20260903_181135 from the earliest backup code) are never removed automatically; delete them by hand if you don't need them.

Optional: terrain height correction (#185)
Who: server admins. Set SR_TERRAIN_CORRECTION=true in .env to correct recorded heights to terrain data (off by default). It needs outbound HTTPS and tells the tile host (Amazon, unless you set SR_TERRAIN_TILE_URL to a mirror) which ~100 km areas your activities are in, never routes or users. See deploy/.env.example.

Enhancements

  • Progress page: personal records, trends, period totals and PR badges on activities (#194)
  • Realistic elevation gain, matching between the live tile and the server, plus optional terrain height correction (#185)
  • Fairer split targets: a tighter ±1.3% band with live hysteresis and fewer beeps (#183)
  • Lock to portrait setting in the app (#182)
  • Steadier live speed readout, calibrated from the phone's own speed measurements (#217)
  • :edge image for testers and pinnable X.Y.Z / X.Y tags; :latest now follows releases (#220)

Bug fixes

  • Split times now add up to Time and match a stopwatch (#191)
  • An activity can no longer get stuck on "Uploading…" (#180)
  • Re-analysis on upgrade runs in the background, so a large history no longer leaves the server unhealthy at startup; progress is kept if it's interrupted (#215)
  • Backups are taken only when there's a migration to apply, and old ones are rotated instead of piling up (#211)
  • Starting an older server against a database a newer version already upgraded now stops with a clear message, instead of crash-looping and rotating away the backups you'd need to roll back (#219)

Dependencies

  • SQLAlchemy 2.1.4 (#171, #210)
  • nginx 1.29 in the standalone deployment (#169)
  • Combined Dependabot updates for the server, mobile app and CI actions (#208, #209), plus individual CI action and tooling bumps (#147, #148, #149, #187, #196, #197, #198)

Housekeeping

  • SR_BACKUP_KEEP documented in deploy/.env.example (#214)
  • iOS build housekeeping: CocoaPods xcconfig includes, and captures/ ignored (#193)

Full Changelog: v1.2.6...v1.3.0