From 1818fac37d6418d347f1129fa97704b63096b8a9 Mon Sep 17 00:00:00 2001 From: Eugene Blikh Date: Sun, 26 Apr 2026 09:01:03 +0300 Subject: [PATCH] project: drop unreachable rawHosts/rawTools fields on Project The struct literal carried two unexported fields with db:"raw_hosts" / db:"raw_tools" tags, but the actual scan target is the local rawRow struct in List() that does the GROUP_CONCAT split + dedupe before assigning Hosts/Tools. sqlx silently ignores the unexported fields, so they never held any data; they just confused the next reader of the type definition. --- internal/domain/project/repository.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/internal/domain/project/repository.go b/internal/domain/project/repository.go index 89c7eb15f6cab703634b6070c31b1a5ee83ad3ad..8d4bdef63f304154eb77bb2c05b8e5696333a703 100644 --- a/internal/domain/project/repository.go +++ b/internal/domain/project/repository.go @@ -29,11 +29,6 @@ type Project struct { TopTool string `db:"top_tool" json:"top_tool"` Hosts []string `db:"-" json:"hosts"` Tools []string `db:"-" json:"tools"` - - // rawHosts and rawTools hold the comma-joined GROUP_CONCAT output before - // the post-query split+dedupe step. - rawHosts string `db:"raw_hosts"` - rawTools string `db:"raw_tools"` } // ListFilter aggregates every option List supports.