Harden log export CSV and fix profile loader boundary

Load SCIM profile emails via Identities in the export
layer, drop the cross-table join, sanitize formula-leading
cells, and fall back to validated userName when profile email
is missing. Drop redundant gid array casts in LoadByIDs.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>

Co-authored-by: Bryan FRIMIN <bryan@frimin.fr>
This commit is contained in:
Cursor Agent
2026-07-29 22:04:35 +00:00
parent 45a7a428bf
commit c5b1f210d5
5 changed files with 83 additions and 11 deletions

View File

@@ -407,7 +407,7 @@ SELECT
FROM
identities
WHERE
id = ANY(@identity_ids::text[])
id = ANY(@identity_ids)
`
args := pgx.StrictNamedArgs{"identity_ids": identityIDs}