P7 people-store providerUserId dedupe #4

Merged
sami7777 merged 1 commits from p7-people-dedupe into main 2026-10-04 12:14:44 +02:00
Owner

Dogfood finding #3. Judge B r1 urn:ump:bbfbsfru4nizg75wcxum7mwzhie6txhr22hw6jvz36wiihmgzmlq. 3414/3414.

Dogfood finding #3. Judge B r1 urn:ump:bbfbsfru4nizg75wcxum7mwzhie6txhr22hw6jvz36wiihmgzmlq. 3414/3414.
sami7777 added 1 commit 2026-10-04 12:14:42 +02:00
[grade=B urn:ump:bbfbsfru4nizg75wcxum7mwzhie6txhr22hw6jvz36wiihmgzmlq] P7 people store: dedupe upsert by providerUserId
CI / Security audit (pull_request) Canceled after 0s
CI / Test & Lint (pull_request) Canceled after 0s
c430e02117
Dogfood finding #3: upsertPerson resolved existing records by id only.
The wizard upserts a bootstrap admin AFTER a provider sync has already
created a person for the same Tailscale user (no id passed), so the same
providerUserId was duplicated into two records. Resolve existing by
providerUserId when no id is given; bootstrap Admin group + protectedAt are
preserved on the merge. New regression test; full suite 3414/3414.
sami7777 merged commit 0fd1bbd80b into main 2026-10-04 12:14:44 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sami7777/dashcaddy#4