mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-20 13:49:07 +02:00
chore(accesslogs): drop UserGroups field — nothing populates it
UserGroups on AccessLogEntry was a server-side enrichment artefact: the proto AccessLog message never carried it, so the only writer was manager.enrichUserGroups at save time. Without that writer the field stays nil forever and the dashboard's user_groups column is always empty — better to remove the dead surface than ship an unused field. The dashboard can still reverse-resolve groups from UserId when it needs them, accepting the tradeoff that memberships are resolved at display time rather than captured at write time. - AccessLogEntry.UserGroups field removed (no GORM column either). - ToAPIResponse stops emitting the user_groups key. - openapi.yml user_groups field removed; types.gen.go regenerated. - enrichUserGroups + its test removed.
This commit is contained in:
@@ -2896,11 +2896,6 @@ components:
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: "Extra context about the request (e.g. crowdsec_verdict)"
|
||||
user_groups:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
description: "Group IDs the user belonged to when the entry was written"
|
||||
required:
|
||||
- id
|
||||
- service_id
|
||||
|
||||
Reference in New Issue
Block a user