Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
fix(deps): bump gorilla/websocket past GO-2026-6278; fix an hour-boundary dashboard test (#11366)
kevin494469d7ec61
diff --git a/server/go.mod b/server/go.modindex 1274c16941..cc300e150f 100644--- a/server/go.mod+++ b/server/go.mod@@ -15,7 +15,7 @@ require (github.com/go-resty/resty/v2 v2.17.2github.com/golang-jwt/jwt/v5 v5.3.1github.com/google/uuid v1.6.0- github.com/gorilla/websocket v1.5.3+ github.com/gorilla/websocket v1.5.4-0.20240701034025-d67f41855da4github.com/jackc/pgx/v5 v5.11.0github.com/lmittmann/tint v1.2.0github.com/mattn/go-shellwords v1.0.14diff --git a/server/go.sum b/server/go.sumindex 0a607060a1..18cf0b93a1 100644--- a/server/go.sum+++ b/server/go.sum@@ -69,8 +69,8 @@ github.com/google/renameio v0.1.0 h1:GOZbcHa3HfsPKPlmyPyN2KEohoMXOhdMbHrvbpl2QaAgithub.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=-github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg=-github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=+github.com/gorilla/websocket v1.5.4-0.20240701034025-d67f41855da4 h1:PYKzliEgITjLJoJqbV90S0YRaG8LNAsICH6fp6MApC0=+github.com/gorilla/websocket v1.5.4-0.20240701034025-d67f41855da4/go.mod h1:r4w70xmWCQKmi1ONH4KIaBptdivuRPyosB9RmPlGEwA=github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM=diff --git a/server/internal/handler/dashboard_squad_integration_test.go b/server/internal/handler/dashboard_squad_integration_test.goindex b1fe27d2d2..8676b24659 100644--- a/server/internal/handler/dashboard_squad_integration_test.go+++ b/server/internal/handler/dashboard_squad_integration_test.go@@ -47,7 +47,10 @@ func TestDashboardSquadAttributionAndEndpoints(t *testing.T) {})now := time.Now().UTC()- hourBucket := now.Truncate(time.Hour)+ // The legacy bucket must share the hour of the leader's usage row, which+ // is not now's hour in the first minutes after the hour.+ leaderUsageAt := now.Add(-4 * time.Minute)+ hourBucket := leaderUsageAt.Truncate(time.Hour)started := now.Add(-15 * time.Minute)completed := now.Add(-5 * time.Minute) // 600s each@@ -80,8 +83,8 @@ func TestDashboardSquadAttributionAndEndpoints(t *testing.T) {"model": model,"input_tokens": 1000,"output_tokens": 200,- "created_at": now.Add(-4 * time.Minute),- "updated_at": now.Add(-4 * time.Minute),+ "created_at": leaderUsageAt,+ "updated_at": leaderUsageAt,})// 2. Delegated member task (usage_squad_id = squadID, squad_id = NULL, is_leader_task = false, failed, 2000 input tokens)