feat(store): default backfill horizon to 90 days
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -26,8 +26,8 @@ func TestProfile_DefaultsThenUpdate(t *testing.T) {
|
||||
if p.WarmupMinutes != 10 || p.CooldownMinutes != 5 {
|
||||
t.Errorf("phase-minute defaults = %+v, want warmup=10, cooldown=5", p)
|
||||
}
|
||||
if p.BackfillHorizonDays != 1095 {
|
||||
t.Errorf("BackfillHorizonDays = %d, want 1095 (migration default)", p.BackfillHorizonDays)
|
||||
if p.BackfillHorizonDays != 90 {
|
||||
t.Errorf("BackfillHorizonDays = %d, want 90 (schema default)", p.BackfillHorizonDays)
|
||||
}
|
||||
if p.MinRepresentativePaceSecPerKm != 720 || p.MinRepresentativeTimeSeconds != 3 {
|
||||
t.Errorf("pace artifact filter defaults = %+v, want pace=720, time=3", p)
|
||||
|
||||
@@ -40,7 +40,7 @@ CREATE TABLE profile (
|
||||
-- BackfillHorizonDays bounds how far back "Sync now" reaches when
|
||||
-- walking backward from today; read fresh on every sync (not cached at
|
||||
-- server startup), so changing it here takes effect on the next click.
|
||||
backfill_horizon_days INTEGER NOT NULL DEFAULT 1095,
|
||||
backfill_horizon_days INTEGER NOT NULL DEFAULT 90,
|
||||
max_heart_rate REAL,
|
||||
resting_heart_rate REAL,
|
||||
hr_zone1_min_pct REAL NOT NULL DEFAULT 50,
|
||||
|
||||
@@ -45,7 +45,7 @@ CREATE TABLE profile (
|
||||
-- BackfillHorizonDays bounds how far back "Sync now" reaches when
|
||||
-- walking backward from today; read fresh on every sync (not cached at
|
||||
-- server startup), so changing it here takes effect on the next click.
|
||||
backfill_horizon_days INTEGER NOT NULL DEFAULT 1095,
|
||||
backfill_horizon_days INTEGER NOT NULL DEFAULT 90,
|
||||
max_heart_rate REAL,
|
||||
resting_heart_rate REAL,
|
||||
hr_zone1_min_pct REAL NOT NULL DEFAULT 50,
|
||||
|
||||
Reference in New Issue
Block a user