diff options
| author | Taras Madan <tarasmadan@google.com> | 2025-04-07 10:16:17 +0200 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2025-04-07 09:56:27 +0000 |
| commit | a2ada0e73dabbcf555e77b26a3e4ee3455dfd3e7 (patch) | |
| tree | 358ab2cb4fa82cb2fb3a1d5c9004c3b27928997e /dashboard/app | |
| parent | 8aa6ae9a6c3f7238ce12c012c6917f7c0bb428cc (diff) | |
dashboard/app: allow quarter coverage analysis
It was previously disabled because line coverage required data from BigQuery.
It was too expensive.
Coverage numbers are available in the Spanner now.
Diffstat (limited to 'dashboard/app')
| -rw-r--r-- | dashboard/app/coverage.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dashboard/app/coverage.go b/dashboard/app/coverage.go index 4c83f299f..68f5459c4 100644 --- a/dashboard/app/coverage.go +++ b/dashboard/app/coverage.go @@ -87,8 +87,10 @@ func handleHeatmap(c context.Context, w http.ResponseWriter, r *http.Request, f if periodType == "" { periodType = coveragedb.DayPeriod } - if periodType != coveragedb.DayPeriod && periodType != coveragedb.MonthPeriod { - return fmt.Errorf("only day and month are allowed, but received %s instead, %w", + if periodType != coveragedb.DayPeriod && + periodType != coveragedb.MonthPeriod && + periodType != coveragedb.QuarterPeriod { + return fmt.Errorf("only 'day', 'month' and 'quarter' are allowed, but received %s instead, %w", periodType, ErrClientBadRequest) } |
