From cf8a9dc6351f8c8d7015b6c3483d75150983805e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89mile=20R=C3=A9?= Date: Tue, 16 Jun 2026 20:00:54 +0200 Subject: [PATCH] Seed attribution in common tracker pattern helper MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The common_tracker_patterns table now carries a NOT NULL attribution column, but the e2e seed helper still inserted without it, breaking TestThirdParty_ImportFromCommon and the catalog-link tracker pattern test with a not-null constraint violation. Seed the column with the UNDETERMINED verdict to match a freshly catalogued row. Signed-off-by: Émile Ré --- e2e/console/tracker_pattern_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e/console/tracker_pattern_test.go b/e2e/console/tracker_pattern_test.go index 7241b7d88..4eae4d56b 100644 --- a/e2e/console/tracker_pattern_test.go +++ b/e2e/console/tracker_pattern_test.go @@ -667,11 +667,11 @@ func seedCommonTrackerPattern(t *testing.T) gid.GID { _, err := conn.Exec(ctx, ` INSERT INTO common_tracker_patterns ( - id, tracker_type, pattern, match_type, description, confidence, enrichment_attempts, created_at, updated_at + id, tracker_type, pattern, match_type, description, confidence, attribution, enrichment_attempts, created_at, updated_at ) VALUES ( - $1, $2, $3, $4, $5, $6, $7, $8, $9 + $1, $2, $3, $4, $5, $6, $7, $8, $9, $10 ) - `, id, "COOKIE", "e2e_common_"+id.String(), "EXACT", "Seeded catalog description", 1.0, 0, now, now) + `, id, "COOKIE", "e2e_common_"+id.String(), "EXACT", "Seeded catalog description", 1.0, coredata.CommonTrackerPatternAttributionUndetermined, 0, now, now) require.NoError(t, err) t.Cleanup(func() {