Files
probo/pkg
Aurélien Sibiril f464bac29d Preserve reviewer decisions on access-entry upsert
Subsequent fetches of the same source re-upsert every access entry.
Without a guard, a reviewer's (or an agent's) decision, its note, and
the flags that drove it would be silently replaced on every poll.

The ON CONFLICT DO UPDATE SET clause now refreshes only the columns
that track live source state (email, full_name, role, is_admin, MFA,
etc.) and deliberately omits the verdict bundle -- flags, flag_reasons,
decision, decision_note, decided_by, decided_at -- so the audit trail
stays consistent with whatever the reviewer or agent last recorded.

Tighten the signature from pg.Querier to pg.Tx to match the rest of
the coredata package -- every caller already runs inside WithTx.

Signed-off-by: Aurélien Sibiril <81782+aureliensibiril@users.noreply.github.com>
2026-04-22 11:15:48 +02:00
..
2026-04-19 11:42:50 +02:00
2026-04-03 11:56:06 +02:00
2026-04-20 12:11:17 +02:00
2026-04-13 12:25:42 +02:00
2026-04-03 11:56:06 +02:00
2026-03-31 19:16:56 +04:00
2026-04-13 12:25:42 +02:00
2026-04-13 12:25:42 +02:00
2026-04-02 14:37:29 +02:00
2026-04-13 19:24:46 +02:00
2026-04-03 11:56:06 +02:00
2026-04-20 15:37:39 +02:00