You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a release_definitions table to store release metadata (GA dates,
development start dates, previous release, capabilities, product, status)
that was previously only available in BigQuery. This eliminates the BQ
dependency for the /api/releases endpoint and removes the hardcoded
releaseMetadata map from the PostgreSQL data provider, which required
manual updates for each new release.
Key changes:
- Add ReleaseDefinition model with capability constants and HasCapability
method
- Add release-definitions loader (--loader release-definitions) that
fetches from BQ and syncs to PG via upsert
- getReleases() in the server prefers PG, falls back to BQ
- PG data provider QueryReleases() reads from release_definitions instead
of deriving from prow_jobs + hardcoded map
- Seed data populates release_definitions for local development
- Fix stale "from big query" error messages in server.go
Ref: TRT-2734
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
fs.BoolVar(&f.InitDatabase, "init-database", false, "Migrate the DB before loading")
103
-
fs.StringArrayVar(&f.Loaders, "loader", []string{"prow", "releases", "jira", "github", "bugs", "test-mapping", "feature-gates"}, "Which data sources to use for data loading")
104
+
fs.StringArrayVar(&f.Loaders, "loader", []string{"release-definitions", "prow", "releases", "jira", "github", "bugs", "test-mapping", "feature-gates"}, "Which data sources to use for data loading")
104
105
fs.StringArrayVar(&f.Releases, "release", f.Releases, "Which releases to load (one per arg instance)")
105
106
fs.StringArrayVar(&f.Architectures, "arch", f.Architectures, "Which architectures to load (one per arg instance)")
106
107
fs.StringVar(&f.JobVariantsInputFile, "job-variants-input-file", "expected-job-variants.json", "JSON input file for the job-variants loader")
0 commit comments