~bigbes/lethe

1818fac37d6418d347f1129fa97704b63096b8a9 — Eugene Blikh a month ago 3fbbfc8
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.
1 files changed, 0 insertions(+), 5 deletions(-)

M internal/domain/project/repository.go
M internal/domain/project/repository.go => internal/domain/project/repository.go +0 -5
@@ 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.